adding cover art and pub date to the dumpac cn browser
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Oct 2006 18:21:18 +0000 (18:21 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Oct 2006 18:21:18 +0000 (18:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6421 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xsl/CNBrowse2HTML.xsl

index fdb60c2..96e0938 100644 (file)
   </xsl:template>
 
   <xsl:template match="marc:record">
+   <img>
+    <xsl:attribute name="src">
+      <xsl:variable name="isbnraw"><xsl:value-of select="marc:datafield[@tag='020']/marc:subfield[@code='a']"/></xsl:variable>
+      <xsl:choose>
+        <xsl:when test="substring-before($isbnraw,' ')">
+          <xsl:variable name="isbntrimmed"><xsl:value-of select="substring-before($isbnraw,' ')"/></xsl:variable>
+          <xsl:value-of select="concat('/opac/extras/jacket/small/',$isbntrimmed)"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="concat('/opac/extras/jacket/small/',$isbnraw)"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
+   </img>
    <a>
     <xsl:attribute name="href">
      <xsl:value-of select="concat('/opac/extras/unapi?format=htmlholdings-full;id=',@id)"/>
    </a>
    <xsl:text> By </xsl:text>
    <xsl:value-of select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
+   <xsl:text> / Published </xsl:text>
+   <xsl:value-of select="marc:datafield[@tag='260']/marc:subfield[@code='c']|marc:datafield[@tag='261']/marc:subfield[@code='d']|marc:datafield[@tag='262']/marc:subfield[@code='d']"/>
+   <span>
+     <xsl:attribute name="style">
+      <xsl:text>font-size:smaller;</xsl:text>
+     </xsl:attribute>
+     <xsl:text> (</xsl:text>
+     <a>
+      <xsl:attribute name="href">
+       <xsl:value-of select="concat('/opac/extras/unapi?format=opac;id=',@id)"/>
+      </xsl:attribute>
+      <xsl:text>Dynamic Details</xsl:text>
+     </a>
+     <xsl:text>)</xsl:text>
+   </span>
   </xsl:template>
 
 </xsl:stylesheet>