From e20c18e771d2f7b27cdd51bf9e5f2cad6b52e21e Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 22 Sep 2010 16:00:04 +0200 Subject: [PATCH] Added test case for SRU target. Currently set to a german one that creates problem --- test/gbv-sru-marc.xml | 27 ++++ test/marc21-gbv.xsl | 354 +++++++++++++++++++++++++++++++++++++++++++++++++ test/sru-gbv.de.xml | 32 +++++ test/test_sru.cfg | 39 ++++++ test/test_sru.sh | 28 ++++ test/test_sru_1.res | 2 + test/test_sru_2.res | 2 + test/test_sru_3.res | 233 ++++++++++++++++++++++++++++++++ test/test_sru_urls | 4 + 9 files changed, 721 insertions(+) create mode 100644 test/gbv-sru-marc.xml create mode 100644 test/marc21-gbv.xsl create mode 100644 test/sru-gbv.de.xml create mode 100644 test/test_sru.cfg create mode 100644 test/test_sru.sh create mode 100644 test/test_sru_1.res create mode 100644 test/test_sru_2.res create mode 100644 test/test_sru_3.res create mode 100644 test/test_sru_urls diff --git a/test/gbv-sru-marc.xml b/test/gbv-sru-marc.xml new file mode 100644 index 0000000..bf5d7d1 --- /dev/null +++ b/test/gbv-sru-marc.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/marc21-gbv.xsl b/test/marc21-gbv.xsl new file mode 100644 index 0000000..59a5553 --- /dev/null +++ b/test/marc21-gbv.xsl @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + electronic resource + + + electronic resource + + + article + + + book + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/sru-gbv.de.xml b/test/sru-gbv.de.xml new file mode 100644 index 0000000..033ea9e --- /dev/null +++ b/test/sru-gbv.de.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_sru.cfg b/test/test_sru.cfg new file mode 100644 index 0000000..636bdff --- /dev/null +++ b/test/test_sru.cfg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_sru.sh b/test/test_sru.sh new file mode 100644 index 0000000..9bc98bf --- /dev/null +++ b/test/test_sru.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# srcdir might be set by make +srcdir=${srcdir:-"."} + +#TODO set up solr target. For now use donut +#F=../solr/client.sh +# +#rm -f solr.pid +#$F -l solr.log -p ztest.pid -D @:9999 +#sleep 1 +#if test ! -f ztest.pid; then +# echo "yaz-ztest could not be started" +# exit 0 +#fi + +${srcdir}/run_pazpar2.sh test_sru +E=$? + +#kill `cat ztest.pid` +#rm ztest.pid +exit $E + +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: diff --git a/test/test_sru_1.res b/test/test_sru_1.res new file mode 100644 index 0000000..81ff9ff --- /dev/null +++ b/test/test_sru_1.res @@ -0,0 +1,2 @@ + +OK11 \ No newline at end of file diff --git a/test/test_sru_2.res b/test/test_sru_2.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_sru_2.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_sru_3.res b/test/test_sru_3.res new file mode 100644 index 0000000..9e30100 --- /dev/null +++ b/test/test_sru_3.res @@ -0,0 +1,233 @@ + + +OK +0 +14 +0 +0 +14 + + +The last man +: in 3 vol +Shelley, Mary W +digitised: 2004 - 2005 +The last man +: in 3 vol +Shelley, Mary W +digitised: 2004 - 2005 + +The last man +: in 3 vol +Shelley, Mary W +digitised: 2004 - 2005 +2 +921034 +title the last man author shelley mary w + + + +Das profunde Verständnis fundamentaler Mathematik von Lehrkräften als Ausgangspunkt für eine Verbesserung der Unterrichtsqualität +eine empirische Analyse unter Einschluss eines länderübergreifenden Vergleichs +2005 +Seyd, Christofer +Research in the professional action and the didactical expertise of teachers is a white spot on the map. This study supports the thesis that this is a starting point for the improvement of class teaching. This is first of all true for a certain sector of the spectrum of schools and classes: mathematical lessons in 4th grade elementary school. However, lessons drawn from this sector may well allow conclusions and reasons as well as chances for improvements for the observations made in the cited comparative intercultural Studies +Das profunde Verständnis fundamentaler Mathematik von Lehrkräften als Ausgangspunkt für eine Verbesserung der Unterrichtsqualität +eine empirische Analyse unter Einschluss eines länderübergreifenden Vergleichs +2005 +Seyd, Christofer +Dateien im PDF-Format +Parallel als Druckausg. erschienen +Research in the professional action and the didactical expertise of teachers is a white spot on the map. This study supports the thesis that this is a starting point for the improvement of class teaching. This is first of all true for a certain sector of the spectrum of schools and classes: mathematical lessons in 4th grade elementary school. However, lessons drawn from this sector may well allow conclusions and reasons as well as chances for improvements for the observations made in the cited comparative intercultural Studies +0 +title das profunde verst ndnis fundamentaler mathematik von lehrkr ften als ausgangspunkt f r eine verbesserung der unterrichtsqualit t author seyd christofer + + + +Das Programm der Bildung für nachhaltige Entwicklung +eine systemische Diagnose mit den Schemata Qualität und Nachhaltigkeit +Siemer, Stefan Hermann +System protest! This thesis is about communication. About systems, schemata, quality, sustainability, about education and education for sustainable development. This thesis is about the question what constitutes good education for sustainable development. This thesis is about the manifold problems following such questions. This thesis is about ways out of these manifold problems that only appear, however, when you&rsquo;re not looking for them +Das Programm der Bildung für nachhaltige Entwicklung +eine systemische Diagnose mit den Schemata Qualität und Nachhaltigkeit +Siemer, Stefan Hermann +Parallel als Druckausg. erschienen +System protest! This thesis is about communication. About systems, schemata, quality, sustainability, about education and education for sustainable development. This thesis is about the question what constitutes good education for sustainable development. This thesis is about the manifold problems following such questions. This thesis is about ways out of these manifold problems that only appear, however, when you&rsquo;re not looking for them +0 +title das programm der bildung f r nachhaltige entwicklung author siemer stefan hermann + + + +Die Praxis der Orgelstimmung in Norddeutschland im 17. und 18 Jahrhundert und ihr Verhältnis zur zeitgenössischen Musikpraxis +2007 +Ortgies, Ibo +Mit Genehmigung des Autors von elektronischer Ressource ausgedr. Ex +Die Praxis der Orgelstimmung in Norddeutschland im 17. und 18 Jahrhundert und ihr Verhältnis zur zeitgenössischen Musikpraxis +2007 +Ortgies, Ibo +Mit Genehmigung des Autors von elektronischer Ressource ausgedr. Ex +0 +title die praxis der orgelstimmung in norddeutschland im und jahrhundert und ihr verh ltnis zur zeitgen ssischen musikpraxis author ortgies ibo + + + +Eleanor's victory +: in 2 vol +Braddon, Mary E +digitised: 2004 - 2005 +Eleanor's victory +: in 2 vol +Braddon, Mary E +digitised: 2004 - 2005 + +Eleanor's victory +: in 2 vol +Braddon, Mary E +digitised: 2004 - 2005 +2 +0 +title eleanor s victory author braddon mary e + + + +Henry Dunbar +: the story of an outcast; in 2 vol +Braddon, Mary E +digitised: 2004 - 2005 +Henry Dunbar +: the story of an outcast; in 2 vol +Braddon, Mary E +digitised: 2004 - 2005 + +Henry Dunbar +: the story of an outcast; in 2 vol +Braddon, Mary E +digitised: 2004 - 2005 +2 +0 +title henry dunbar author braddon mary e + + + +Kompetenz und Kreativität +: eine Universität in Entwicklung; Hartwig Donner zum 60. Geburtstag +2001 +Parallel als Online-Ausg. erschienen unter der Adresse <1>html =A http://www.gbv.de/dms/lueneburg/LG/OPUS/2001/78/pdf/donner1.pdf +Kompetenz und Kreativität +: eine Universität in Entwicklung; Hartwig Donner zum 60. Geburtstag +2001 +Literaturangaben +Parallel als Online-Ausg. erschienen unter der Adresse <1>html =A http://www.gbv.de/dms/lueneburg/LG/OPUS/2001/78/pdf/donner1.pdf + +Kompetenz und Kreativität +eine Universität in Entwicklung ; Hartwig Donner zum 60. Geburtstag +Parallel als Druckausg. erschienen +Universität Lüneburg, Festschrift +2 +0 +title kompetenz und kreativit t + + + +Le génie logiciel & ses applications +huitièmes journées internationales ; 15 - 17 novembre 1995, Paris, La Défense ; actes = Software engineering & its applications +1995 +Le génie logiciel & ses applications +huitièmes journées internationales ; 15 - 17 novembre 1995, Paris, La Défense ; actes = Software engineering & its applications +1995 +0 +title le g nie logiciel ses applications + + + +Netzwerk Kinderschutz in Berlin +dynamische Prozesse zwischen Pflicht und Kür ; erste Erfahrungen [Bachelor-Thesis] +2009 +Fischer, Nina +Anhang S. 44 - 182. Literaturverz. S. 35 - 39 +Netzwerk Kinderschutz in Berlin +dynamische Prozesse zwischen Pflicht und Kür ; erste Erfahrungen [Bachelor-Thesis] +2009 +Fischer, Nina +Anhang S. 44 - 182. Literaturverz. S. 35 - 39 +0 +title netzwerk kinderschutz in berlin author fischer nina + + + +Tales of the priory +: in 4 vol +Hofland, Barbara +digitised: 2004 - 2005 +Tales of the priory +: in 4 vol +Hofland, Barbara +digitised: 2004 - 2005 +0 +title tales of the priory author hofland barbara + + + +The beggar girl and her benefactors +: in 7 vol +Bennett, Agnes M +digitised: 2004 - 2005 +The beggar girl and her benefactors +: in 7 vol +Bennett, Agnes M +digitised: 2004 - 2005 + +The beggar girl and her benefactors +: in 7 vol +Bennett, Agnes M +digitised: 2004 - 2005 +2 +0 +title the beggar girl and her benefactors author bennett agnes m + + + +The marriage of the favourite +: or, she bred him a soldier; a novel; in 3 vol +Pickering, Ellen +digitised: 2004 - 2005 +The marriage of the favourite +: or, she bred him a soldier; a novel; in 3 vol +Pickering, Ellen +digitised: 2004 - 2005 +0 +title the marriage of the favourite author pickering ellen + + + +The shrine of Bertha +: a novel; in 2 vol +Robinson, Mary E +digitised: 2004 - 2005 +The shrine of Bertha +: a novel; in 2 vol +Robinson, Mary E +digitised: 2004 - 2005 + +The shrine of Bertha +: a novel; in 2 vol +Robinson, Mary E +digitised: 2004 - 2005 +2 +0 +title the shrine of bertha author robinson mary e + + + +The wedding day +: a novel +Spence, Elizabeth I +digitised: 2004 - 2005 +The wedding day +: a novel +Spence, Elizabeth I +digitised: 2004 - 2005 +0 +title the wedding day author spence elizabeth i + + diff --git a/test/test_sru_urls b/test/test_sru_urls new file mode 100644 index 0000000..622c9f5 --- /dev/null +++ b/test/test_sru_urls @@ -0,0 +1,4 @@ +http://localhost:9763/search.pz2?command=init +http://localhost:9763/search.pz2?session=1&command=search&query=cql:schafroth +10 http://localhost:9763/search.pz2?session=1&command=show&block=1 + -- 1.7.10.4