1 <?xml version="1.0" encoding="UTF-8"?>
3 <!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
5 <!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
6 <xsl:stylesheet version="1.0"
7 xmlns:marc="http://www.loc.gov/MARC21/slim"
8 xmlns:items="http://www.koha-community.org/items"
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 exclude-result-prefixes="marc items">
11 <xsl:import href="UNIMARCslimUtils.xsl"/>
12 <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
13 <xsl:key name="item-by-status" match="items:item" use="items:status"/>
14 <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
16 <xsl:template match="/">
17 <xsl:apply-templates/>
20 <xsl:template match="marc:record">
21 <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
22 <xsl:variable name="leader" select="marc:leader"/>
23 <xsl:variable name="leader6" select="substring($leader,7,1)"/>
24 <xsl:variable name="leader7" select="substring($leader,8,1)"/>
25 <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
26 <xsl:variable name="isbn" select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
28 <xsl:if test="marc:datafield[@tag=200]">
29 <xsl:for-each select="marc:datafield[@tag=200]">
31 <xsl:attribute name="href">
32 <xsl:call-template name="buildBiblioDefaultViewURL">
33 <xsl:with-param name="IntranetBiblioDefaultView">
34 <xsl:value-of select="$IntranetBiblioDefaultView"/>
37 <xsl:value-of select="$biblionumber"/>
39 <xsl:attribute name="class">title</xsl:attribute>
41 <xsl:variable name="title" select="marc:subfield[@code='a']"/>
42 <xsl:variable name="ntitle"
43 select="translate($title, '˜œ슜슛슘슈슉','')"/>
44 <xsl:value-of select="$ntitle" />
46 <xsl:if test="marc:subfield[@code='e']">
47 <xsl:text> : </xsl:text>
48 <xsl:value-of select="marc:subfield[@code='e']"/>
50 <xsl:if test="marc:subfield[@code='b']">
51 <xsl:text> [</xsl:text>
52 <xsl:value-of select="marc:subfield[@code='b']"/>
53 <xsl:text>]</xsl:text>
55 <xsl:if test="marc:subfield[@code='h']">
56 <xsl:text> : </xsl:text>
57 <xsl:value-of select="marc:subfield[@code='h']"/>
59 <xsl:if test="marc:subfield[@code='i']">
60 <xsl:text> : </xsl:text>
61 <xsl:value-of select="marc:subfield[@code='i']"/>
63 <xsl:if test="marc:subfield[@code='f']">
64 <xsl:text> / </xsl:text>
65 <xsl:value-of select="marc:subfield[@code='f']"/>
67 <xsl:if test="marc:subfield[@code='g']">
68 <xsl:text> ; </xsl:text>
69 <xsl:value-of select="marc:subfield[@code='g']"/>
71 <xsl:text> </xsl:text>
75 <xsl:call-template name="tag_4xx" />
77 <xsl:call-template name="tag_210" />
79 <xsl:call-template name="tag_215" />