Lines 1-8
Link Here
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
|
|
|
3 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
2 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
4 |
|
|
|
5 |
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> |
3 |
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> |
|
|
4 |
<!-- Edited: Bug 13381 [ENH] XSLT enhancements sponsored by bywater solutions 2014/12/15 WS wsalesky@gmail.com --> |
6 |
<xsl:stylesheet version="1.0" |
5 |
<xsl:stylesheet version="1.0" |
7 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
6 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
8 |
xmlns:items="http://www.koha-community.org/items" |
7 |
xmlns:items="http://www.koha-community.org/items" |
Lines 106-117
Link Here
|
106 |
<xsl:call-template name="subfieldSelect"> |
105 |
<xsl:call-template name="subfieldSelect"> |
107 |
<xsl:with-param name="codes">a</xsl:with-param> |
106 |
<xsl:with-param name="codes">a</xsl:with-param> |
108 |
</xsl:call-template> |
107 |
</xsl:call-template> |
109 |
<xsl:if test="marc:subfield[@code='h']"> |
108 |
<!--Bug 13381 Suppress subfield h from 245--> |
110 |
<xsl:text> </xsl:text> |
|
|
111 |
<xsl:call-template name="subfieldSelect"> |
112 |
<xsl:with-param name="codes">h</xsl:with-param> |
113 |
</xsl:call-template> |
114 |
</xsl:if> |
115 |
<xsl:if test="marc:subfield[@code='b']"> |
109 |
<xsl:if test="marc:subfield[@code='b']"> |
116 |
<xsl:text> </xsl:text> |
110 |
<xsl:text> </xsl:text> |
117 |
<xsl:call-template name="subfieldSelect"> |
111 |
<xsl:call-template name="subfieldSelect"> |
Lines 119-127
Link Here
|
119 |
</xsl:call-template> |
113 |
</xsl:call-template> |
120 |
</xsl:if> |
114 |
</xsl:if> |
121 |
<xsl:text> </xsl:text> |
115 |
<xsl:text> </xsl:text> |
|
|
116 |
<!--Bug 13381 add additional subfields--> |
122 |
<xsl:call-template name="subfieldSelect"> |
117 |
<xsl:call-template name="subfieldSelect"> |
123 |
<xsl:with-param name="codes">fgknps</xsl:with-param> |
118 |
<xsl:with-param name="codes">fgknps</xsl:with-param> |
124 |
</xsl:call-template> |
119 |
</xsl:call-template> |
|
|
120 |
<!--Bug 13381 If subfield h and subfield c add appropriate punctation--> |
121 |
<xsl:choose> |
122 |
<xsl:when test="marc:subfield[@code='h'] and marc:subfield[@code='c']"> |
123 |
<xsl:variable name="length" select="string-length(marc:subfield[@code='h'])"/> |
124 |
<xsl:if test="contains('/', substring(marc:subfield[@code='h'],$length,1))"> |
125 |
<xsl:text> / </xsl:text> |
126 |
</xsl:if> |
127 |
</xsl:when> |
128 |
<!--if perviouse subfield end ends with puncutation add space --> |
129 |
<xsl:when test="marc:subfield[@code='c']/preceding-sibling::*"> |
130 |
<xsl:variable name="length" select="string-length(marc:subfield[@code='c']/preceding-sibling::*[l])"/> |
131 |
<xsl:if test="contains('.:,;/', substring(marc:subfield[@code='c']/preceding-sibling::*[1],$length,1))"> |
132 |
<xsl:text> </xsl:text> |
133 |
</xsl:if> |
134 |
</xsl:when> |
135 |
</xsl:choose> |
136 |
<!--Bug 13381 Added Statement of responsibility subfield display. Added at end of title --> |
137 |
<xsl:call-template name="subfieldSelect"> |
138 |
<xsl:with-param name="codes">c</xsl:with-param> |
139 |
</xsl:call-template> |
140 |
|
125 |
</xsl:for-each> |
141 |
</xsl:for-each> |
126 |
</h1> |
142 |
</h1> |
127 |
</xsl:if> |
143 |
</xsl:if> |
Lines 143-156
Link Here
|
143 |
<xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template> |
159 |
<xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template> |
144 |
<xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template> |
160 |
<xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template> |
145 |
|
161 |
|
146 |
<xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''"> |
162 |
<xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''"> |
147 |
<span class="results_summary type"><span class="label">Material type: </span> |
163 |
<span class="results_summary type"><span class="label">Material type: </span> |
148 |
<xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element> |
164 |
<xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element> |
149 |
<xsl:text> </xsl:text> |
165 |
<xsl:text> </xsl:text> |
150 |
<xsl:value-of select="$materialTypeLabel"/> |
166 |
<xsl:value-of select="$materialTypeLabel"/> |
151 |
</span> |
167 |
</span> |
152 |
</xsl:if> |
168 |
</xsl:if> |
153 |
|
169 |
|
|
|
170 |
<!--Bug 13381 Resource Medium from 245 strips [] and / from string--> |
171 |
<xsl:if test="marc:datafield[@tag=245][marc:subfield[@code='h']]"> |
172 |
<span class="results_summary type"><span class="label">Medium: </span> |
173 |
<xsl:variable name="str"> |
174 |
<xsl:for-each select="marc:datafield[@tag=245]"> |
175 |
<xsl:call-template name="subfieldSelect"> |
176 |
<xsl:with-param name="codes">h</xsl:with-param> |
177 |
</xsl:call-template> |
178 |
</xsl:for-each> |
179 |
</xsl:variable> |
180 |
<xsl:value-of select="translate($str,'[]/',' ')"/> |
181 |
</span> |
182 |
</xsl:if> |
154 |
|
183 |
|
155 |
<!--Series: Alternate Graphic Representation (MARC 880) --> |
184 |
<!--Series: Alternate Graphic Representation (MARC 880) --> |
156 |
<xsl:if test="$display880"> |
185 |
<xsl:if test="$display880"> |