Adds synthetic title-complete ...
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 7 Jul 2010 09:49:25 +0000 (02:49 -0700)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 7 Jul 2010 09:49:25 +0000 (02:49 -0700)
... to enable composite mergekey on title and title-remainder

etc/cf.xsl
etc/tmarc.xsl

index ac8d0dd..4b8aebe 100644 (file)
@@ -45,6 +45,9 @@
     <pz:metadata type="title">
       <xsl:value-of select="."/>
     </pz:metadata>
+    <pz:metadata type="title-complete">
+      <xsl:value-of select="." />
+    </pz:metadata>
   </xsl:template>
 
   <xsl:template match="author">
index f652de1..b46ebcf 100644 (file)
         <pz:metadata type="title-number-section">
           <xsl:value-of select="tmarc:sn" />
         </pz:metadata>
+        <pz:metadata type="title-complete">
+          <xsl:value-of select="tmarc:sa" />
+          <xsl:if test="tmarc:sb" ><xsl:value-of select="concat(' ', tmarc:sb)" /></xsl:if>
+        </pz:metadata>
       </xsl:for-each>
 
       <xsl:for-each select="tmarc:d250">