Fix subject-long: Removed one letter too much. Formatting around namespaces
[pazpar2-moved-to-github.git] / etc / oai_dc.xsl
index b099049..36757cc 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-    $Id: oai_dc.xsl,v 1.1 2007-07-18 14:19:03 adam Exp $
 
     This stylesheet expects oai/dc records
 -->
@@ -9,7 +8,8 @@
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
     xmlns:oai="http://www.openarchives.org/OAI/2.0/"
-    xmlns:dc="http://purl.org/dc/elements/1.1/">
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:dcterms="http://purl.org/dc/terms/">
 
  <xsl:output indent="yes"
         method="xml"
   <xsl:template match="/oai:record/oai:metadata/*">
     <pz:record>
 
-      <xsl:attribute name="mergekey">
-        <xsl:text>title </xsl:text>
-       <xsl:value-of select="dc:title[1]"/>
-       <xsl:text> author </xsl:text>
-       <xsl:value-of select="dc:creator[1]"/>
-      </xsl:attribute>
-
       <pz:metadata type="id">
         <xsl:value-of select="/oai:record/oai:header/oai:identifier"/>
       </pz:metadata>
        </pz:metadata>
       </xsl:for-each>
 
+      <xsl:for-each select="dc:identifier">
+        <pz:metadata type="electronic-url">
+         <xsl:value-of select="."/>
+       </pz:metadata>
+      </xsl:for-each>
+
+      <xsl:for-each select="dc:type">
+        <pz:metadata type="medium">
+             <xsl:value-of select="."/>
+           </pz:metadata>
+      </xsl:for-each>
+
+      <xsl:for-each select="dcterms:bibliographicCitation">
+        <pz:metadata type="citation">
+          <xsl:value-of select="."/>
+        </pz:metadata>
+      </xsl:for-each>
+
     </pz:record>
   </xsl:template>