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 xmlns:str="http://exslt.org/strings"
11 exclude-result-prefixes="marc items str">
13 <xsl:import href="UNIMARCslimUtils.xsl"/>
14 <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
15 <xsl:key name="item-by-status" match="items:item" use="items:status"/>
16 <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
18 <xsl:template match="/">
19 <xsl:apply-templates/>
22 <xsl:template match="marc:record">
23 <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
24 <xsl:variable name="leader" select="marc:leader"/>
25 <xsl:variable name="leader6" select="substring($leader,7,1)"/>
26 <xsl:variable name="leader7" select="substring($leader,8,1)"/>
27 <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
28 <xsl:variable name="isbn" select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
30 <xsl:if test="marc:datafield[@tag=200]">
31 <xsl:for-each select="marc:datafield[@tag=200]">
33 <xsl:attribute name="href">
34 <xsl:call-template name="buildBiblioDefaultViewURL">
35 <xsl:with-param name="IntranetBiblioDefaultView">
36 <xsl:value-of select="$IntranetBiblioDefaultView"/>
39 <xsl:value-of select="str:encode-uri($biblionumber, true())"/>
41 <xsl:attribute name="class">title</xsl:attribute>
43 <xsl:variable name="title" select="marc:subfield[@code='a']"/>
44 <xsl:variable name="ntitle"
45 select="translate($title, '˜œ슜슛슘슈슉','')"/>
46 <xsl:value-of select="$ntitle" />
48 <xsl:if test="marc:subfield[@code='e']">
49 <xsl:text> : </xsl:text>
50 <xsl:value-of select="marc:subfield[@code='e']"/>
52 <xsl:if test="marc:subfield[@code='b']">
53 <xsl:text> [</xsl:text>
54 <xsl:value-of select="marc:subfield[@code='b']"/>
55 <xsl:text>]</xsl:text>
57 <xsl:if test="marc:subfield[@code='h']">
58 <xsl:text> : </xsl:text>
59 <xsl:value-of select="marc:subfield[@code='h']"/>
61 <xsl:if test="marc:subfield[@code='i']">
62 <xsl:text> : </xsl:text>
63 <xsl:value-of select="marc:subfield[@code='i']"/>
65 <xsl:if test="marc:subfield[@code='f']">
66 <xsl:text> / </xsl:text>
67 <xsl:value-of select="marc:subfield[@code='f']"/>
69 <xsl:if test="marc:subfield[@code='g']">
70 <xsl:text> ; </xsl:text>
71 <xsl:value-of select="marc:subfield[@code='g']"/>
73 <xsl:text> </xsl:text>
77 <xsl:call-template name="tag_4xx" />
79 <xsl:call-template name="tag_210" />
81 <xsl:call-template name="tag_215" />