+Exposed user setting values (i.e. non-pz: names) to the record systems in two
+ways: Either as parameters to the normalization stylesheets (which would allow the
+programmer to postprocess or use the values in any way) or after the normalization
+step, in which case values are made part of the normalized record (and available for
+sorting, termlists, display, or other interface-related use.
+
Implemented sorting by year.
Option -d dumps records to the current log file instead of stderr.
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: marc21.xsl,v 1.15 2007-07-16 15:21:29 adam Exp $ -->
+<!-- $Id: marc21.xsl,v 1.16 2007-07-31 22:35:40 quinn Exp $ -->
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
xmlns:marc="http://www.loc.gov/MARC21/slim">
+
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
<?xml version="1.0" encoding="UTF-8"?>
<pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
-<!-- $Id: test_http.cfg,v 1.4 2007-07-30 11:52:08 quinn Exp $ -->
+<!-- $Id: test_http.cfg,v 1.5 2007-07-31 22:35:41 quinn Exp $ -->
<!-- Used by test_http.sh -->
<server>
<listen port="9763"/>
<metadata name="description" brief="yes" merge="longest" rank="3"/>
<metadata name="test-usersetting" brief="yes" setting="postproc"/>
+ <metadata name="test" setting="parameter"/>
+ <metadata name="test_usersetting_2" brief="yes"/>
</service>
</server>
<settings target="z3950.indexdata.com/marc">
<!-- Used by test test_http.sh -->
- <!-- $Id: test_http.xml,v 1.4 2007-07-30 11:52:08 quinn Exp $ -->
+ <!-- $Id: test_http.xml,v 1.5 2007-07-31 22:35:41 quinn Exp $ -->
<set name="pz:name" value="Local Test"/>
<set name="pz:nativesyntax" value="iso2709"/>
<set name="pz:xslt" value="auto"/>
- <!-- Example of application-specific setting -->
+ <!-- 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>
<md-author>Jack Collins</md-author>
<md-id>11224467</md-id>
<md-lccn>11224467</md-lccn>
-<md-test-usersetting>XXXXXXXXXX</md-test-usersetting></location>
+<md-test-usersetting>XXXXXXXXXX</md-test-usersetting>
+<md-test_usersetting_2>Shit:
+ YYYYYYYYY</md-test_usersetting_2></location>
<location id="z3950.indexdata.com/marc" name="Local Test">
<md-title>How to program a computer</md-title>
<md-author>Jack Collins</md-author>
<md-id>11224466</md-id>
<md-lccn>11224466</md-lccn>
-<md-test-usersetting>XXXXXXXXXX</md-test-usersetting></location>
+<md-test-usersetting>XXXXXXXXXX</md-test-usersetting>
+<md-test_usersetting_2>Shit:
+ YYYYYYYYY</md-test_usersetting_2></location>
</record>