Temporary test files for GBV reported error
authorDennis Schafroth <dennis@indexdata.com>
Wed, 6 Oct 2010 14:00:35 +0000 (16:00 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 6 Oct 2010 14:00:35 +0000 (16:00 +0200)
etc/settings/sru-gbv.de.xml [new file with mode: 0644]
test/test_gbv_de_urls [new file with mode: 0644]

diff --git a/etc/settings/sru-gbv.de.xml b/etc/settings/sru-gbv.de.xml
new file mode 100644 (file)
index 0000000..033ea9e
--- /dev/null
@@ -0,0 +1,32 @@
+<settings target="gso.gbv.de/sru/DB=2.1">
+
+  <!-- Simple test against a local SRU server (could be yaz-ztest) -->
+
+  <set name="pz:sru" value="get"/> <!-- must be get, post or soap -->
+  <set name="pz:sru_version" value="1.1"/>
+  <set name="pz:name" value="GBV.DE"/>
+
+<!--
+  <set name="pz:maxrecs" value="27"/>
+-->
+
+  <!-- mapping for unqualified search -->
+  <set name="pz:cclmap:term" value="u=cql.serverChoice t=l,r s=al"/>
+
+  <!-- field-specific mappings -->
+  <set name="pz:cclmap:ti" value="u=dc.title t=l,r s=al"/>
+  <set name="pz:cclmap:su" value="u=dc.subject s=al"/>
+  <set name="pz:cclmap:isbn" value="u=bath.isbn"/>
+  <set name="pz:cclmap:issn" value="u=bath.issn"/>
+  <set name="pz:cclmap:date" value="u=dc.date r=r"/>
+
+  <!-- Retrieval settings -->
+
+  <set name="pz:elements" value="dc"/>
+
+  <!-- Result normalization settings -->
+
+  <set name="pz:nativesyntax" value="xml"/>
+  <set name="pz:xslt" value="dc.xsl"/>
+
+</settings>
diff --git a/test/test_gbv_de_urls b/test/test_gbv_de_urls
new file mode 100644 (file)
index 0000000..e0d8137
--- /dev/null
@@ -0,0 +1,14 @@
+http://localhost:9763/search.pz2?command=init&clear=1
+http://localhost:9763/search.pz2?session=1&command=settings&pz:sru%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=solr&pz%3Aname%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=SOLR+Test&pz%3Acclmap%3Ati%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dtitle&pz%3Acclmap%3Asu%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dsubject&pz%3Acclmap%3Aau%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dauthor&pz%3Acclmap%3Aisbn%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Disbn&pz%3Acclmap%3Aterm%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dtitle&pz%3Axslt%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=solr-pz2.xsl&pz%3Aqueryencoding%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=UTF-8&pz%3Aapdulog%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1
+http://localhost:9763/search.pz2?session=1&command=search&query=su%3D%22computer%22
+4 http://localhost:9763/search.pz2?session=1&command=show&block=1
+http://localhost:9763/search.pz2?session=1&command=bytarget
+http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate
+http://localhost:9763/search.pz2?command=init&clear=1
+http://localhost:9763/search.pz2?session=2&command=settings&pz:sru%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=solr&pz%3Aname%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=SOLR+Test&pz%3Acclmap%3Ati%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dtitle&pz%3Acclmap%3Asu%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dsubject&pz%3Acclmap%3Aau%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dauthor&pz%3Acclmap%3Aisbn%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Disbn&pz%3Acclmap%3Aterm%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1%3Dtitle&pz%3Axslt%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=solr-pz2.xsl&pz%3Aqueryencoding%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=UTF-8&pz%3Aapdulog%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1&pz:termlist_term_count%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=5&pz:preferred%5Blocalhost%3A8983%2Fsolr%2Fselect%5D=1
+http://localhost:9763/search.pz2?session=2&command=search&query=su%3D%22computer%22
+http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate
+http://localhost:9763/search.pz2?session=2&command=show&block=preferred
+http://localhost:9763/search.pz2?session=2&command=search&query=su%3D%22xyzy%22
+http://localhost:9763/search.pz2?session=2&command=show&block=preferred
+http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate