|
Lines 190-324
Link Here
|
| 190 |
<xsl:with-param name="index">se</xsl:with-param> |
190 |
<xsl:with-param name="index">se</xsl:with-param> |
| 191 |
</xsl:call-template> |
191 |
</xsl:call-template> |
| 192 |
</xsl:if> |
192 |
</xsl:if> |
| 193 |
|
|
|
| 194 |
<!-- Series --> |
| 195 |
<xsl:if test="marc:datafield[@tag=440 or @tag=490]"> |
| 196 |
<span class="results_summary series"><span class="label">Series: </span> |
| 197 |
<!-- 440 --> |
| 198 |
<xsl:for-each select="marc:datafield[@tag=440]"> |
| 199 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 200 |
<xsl:call-template name="chopPunctuation"> |
| 201 |
<xsl:with-param name="chopString"> |
| 202 |
<xsl:call-template name="subfieldSelect"> |
| 203 |
<xsl:with-param name="codes">av</xsl:with-param> |
| 204 |
</xsl:call-template> |
| 205 |
</xsl:with-param> |
| 206 |
</xsl:call-template> |
| 207 |
</a> |
| 208 |
<xsl:call-template name="part"/> |
| 209 |
<xsl:choose> |
| 210 |
<xsl:when test="position()=last()"> |
| 211 |
<xsl:if test="../marc:datafield[@tag=490][@ind1!=1]"> |
| 212 |
<xsl:text>; </xsl:text> |
| 213 |
</xsl:if> |
| 214 |
</xsl:when> |
| 215 |
<xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise> |
| 216 |
</xsl:choose> |
| 217 |
</xsl:for-each> |
| 218 |
|
| 219 |
<!-- 490 Series not traced, Ind1 = 0 --> |
| 220 |
<xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]"> |
| 221 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 222 |
<xsl:call-template name="chopPunctuation"> |
| 223 |
<xsl:with-param name="chopString"> |
| 224 |
<xsl:call-template name="subfieldSelect"> |
| 225 |
<xsl:with-param name="codes">av</xsl:with-param> |
| 226 |
</xsl:call-template> |
| 227 |
</xsl:with-param> |
| 228 |
</xsl:call-template> |
| 229 |
</a> |
| 230 |
<xsl:call-template name="part"/> |
| 231 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
| 232 |
</xsl:for-each> |
| 233 |
<!-- 490 Series traced, Ind1 = 1 --> |
| 234 |
<xsl:if test="marc:datafield[@tag=490][@ind1=1]"> |
| 235 |
<xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811]"> |
| 236 |
<xsl:choose> |
| 237 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 238 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute> |
| 239 |
<xsl:call-template name="chopPunctuation"> |
| 240 |
<xsl:with-param name="chopString"> |
| 241 |
<xsl:call-template name="subfieldSelect"> |
| 242 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 243 |
</xsl:call-template> |
| 244 |
</xsl:with-param> |
| 245 |
</xsl:call-template> |
| 246 |
</a> |
| 247 |
</xsl:when> |
| 248 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
| 249 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute> |
| 250 |
<xsl:call-template name="chopPunctuation"> |
| 251 |
<xsl:with-param name="chopString"> |
| 252 |
<xsl:call-template name="subfieldSelect"> |
| 253 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 254 |
</xsl:call-template> |
| 255 |
</xsl:with-param> |
| 256 |
</xsl:call-template> |
| 257 |
</a> |
| 258 |
</xsl:when> |
| 259 |
<xsl:otherwise> |
| 260 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/>"&q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 261 |
<xsl:call-template name="chopPunctuation"> |
| 262 |
<xsl:with-param name="chopString"> |
| 263 |
<xsl:call-template name="subfieldSelect"> |
| 264 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 265 |
</xsl:call-template> |
| 266 |
</xsl:with-param> |
| 267 |
</xsl:call-template> |
| 268 |
</a> |
| 269 |
<xsl:call-template name="part"/> |
| 270 |
</xsl:otherwise> |
| 271 |
</xsl:choose> |
| 272 |
<xsl:text>: </xsl:text> |
| 273 |
<xsl:value-of select="marc:subfield[@code='v']" /> |
| 274 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
| 275 |
</xsl:for-each> |
| 276 |
|
193 |
|
| 277 |
<xsl:for-each select="marc:datafield[@tag=830]"> |
194 |
<xsl:call-template name="show-series"> |
| 278 |
<xsl:choose> |
195 |
<xsl:with-param name="searchurl">/cgi-bin/koha/catalogue/search.pl</xsl:with-param> |
| 279 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
196 |
<xsl:with-param name="UseControlNumber" select="$UseControlNumber"/> |
| 280 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}"> |
197 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
| 281 |
<xsl:call-template name="chopPunctuation"> |
198 |
</xsl:call-template> |
| 282 |
<xsl:with-param name="chopString"> |
|
|
| 283 |
<xsl:call-template name="subfieldSelect"> |
| 284 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 285 |
</xsl:call-template> |
| 286 |
</xsl:with-param> |
| 287 |
</xsl:call-template> |
| 288 |
</a> |
| 289 |
</xsl:when> |
| 290 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
| 291 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute> |
| 292 |
<xsl:call-template name="chopPunctuation"> |
| 293 |
<xsl:with-param name="chopString"> |
| 294 |
<xsl:call-template name="subfieldSelect"> |
| 295 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 296 |
</xsl:call-template> |
| 297 |
</xsl:with-param> |
| 298 |
</xsl:call-template> |
| 299 |
</a> |
| 300 |
</xsl:when> |
| 301 |
<xsl:otherwise> |
| 302 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 303 |
<xsl:call-template name="chopPunctuation"> |
| 304 |
<xsl:with-param name="chopString"> |
| 305 |
<xsl:call-template name="subfieldSelect"> |
| 306 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 307 |
</xsl:call-template> |
| 308 |
</xsl:with-param> |
| 309 |
</xsl:call-template> |
| 310 |
</a> |
| 311 |
<xsl:call-template name="part"/> |
| 312 |
</xsl:otherwise> |
| 313 |
</xsl:choose> |
| 314 |
<xsl:text>: </xsl:text> |
| 315 |
<xsl:value-of select="marc:subfield[@code='v']" /> |
| 316 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
| 317 |
</xsl:for-each> |
| 318 |
</xsl:if> |
| 319 |
|
| 320 |
</span> |
| 321 |
</xsl:if> |
| 322 |
|
199 |
|
| 323 |
<!-- Analytics information --> |
200 |
<!-- Analytics information --> |
| 324 |
<xsl:variable name="leader7_class"> |
201 |
<xsl:variable name="leader7_class"> |
|
Lines 1396-1428
Link Here
|
| 1396 |
</xsl:call-template> |
1273 |
</xsl:call-template> |
| 1397 |
</xsl:template> |
1274 |
</xsl:template> |
| 1398 |
|
1275 |
|
| 1399 |
<xsl:template name="part"> |
|
|
| 1400 |
<xsl:variable name="partNumber"> |
| 1401 |
<xsl:call-template name="specialSubfieldSelect"> |
| 1402 |
<xsl:with-param name="axis">n</xsl:with-param> |
| 1403 |
<xsl:with-param name="anyCodes">n</xsl:with-param> |
| 1404 |
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> |
| 1405 |
</xsl:call-template> |
| 1406 |
</xsl:variable> |
| 1407 |
<xsl:variable name="partName"> |
| 1408 |
<xsl:call-template name="specialSubfieldSelect"> |
| 1409 |
<xsl:with-param name="axis">p</xsl:with-param> |
| 1410 |
<xsl:with-param name="anyCodes">p</xsl:with-param> |
| 1411 |
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> |
| 1412 |
</xsl:call-template> |
| 1413 |
</xsl:variable> |
| 1414 |
<xsl:if test="string-length(normalize-space($partNumber))"> |
| 1415 |
<xsl:call-template name="chopPunctuation"> |
| 1416 |
<xsl:with-param name="chopString" select="$partNumber"/> |
| 1417 |
</xsl:call-template> |
| 1418 |
</xsl:if> |
| 1419 |
<xsl:if test="string-length(normalize-space($partName))"> |
| 1420 |
<xsl:call-template name="chopPunctuation"> |
| 1421 |
<xsl:with-param name="chopString" select="$partName"/> |
| 1422 |
</xsl:call-template> |
| 1423 |
</xsl:if> |
| 1424 |
</xsl:template> |
| 1425 |
|
| 1426 |
<xsl:template name="specialSubfieldSelect"> |
1276 |
<xsl:template name="specialSubfieldSelect"> |
| 1427 |
<xsl:param name="anyCodes"/> |
1277 |
<xsl:param name="anyCodes"/> |
| 1428 |
<xsl:param name="axis"/> |
1278 |
<xsl:param name="axis"/> |