1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
3 <xsl:stylesheet version=
"1.0"
4 xmlns:
marc=
"http://www.loc.gov/MARC21/slim"
5 xmlns:
items=
"http://www.koha.org/items"
6 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
7 exclude-result-prefixes=
"marc items">
8 <xsl:import href=
"UNIMARCslimUtils.xsl"/>
9 <xsl:output method =
"xml" indent=
"yes" omit-xml-declaration =
"yes" />
10 <xsl:key name=
"item-by-status" match=
"items:item" use=
"items:status"/>
11 <xsl:key name=
"item-by-status-and-branch" match=
"items:item" use=
"concat(items:status, ' ', items:homebranch)"/>
13 <xsl:template match=
"/">
14 <xsl:apply-templates/>
17 <xsl:template match=
"marc:record">
18 <xsl:variable name=
"leader" select=
"marc:leader"/>
19 <xsl:variable name=
"leader6" select=
"substring($leader,7,1)"/>
20 <xsl:variable name=
"leader7" select=
"substring($leader,8,1)"/>
21 <xsl:variable name=
"biblionumber" select=
"marc:controlfield[@tag=001]"/>
22 <xsl:variable name=
"isbn" select=
"marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
24 <xsl:if test=
"marc:datafield[@tag=200]">
25 <xsl:for-each select=
"marc:datafield[@tag=200]">
26 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=
<xsl:value-of select=
"$biblionumber"/>
28 <xsl:variable name=
"title" select=
"marc:subfield[@code='a']"/>
29 <xsl:variable name=
"ntitle"
30 select=
"translate($title, '˜œ슜슛슘슈슉','')"/>
31 <xsl:value-of select=
"$ntitle" />
33 <xsl:if test=
"marc:subfield[@code='e']">
34 <xsl:text> :
</xsl:text>
35 <xsl:value-of select=
"marc:subfield[@code='e']"/>
37 <xsl:if test=
"marc:subfield[@code='b']">
38 <xsl:text> [
</xsl:text>
39 <xsl:value-of select=
"marc:subfield[@code='b']"/>
40 <xsl:text>]
</xsl:text>
42 <xsl:if test=
"marc:subfield[@code='h']">
43 <xsl:text> :
</xsl:text>
44 <xsl:value-of select=
"marc:subfield[@code='h']"/>
46 <xsl:if test=
"marc:subfield[@code='i']">
47 <xsl:text> :
</xsl:text>
48 <xsl:value-of select=
"marc:subfield[@code='i']"/>
50 <xsl:if test=
"marc:subfield[@code='f']">
51 <xsl:text> /
</xsl:text>
52 <xsl:value-of select=
"marc:subfield[@code='f']"/>
54 <xsl:if test=
"marc:subfield[@code='g']">
55 <xsl:text> ;
</xsl:text>
56 <xsl:value-of select=
"marc:subfield[@code='g']"/>
58 <xsl:text> </xsl:text>
62 <xsl:call-template name=
"tag_4xx" />
64 <xsl:call-template name=
"tag_210" />
66 <xsl:call-template name=
"tag_215" />