Reformat; delete trailing whitespace
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 30 Oct 2014 08:32:44 +0000 (09:32 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 30 Oct 2014 08:32:44 +0000 (09:32 +0100)
etc/xsl/primo-pz2.xsl

index 2cd0c0d..aebdaaa 100644 (file)
@@ -1,17 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
   xmlns:tmarc="http://www.indexdata.com/turbomarc"
-  xmlns:prim="http://www.exlibrisgroup.com/xsd/primo/primo_nm_bib" 
+  xmlns:prim="http://www.exlibrisgroup.com/xsd/primo/primo_nm_bib"
   xmlns:sear="http://www.exlibrisgroup.com/xsd/jaguar/search"
->
-
+  >
   <xsl:output indent="yes" method="xml" version="1.0"
     encoding="UTF-8" />
-
   <xsl:template name="record-hook" />
-
   <xsl:variable name="type" select="/opt/prim:PrimoNMBib/prim:display/prim:type"/>
   <xsl:variable name="is_article" select="$type = 'article'" />
   <xsl:variable name="fulltext" select="/opt/prim:PrimoNMBib/prim:delivery/prim:fulltext"/>
@@ -48,8 +45,8 @@
   <xsl:template match="prim:PrimoNMBib">
     <xsl:apply-templates />
   </xsl:template>
-  
-  <xsl:template match="prim:control"> 
+
+  <xsl:template match="prim:control">
     <xsl:for-each select="prim:recordid">
       <pz:metadata type="id">
        <xsl:value-of select="."/>
     </xsl:for-each>
   </xsl:template>
 
-  <xsl:template match="prim:delivery">  
-
+  <xsl:template match="prim:delivery">
     <xsl:if test="$has_fulltext">
       <pz:metadata type="has-fulltext">
         <xsl:value-of select="$has_fulltext" />
       </pz:metadata>
     </xsl:if>
-
   </xsl:template>
 
   <xsl:template match="prim:display">
-
-<!--
-    <xsl:for-each select="prim:creator">
-       <pz:metadata type="author">
-        <xsl:value-of select="." />
-      </pz:metadata>
-    </xsl:for-each>
--->
     <xsl:for-each select="prim:type">
       <xsl:variable name="type" select="."/>
       <pz:metadata type="medium">
             <xsl:value-of select="$type"/>
           </xsl:otherwise>
        </xsl:choose>
-<!--        <xsl:value-of select="$type" /> -->
       </pz:metadata>
       <pz:metadata type="debug_isarticle"><xsl:value-of select="$is_article"/></pz:metadata>
-    </xsl:for-each>  
+    </xsl:for-each>
 
     <xsl:for-each select="prim:title">
       <pz:metadata type="title">
        <xsl:value-of select="." />
       </pz:metadata>
-    </xsl:for-each>  
+    </xsl:for-each>
 
     <xsl:for-each select="prim:ispartof">
       <pz:metadata type="citation">
        <xsl:value-of select="." />
       </pz:metadata>
     </xsl:for-each>
-<!--
-    <xsl:apply-templates />
--->
   </xsl:template>
 
   <xsl:template match="prim:facets">
        <pz:metadata type="subject">
         <xsl:value-of select="." />
       </pz:metadata>
-    </xsl:for-each>  
+    </xsl:for-each>
   </xsl:template>
 
   <xsl:template match="sear:LINKS" >
-    <xsl:for-each select="sear:openurl"> 
+    <xsl:for-each select="sear:openurl">
       <pz:metadata type="electronic-url">
        <xsl:value-of select="."/>
       </pz:metadata>
     </xsl:for-each>
     <!-- other stylesheets importing this might want to define this -->
 
-    <xsl:call-template name="record-hook" />   
+    <xsl:call-template name="record-hook" />
   </xsl:template>
 
   <xsl:template match="text()" />