New
authorMike Taylor <mike@indexdata.com>
Wed, 20 Aug 2014 11:16:19 +0000 (12:16 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 20 Aug 2014 11:16:19 +0000 (12:16 +0100)
tools/service-proxy/pazpar2/README [new file with mode: 0644]
tools/service-proxy/pazpar2/server.no-icu.xml [new file with mode: 0644]
tools/service-proxy/pazpar2/service.no-icu.xml [new file with mode: 0644]
tools/service-proxy/pazpar2/settings-testserver.xml [new file with mode: 0644]

diff --git a/tools/service-proxy/pazpar2/README b/tools/service-proxy/pazpar2/README
new file mode 100644 (file)
index 0000000..ec4536d
--- /dev/null
@@ -0,0 +1,3 @@
+This contains an ICU-stripped version of the coniguration used by the
+live MKC service, since I (Mike) need to run it on a Mac where YAZ is
+installed (using "brew install yaz") compiled without ICU.
diff --git a/tools/service-proxy/pazpar2/server.no-icu.xml b/tools/service-proxy/pazpar2/server.no-icu.xml
new file mode 100644 (file)
index 0000000..8074d3c
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
+  <threads number="0"/> <!-- non-zero to enable threaded operation -->
+  <file path=".:/usr/share/pazpar2/xsl"/> 
+  <server>
+    <listen port="8004"/>
+    <include src="service.no-icu.xml"/>
+  </server>
+</pazpar2>
diff --git a/tools/service-proxy/pazpar2/service.no-icu.xml b/tools/service-proxy/pazpar2/service.no-icu.xml
new file mode 100644 (file)
index 0000000..b7e65ba
--- /dev/null
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- This is NOT used by the live system, which shares MKC's Pazpar2 config.
+     It's only for Mike to run on his development system, which lacks ICU -->
+<service id="mkc" xmlns="http://www.indexdata.com/pazpar2/1.0">
+  <timeout session="60" z3950_operation="30" z3950_session="180"/>
+
+  <rank cluster="yes"
+       follow="0.0"
+       lead="1.0"
+       length="linear"
+       debug="no" />
+
+  <settings src="settings-testserver.xml"/>
+  
+  <!-- we try to keep same order as in marc21.xsl -->
+  <metadata name="id" brief="yes"/>
+  <metadata name="lccn" merge="unique"/>
+  <metadata name="isbn" brief="yes" merge="unique"/>
+  <metadata name="issn" brief="yes" merge="unique"/>
+  <metadata name="tech-rep-nr"/>
+  <metadata name="author" brief="yes" termlist="yes" merge="unique" 
+           rank="2" mergekey="optional" limitmap="ccl: au" />
+  <metadata name="author-title"/>
+  <metadata name="author-date"/>
+  <metadata name="corporate-name"/>
+  <metadata name="corporate-location"/>
+  <metadata name="corporate-date"/>
+  <metadata name="meeting-name"/>
+  <metadata name="meeting-location"/>
+  <metadata name="meeting-date"/>
+  <metadata name="date" brief="yes" sortkey="numeric" type="year"
+           merge="range" termlist="yes" limitmap="ccl: date"/>
+  <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="title-responsibility" brief="yes" merge="longest"/>
+  <metadata name="title-dates" brief="yes" merge="longest"/>
+  <metadata name="title-medium" brief="yes" merge="unique" 
+               termlist="yes" sortkey="skiparticle" limitmap="local:"/>
+  <metadata name="title-number-section" brief="yes" merge="longest"/>
+  <metadata name="title-complete"/>
+  <metadata name="title-uniform"/>
+  <metadata name="medium" brief="yes" merge="unique" limitmap="local:" />
+  <metadata name="iii-id" brief="yes" merge="no"/>
+  <metadata name="edition"/>
+  <metadata name="publication-place"/>
+  <metadata name="publication-name"/>
+  <metadata name="publication-date"/>
+  <metadata name="physical-extent"/>
+  <metadata name="physical-format"/>
+  <metadata name="physical-dimensions"/>
+  <metadata name="physical-accomp"/>
+  <metadata name="physical-unittype"/>
+  <metadata name="physical-unitsize"/>
+  <metadata name="physical-specified"/>
+  
+  <metadata name="series-title" brief="yes" merge="unique"/>
+  
+  <metadata name="description" brief="yes" merge="unique" rank="3"/>
+  <metadata name="subject-long" rank="3"/>
+  <metadata name="subject" termlist="yes" rank="0" limitmap="ccl: su" 
+       brief="yes" merge="unique"/>
+  <metadata name="snippet" brief="yes" merge="unique"/>
+  <metadata name="electronic-url" brief="yes" merge="unique"/>
+  <metadata name="electronic-format-type" />
+  <metadata name="electronic-format-instruction" />
+  <metadata name="electronic-text" brief="yes" merge="no"/>
+  <metadata name="electronic-note"/>
+  <metadata name="citation"/>
+  <metadata name="holding"/>
+  <metadata name="fulltext"/>
+  <metadata name="has-fulltext"/>
+  <metadata name="oclc-number"/>
+  <metadata name="system-control-nr"/>
+  <metadata name="locallocation" brief="yes"/>
+  <metadata name="callnumber" brief="yes"/>
+  <metadata name="publicnote" brief="yes"/>
+  
+  <!-- journals -->
+  <metadata name="journal-title"/>
+  <metadata name="journal-subpart"/>
+  <metadata name="volume-number"/>
+  <metadata name="issue-date"/>
+  <metadata name="issue-number"/>
+  <metadata name="pages-number"/>
+  
+  <metadata name="url_recipe" setting="postproc" brief="yes" merge="no"/>
+  <metadata name="open_url_resolver" setting="parameter" merge="no"/>
+  <metadata name="open-url" merge="longest"/>
+  <metadata name="use_url_proxy" setting="postproc" brief="yes" merge="no"/>
+  
+  <metadata name="publisher"/>
+  <metadata name="available" brief="yes" merge="no" limitmap="local:"/>
+  <metadata name="due"/>
+  <metadata name="thumburl" brief="yes" merge="unique"/>
+  <metadata name="score"/>
+
+  <!-- normarc fields -->
+
+  <metadata name="price" merge="no"/>
+  <metadata name="locallocation-section" brief="yes" merge="no"
+       termlist="yes" limitmap="local:"/>
+  <metadata name="circulation-status" brief="yes" merge="no" 
+       termlist="yes" limitmap="local:"/>
+  <metadata name="circulation-restriction" brief="yes" merge="no"/>
+  <metadata name="bibliofil-id" brief="yes" merge="no"/>
+  <metadata name="bibliofil-url" brief="yes" merge="no"/>
+  <metadata name="audience" brief="yes" merge="unique" termlist="yes"
+       limitmap="local:"/>
+
+</service>
+<!-- Keep this comment at the end of the file
+     Local variables:
+     mode: nxml
+     End:
+oooo
+-->
+
diff --git a/tools/service-proxy/pazpar2/settings-testserver.xml b/tools/service-proxy/pazpar2/settings-testserver.xml
new file mode 100644 (file)
index 0000000..69a8c36
--- /dev/null
@@ -0,0 +1,28 @@
+<settings target="localhost:9999/Default">
+
+  <!-- Simple test against a local test server (could be yaz-ztest) -->
+
+  <set name="pz:name" value="Local Test"/>
+  <set name="pz:apdulog" value="1"/>
+
+  <!-- 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>