exclude-result-prefixes="marc items">
<xsl:import href="UNIMARCslimUtils.xsl"/>
-<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" />
+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="marc:record">
+ <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
<xsl:variable name="leader" select="marc:leader"/>
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
<xsl:call-template name="addClassRtl" />
<xsl:variable name="title" select="marc:subfield[@code='a']"/>
<xsl:variable name="ntitle"
- select="translate($title, '˜œ','')"/>
+ select="translate($title, '˜œ슜슛슘슈슉','')"/>
<xsl:value-of select="$ntitle" />
<xsl:if test="marc:subfield[@code='e']">
<xsl:text> : </xsl:text>
<li>
<strong>Online Resources: </strong>
<xsl:for-each select="marc:datafield[@tag=856]">
+ <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
<a>
<xsl:attribute name="href">
<xsl:value-of select="marc:subfield[@code='u']"/>
</xsl:attribute>
<xsl:choose>
+ <xsl:when test="($Show856uAsImage='Details' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
+ <xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="height">100</xsl:attribute></xsl:element><xsl:text></xsl:text>
+ </xsl:when>
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">y3z</xsl:with-param>
</xsl:for-each>
</li>
</xsl:if>
-
- <!-- 780 -->
- <xsl:if test="marc:datafield[@tag=780]">
- <xsl:for-each select="marc:datafield[@tag=780]">
- <li>
- <xsl:choose>
- <xsl:when test="@ind2=0">
- <strong>Continues:</strong>
- </xsl:when>
- <xsl:when test="@ind2=1">
- <strong>Continues in part:</strong>
- </xsl:when>
- <xsl:when test="@ind2=2">
- <strong>Supersedes:</strong>
- </xsl:when>
- <xsl:when test="@ind2=3">
- <strong>Supersedes in part:</strong>
- </xsl:when>
- <xsl:when test="@ind2=4">
- <strong>Formed by the union: ... and: ...</strong>
- </xsl:when>
- <xsl:when test="@ind2=5">
- <strong>Absorbed:</strong>
- </xsl:when>
- <xsl:when test="@ind2=6">
- <strong>Absorbed in part:</strong>
- </xsl:when>
- <xsl:when test="@ind2=7">
- <strong>Separated from:</strong>
- </xsl:when>
- </xsl:choose>
-
- <xsl:variable name="f780">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">at</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
- <xsl:value-of select="translate($f780, '()', '')"/>
- </a>
- </li>
-
- <xsl:choose>
- <xsl:when test="@ind1=0">
- <li><xsl:value-of select="marc:subfield[@code='n']"/></li>
- </xsl:when>
- </xsl:choose>
-
- </xsl:for-each>
- </xsl:if>
-
- <!-- 785 -->
- <xsl:if test="marc:datafield[@tag=785]">
- <xsl:for-each select="marc:datafield[@tag=785]">
- <li>
- <xsl:choose>
- <xsl:when test="@ind2=0">
- <strong>Continued by:</strong>
- </xsl:when>
- <xsl:when test="@ind2=1">
- <strong>Continued in part by:</strong>
- </xsl:when>
- <xsl:when test="@ind2=2">
- <strong>Superseded by:</strong>
- </xsl:when>
- <xsl:when test="@ind2=3">
- <strong>Superseded in part by:</strong>
- </xsl:when>
- <xsl:when test="@ind2=4">
- <strong>Absorbed by:</strong>
- </xsl:when>
- <xsl:when test="@ind2=5">
- <strong>Absorbed in part by:</strong>
- </xsl:when>
- <xsl:when test="@ind2=6">
- <strong>Split into .. and ...:</strong>
- </xsl:when>
- <xsl:when test="@ind2=7">
- <strong>Merged with ... to form ...</strong>
- </xsl:when>
- <xsl:when test="@ind2=8">
- <strong>Changed back to:</strong>
- </xsl:when>
- </xsl:choose>
- <xsl:variable name="f785">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">at</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
-
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
- <xsl:value-of select="translate($f785, '()', '')"/>
- </a>
-
- </li>
- </xsl:for-each>
- </xsl:if>
-
- </xsl:template>
+</xsl:template>
<xsl:template name="nameABCDQ">
<xsl:call-template name="chopPunctuation">