Metadata elements dynamically created from XSLT normalization output.
[pazpar2-moved-to-github.git] / etc / pazpar2.cfg
index a640319..2b84e08 100644 (file)
@@ -1,42 +1,25 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
-
-<!-- NOTE: This is not yet a functional config file. It's meant as a scratchpad/
-     discussion area to figure out just how the heck to structure this kind of
-     configuration.
--->
-
-<!-- thought... right now there is only one global 'service' in the code, but
-     it will be pretty simple to make this repeatable, and I think that should
-     be done at some point (this will eliminate most of the global parameters.
-     But it might be nice to have 'virtual' targets, so differrent sets of
-     configuration could live within one listener (on a single
-     port). -->
+<?xml version="1.0" encoding="UTF-8"?> <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
 
 <server>
   <listen port="9004"/>
   <proxy host="localhost" port="80"/>
 
   <service>
-    <!-- <metadata name="title"/> -->
+    <metadata name="title" brief="yes" sortkey="skiparticle" merge="longest"/>
+    <!-- <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"/> -->
+    <metadata name="author" brief="yes" termlist="yes" merge="longest"/>
+    <metadata name="subject" merge="unique" termlist="yes"/>
   </service>
 </server>
 
 <!-- Need to figure out where to get ZeeRex records for targets from -->
 
-<!-- The 'profiles' below are repeatable, and tagged with an ID, so that they
-     can be linked with targets. -->
-
-<!-- They can be generated dynamically using XSLT. -->
-
-<queryprofile/>  <!-- Like a CCL profile? What else? -->
-
-<!-- Select by target ID (pattern). What else???   -->
+<queryprofile/>  <!-- Like a CCL profile++ . Can optionally refer to XSLT to 
+       convert ZeeRex into queryprofile. Multiple profiles can exist.  -->
 
 <retrievalprofile>
   <requestsyntax>marc21</requestsyntax>
-  <charset>marc-8</charset>
-  <map type="iso2709" charset="marc-8" format="marcxml"/>
+  <nativesyntax name="iso2709" format="marc21" encoding="marc-8" mapto="marcxml"/>
   <map type="xslt" stylesheet="marc21.xsl"/>
 </retrievalprofile>