Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
[pazpar2-moved-to-github.git] / etc / cf.xsl
index 53e8fc1..9438c75 100644 (file)
 
   <xsl:template match="/record">
     <pz:record>
-      <xsl:attribute name="mergekey">
-             <xsl:text>title </xsl:text>
-        <xsl:value-of select="title" />
-             <xsl:text> author </xsl:text>
-        <xsl:value-of select="author"/>
-      </xsl:attribute>
       <xsl:apply-templates/>
     </pz:record>
   </xsl:template>
       <xsl:value-of select="."/>
     </pz:metadata>
   </xsl:template>
+  
+  <xsl:template match="subject">
+    <pz:metadata type="subject">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
 
   <xsl:template match="text()"/>