New limit/limitmap test
authorDennis Schafroth <dennis@indexdata.com>
Thu, 19 Apr 2012 10:49:46 +0000 (12:49 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 19 Apr 2012 10:49:46 +0000 (12:49 +0200)
test/test_limit_limitmap_4.xml [new file with mode: 0644]
test/test_limit_limitmap_service.xml [new file with mode: 0644]
test/test_limit_limitmap_settings_1.xml [new file with mode: 0644]
test/test_limit_limitmap_settings_2.xml [new file with mode: 0644]
test/test_limit_limitmap_settings_3.xml [new file with mode: 0644]

diff --git a/test/test_limit_limitmap_4.xml b/test/test_limit_limitmap_4.xml
new file mode 100644 (file)
index 0000000..117f75a
--- /dev/null
@@ -0,0 +1,4 @@
+<settings target="ID_1">
+  <set name="pz:limitmap:author"  value="rpn:@attr 1=1003 @attr 6=3" />
+  <set name="pz:limitmap:subject" value="rpn:@attr 1=21 @attr 6=3" />
+</settings>
diff --git a/test/test_limit_limitmap_service.xml b/test/test_limit_limitmap_service.xml
new file mode 100644 (file)
index 0000000..6b7fc3a
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<service>
+
+  <settings target="*">
+    <set name="pz:limitmap:author" value="ccl:au" />
+    <set name="pz:limitmap:date"   value="local:" />
+    <set name="pz:limitmap:subject" value="rpn: @attr 1=21 @attr 6=3" />
+  </settings>
+
+  <set name="service" value="from-service" />
+
+  <metadata name="url" merge="unique"/>
+  <metadata name="title" brief="yes" sortkey="skiparticle" merge="longest" rank="6" mergekey="required" />
+  <metadata name="title-remainder" brief="yes" merge="longest" rank="5"/>
+  <metadata name="isbn"/>
+
+  <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range" termlist="yes" limitmap="local:" />
+  <metadata name="author" brief="yes" termlist="yes" merge="longest" rank="2" mergekey="optional" limitmap="ccl:au" />
+  <metadata name="subject" merge="unique" termlist="yes" rank="3" limitmap="rpn: @attr 1=21 @attr 6=3" />
+
+  <metadata name="description" brief="yes" merge="longest" rank="3" />
+  <metadata name="id"/>
+  <metadata name="lccn" merge="unique"/>
+  
+  <metadata name="test-usersetting" brief="yes" setting="postproc"/>
+  <metadata name="test" setting="parameter"/>
+  <metadata name="test-usersetting-2" brief="yes"/>
+</service>
diff --git a/test/test_limit_limitmap_settings_1.xml b/test/test_limit_limitmap_settings_1.xml
new file mode 100644 (file)
index 0000000..5dc8874
--- /dev/null
@@ -0,0 +1,34 @@
+<!-- ztest --> 
+<settings target="Target-1">
+  <set name="pz:name" value="ztest-db1"/>
+  <set name="pz:url" value="z3950.indexdata.com/marc"/>
+
+  <!-- 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"/>
+  <set name="pz:cclmap:author_phrase" value="u=1003 6=3"/>
+
+  <!-- Retrieval settings -->
+
+  <set name="pz:requestsyntax" value="marc21"/>
+
+  <!-- Result normalization settings -->
+
+  <set name="pz:nativesyntax" value="txml"/>
+  <set name="pz:xslt" value="tmarc.xsl"/>
+  
+  <set name="pz:apdulog" value="1"/>
+  <set name="pz:pqf_strftime" value="@or %% %Y"/>
+
+  <!-- Examples of application-specific setting -->
+  <!-- Available in output record and/or normalization stylesheet -->
+  <set name="test-usersetting" value="XXXXXXXXXX"/>
+  <set name="test" value="YYYYYYYYY"/>
+
+</settings>
diff --git a/test/test_limit_limitmap_settings_2.xml b/test/test_limit_limitmap_settings_2.xml
new file mode 100644 (file)
index 0000000..80f02ec
--- /dev/null
@@ -0,0 +1,28 @@
+<!-- Solr target -->
+<settings target="Target-2">
+  <set name="pz:name"  value="LOC-SOLR" />
+  <set name="pz:url"   value="ocs-test.indexdata.com/solr/select" />
+
+  <set name="pz:limitmap:author"  value="ccl:author_phrase" />
+  <set name="pz:limitmap:subject" value="rpn:@attr 1=21" />
+  <set name="pz:limitmap:date"    value="local:" />
+
+  <set name="full_text_target"  value="=NO" />
+  <set name="pz:termlist_term_count" value="10"/>
+
+  <set name="use_url_proxy"  value="0" />
+  <set name="pz:piggyback"   value="1" />
+  <set name="pz:preferred"   value="0" />
+  <set name="pz:block_timeout"  value="2" />
+  <set name="pz:cclmap:su"   value="1=subject" />
+  <set name="pz:sru"         value="solr"  />
+  <set name="use_thumbnails" value="0" />
+  <set name="pz:cclmap:issn"  value="u=8" />
+  <set name="pz:cclmap:ti"  value="1=title" />
+  <set name="pz:cclmap:au"  value="1=author" />
+  <set name="pz:xslt"  value="solr-pz2.xsl" />
+  <set name="pz:cclmap:term"  value="1=text s=Dal" />
+  <set name="pz:cclmap:isbn"  value="1=isbn" />
+  <set name="pz:queryencoding"  value="UTF-8" />
+
+</settings>
diff --git a/test/test_limit_limitmap_settings_3.xml b/test/test_limit_limitmap_settings_3.xml
new file mode 100644 (file)
index 0000000..bcd1e71
--- /dev/null
@@ -0,0 +1,4 @@
+<settings target="Target-1">
+  <set name="pz:limitmap:author"  value="rpn:@attr 1=1003 @attr 6=3" />
+  <set name="pz:limitmap:subject" value="rpn:@attr 1=21 @attr 6=3" />
+</settings>