Extracted URL field
authorSebastian Hammer <quinn@indexdata.com>
Tue, 16 Jan 2007 23:41:53 +0000 (23:41 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Tue, 16 Jan 2007 23:41:53 +0000 (23:41 +0000)
etc/marc21.xsl
etc/pazpar2.cfg.dist

index 7131b7b..e99b634 100644 (file)
        <xsl:value-of select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
       </xsl:attribute>
 
+      <pz:metadata name="id">
+        <xsl:value-of select="marc:controlfield[@tag='001']"/>
+      </pz:metadata>
+
       <pz:metadata type="title">
        <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
        <xsl:text> </xsl:text>
        </pz:metadata>
       </xsl:for-each>
 
+      <xsl:for-each select="marc:datafield[@tag='856']">
+       <pz:metadata type="url">
+         <xsl:value-of select="marc:subfield[@code='u']"/>
+       </pz:metadata>
+      </xsl:for-each>
+
     </pz:record>
   </xsl:template>
 
index afbfd1b..780b9a1 100644 (file)
@@ -11,6 +11,7 @@
     <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"/>
     <metadata name="author" brief="yes" termlist="yes" merge="longest" rank="2"/>
     <metadata name="subject" merge="unique" termlist="yes" rank="3"/>
+    <metadata name="url" merge="unique"/>
   </service>
 </server>