Added SRU config example.
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 27 Jul 2008 16:32:03 +0000 (18:32 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 27 Jul 2008 16:32:03 +0000 (18:32 +0200)
etc/sru-test.xml [new file with mode: 0644]

diff --git a/etc/sru-test.xml b/etc/sru-test.xml
new file mode 100644 (file)
index 0000000..d1d450f
--- /dev/null
@@ -0,0 +1,28 @@
+<settings target="localhost:9999/Default">
+
+  <!-- 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:name" value="Local Test"/>
+
+  <!-- mapping for unqualified search -->
+  <set name="pz:cclmap:term" value="u=1016 t=l,r s=al"/>
+
+  <!-- field-specific mappings -->
+  <set name="pz:cclmap:ti" value="u=4 s=al"/>
+  <set name="pz:cclmap:su" value="u=21 s=al"/>
+  <set name="pz:cclmap:isbn" value="u=7"/>
+  <set name="pz:cclmap:issn" value="u=8"/>
+  <set name="pz:cclmap:date" value="u=30 r=r"/>
+
+  <!-- Retrieval settings -->
+
+  <set name="pz:requestsyntax" value="marc21"/>
+  <set name="pz:elements" value="F"/>
+
+  <!-- Result normalization settings -->
+
+  <set name="pz:nativesyntax" value="iso2709"/>
+  <set name="pz:xslt" value="marc21.xsl"/>
+
+</settings>