|
Lines 2-35
Link Here
|
| 2 |
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> |
2 |
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> |
| 3 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
3 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
| 4 |
<xsl:stylesheet version="1.0" |
4 |
<xsl:stylesheet version="1.0" |
| 5 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
5 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
| 6 |
xmlns:items="http://www.koha-community.org/items" |
6 |
xmlns:items="http://www.koha-community.org/items" |
| 7 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
7 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 8 |
exclude-result-prefixes="marc items"> |
8 |
exclude-result-prefixes="marc items"> |
| 9 |
<xsl:import href="MARC21slimUtils.xsl"/> |
9 |
<xsl:import href="MARC21slimUtils.xsl"/> |
| 10 |
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> |
10 |
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> |
| 11 |
<xsl:key name="item-by-status" match="items:item" use="items:status"/> |
11 |
<xsl:key name="item-by-status" match="items:item" use="items:status"/> |
| 12 |
<xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> |
12 |
<xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> |
| 13 |
|
13 |
|
| 14 |
<xsl:template match="/"> |
14 |
<xsl:template match="/"> |
| 15 |
<xsl:apply-templates/> |
15 |
<xsl:apply-templates/> |
| 16 |
</xsl:template> |
16 |
</xsl:template> |
| 17 |
<xsl:template match="marc:record"> |
17 |
<xsl:template match="marc:record"> |
| 18 |
|
18 |
|
| 19 |
<!-- Option: Display Alternate Graphic Representation (MARC 880) --> |
19 |
<!-- Option: Display Alternate Graphic Representation (MARC 880) --> |
| 20 |
<xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/> |
20 |
<xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/> |
| 21 |
|
21 |
|
| 22 |
<xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/> |
22 |
<xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/> |
| 23 |
<xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/> |
23 |
<xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/> |
| 24 |
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> |
24 |
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> |
| 25 |
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/> |
25 |
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/> |
| 26 |
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/> |
26 |
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/> |
| 27 |
<xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/> |
27 |
<xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/> |
| 28 |
<xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/> |
28 |
<xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/> |
| 29 |
<xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/> |
29 |
<xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/> |
| 30 |
<xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/> |
30 |
<xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/> |
| 31 |
<xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> |
31 |
<xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> |
| 32 |
<xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/> |
32 |
<xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/> |
|
|
33 |
<xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/> |
| 33 |
<xsl:variable name="leader" select="marc:leader"/> |
34 |
<xsl:variable name="leader" select="marc:leader"/> |
| 34 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
35 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
| 35 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
36 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
|
Lines 532-537
Link Here
|
| 532 |
|
533 |
|
| 533 |
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> |
534 |
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> |
| 534 |
<span class="results_summary"> |
535 |
<span class="results_summary"> |
|
|
536 |
|
| 537 |
<xsl:if test="$BiblioItemtypeImage='Control'"> |
| 538 |
|
| 535 |
<xsl:if test="$typeOf008!=''"> |
539 |
<xsl:if test="$typeOf008!=''"> |
| 536 |
<span class="label">Type: </span> |
540 |
<span class="label">Type: </span> |
| 537 |
<xsl:choose> |
541 |
<xsl:choose> |
|
Lines 872-877
Link Here
|
| 872 |
</xsl:when> |
876 |
</xsl:when> |
| 873 |
</xsl:choose> |
877 |
</xsl:choose> |
| 874 |
</xsl:if> |
878 |
</xsl:if> |
|
|
879 |
</xsl:if> |
| 875 |
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 --> |
880 |
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 --> |
| 876 |
</span> |
881 |
</span> |
| 877 |
</xsl:if> |
882 |
</xsl:if> |