1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3 <!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns="http://www.w3.org/1999/xhtml"
7 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8 xmlns:marc="http://www.loc.gov/MARC21/slim"
10 <xsl:output method="html" doctype-public="-//W3C/DTD html 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
11 <xsl:template match="/">
14 <meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
15 <link href="/koha-tmpl/opac-tmpl/prog/en/css/xsl.css" rel="stylesheet" type="text/css" />
18 <xsl:apply-templates/>
23 <xsl:template match="marc:record">
24 <div class="cardimage">
25 <xsl:apply-templates select="marc:datafield[@tag!='680' and @tag!='676' and @tag!='010']"/>
27 <xsl:apply-templates select="marc:controlfield[@tag='001']"/>
28 <xsl:apply-templates select="marc:datafield[@tag='680' or @tag='676' or @tag='010']"/>
33 <xsl:template match="marc:controlfield">
34 <span class="oclc">#<xsl:value-of select="substring(.,4)"/></span>
37 <xsl:template match="marc:datafield">
38 <xsl:if test="starts-with(@tag, '7')">
39 <p class="mainheading"><xsl:value-of select="."/></p>
41 <xsl:if test="@tag='200'">
42 <span class="title"><xsl:value-of select="."/></span>
44 <xsl:if test="@tag='200'">
45 <span class="titlemain"><xsl:value-of select="."/></span><br/>
47 <xsl:if test="@tag='205'">
48 <xsl:value-of select="."/>
50 <xsl:if test="@tag='215'">
51 <p class="extent"><xsl:value-of select="."/></p>
53 <xsl:if test="starts-with(@tag, '3')">
54 <p class="note"><xsl:value-of select="."/></p>
56 <xsl:if test="@tag='606'">
57 <span class='counter'><xsl:number count="marc:datafield[@tag='606']"/>.</span> <xsl:apply-templates select="marc:subfield"/>
59 <xsl:if test="@tag='610'">
60 <span class="counter"><xsl:number format="i" count="marc:datafield[@tag='610']"/>.</span> <xsl:apply-templates select="marc:subfield"/>
62 <xsl:if test="@tag='680'">
63 <xsl:variable name="LCCN.nospace" select="translate(marc:subfield[@code='a'], ' ', '')"/>
64 <xsl:variable name="LCCN.length" select="string-length($LCCN.nospace)"/>
65 <xsl:variable name="LCCN.display" select="concat(substring($LCCN.nospace, 1, $LCCN.length - 6), '-', format-number(substring($LCCN.nospace, $LCCN.length - 5),'#'))"/>
66 <span class="LCCN">LCCN:<xsl:value-of select="$LCCN.display"/></span>
68 <xsl:if test="@tag='676'">
69 <span class="DDC"><xsl:value-of select="marc:subfield[@code='a']"/></span>
71 <xsl:if test="@tag='856'">
72 <br/><xsl:apply-templates mode="link" select="marc:subfield" />
75 <xsl:template match="marc:subfield" mode="link">
76 <xsl:if test="@code='u'">
78 <a class="url" href="{.}"/>
82 <xsl:template match="marc:subfield">
83 <xsl:if test="@code!='2'">
84 <xsl:if test="@code!='a'">--</xsl:if>
85 <xsl:value-of select="."/>