Created new field, 'subject-long' containing detailed subject headings.. it appears
authorSebastian Hammer <quinn@indexdata.com>
Thu, 16 Aug 2007 03:12:42 +0000 (03:12 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Thu, 16 Aug 2007 03:12:42 +0000 (03:12 +0000)
the fully detailed subject headings don't work well as search access points, at
least in the LoC.

etc/marc21.xsl
etc/pazpar2.cfg.dist

index 3c0fa53..e647c97 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: marc21.xsl,v 1.18 2007-08-16 02:56:33 quinn Exp $ -->
+<!-- $Id: marc21.xsl,v 1.19 2007-08-16 03:12:42 quinn Exp $ -->
 <xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
       </xsl:for-each>
       
       <xsl:for-each select="marc:datafield[@tag='650' or @tag='653']">
-       <pz:metadata type="subject">
+        <pz:metadata type="subject">
+         <xsl:value-of select="marc:subfield[@code='a']"/>
+       </pz:metadata>
+       <pz:metadata type="subject-long">
          <xsl:for-each select="marc:subfield">
            <xsl:if test="position() > 1">
              <xsl:text>, </xsl:text>
index 28ff50c..239bd50 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: pazpar2.cfg.dist,v 1.15 2007-08-13 03:43:40 quinn Exp $ -->
+<!-- $Id: pazpar2.cfg.dist,v 1.16 2007-08-16 03:12:42 quinn Exp $ -->
 <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
   
   <server>
@@ -47,8 +47,9 @@
       <metadata name="series-title"/>  
 
       <metadata name="description" merge="longest" rank="3"/>
-      <metadata name="subject" merge="unique" termlist="yes" rank="3"/>
-      <metadata name="electronic-url" merge="unique"/>
+      <metadata name="subject-long" rank="3"/>
+      <metadata name="subject" termlist="yes" rank="0"/>
+      <metadata name="electronic-url"/>
       <metadata name="electronic-text"/>
       <metadata name="electronic-note"/>
       <metadata name="citation"/>