Renaming XSL file
authorSebastian Hammer <quinn@indexdata.com>
Sun, 31 Dec 2006 04:51:17 +0000 (04:51 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Sun, 31 Dec 2006 04:51:17 +0000 (04:51 +0000)
etc/default.xsl [deleted file]
etc/marc21.xsl [new file with mode: 0644]
etc/pazpar2.cfg

diff --git a/etc/default.xsl b/etc/default.xsl
deleted file mode 100644 (file)
index 24d0e2c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet
-    version="1.0"
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
-    xmlns:marc="http://www.loc.gov/MARC21/slim">
-
-  <xsl:template match="/marc:record">
-    <pz:record>
-
-      <pz:metadata type="title">
-       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
-       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='b']"/>
-      </pz:metadata>
-
-      <pz:mergekey>
-        <xsl:text>title </xsl:text>
-       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
-       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='b']"/>
-       <xsl:text> author </xsl:text>
-       <xsl:value-of select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
-      </pz:mergekey>
-
-      <xsl:for-each select="marc:datafield[@tag='650']">
-       <pz:facet type="subject">
-         <xsl:value-of select="marc:subfield[@code='a']"/>
-       </pz:facet>
-      </xsl:for-each>
-
-      <xsl:for-each select="marc:datafield[@tag='100']">
-       <pz:facet type="author">
-         <xsl:value-of select="marc:subfield[@code='a']"/>
-       </pz:facet>
-      </xsl:for-each>
-    </pz:record>
-  </xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/etc/marc21.xsl b/etc/marc21.xsl
new file mode 100644 (file)
index 0000000..24d0e2c
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+    version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
+    xmlns:marc="http://www.loc.gov/MARC21/slim">
+
+  <xsl:template match="/marc:record">
+    <pz:record>
+
+      <pz:metadata type="title">
+       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
+       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='b']"/>
+      </pz:metadata>
+
+      <pz:mergekey>
+        <xsl:text>title </xsl:text>
+       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
+       <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='b']"/>
+       <xsl:text> author </xsl:text>
+       <xsl:value-of select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
+      </pz:mergekey>
+
+      <xsl:for-each select="marc:datafield[@tag='650']">
+       <pz:facet type="subject">
+         <xsl:value-of select="marc:subfield[@code='a']"/>
+       </pz:facet>
+      </xsl:for-each>
+
+      <xsl:for-each select="marc:datafield[@tag='100']">
+       <pz:facet type="author">
+         <xsl:value-of select="marc:subfield[@code='a']"/>
+       </pz:facet>
+      </xsl:for-each>
+    </pz:record>
+  </xsl:template>
+
+</xsl:stylesheet>
+
index d59da84..a640319 100644 (file)
@@ -37,7 +37,7 @@
   <requestsyntax>marc21</requestsyntax>
   <charset>marc-8</charset>
   <map type="iso2709" charset="marc-8" format="marcxml"/>
-  <map type="xslt" stylesheet="default.xsl"/>
+  <map type="xslt" stylesheet="marc21.xsl"/>
 </retrievalprofile>
 
 </pazpar2>