|
Lines 361-366
Link Here
|
| 361 |
</xsl:if> |
361 |
</xsl:if> |
| 362 |
</xsl:template> |
362 |
</xsl:template> |
| 363 |
|
363 |
|
|
|
364 |
<xsl:template name="show-series"> |
| 365 |
<xsl:param name="searchurl"/> |
| 366 |
<xsl:param name="UseControlNumber"/> |
| 367 |
<xsl:param name="UseAuthoritiesForTracings"/> |
| 368 |
<!-- Series --> |
| 369 |
<xsl:if test="marc:datafield[@tag=440 or @tag=490]"> |
| 370 |
<span class="results_summary series"><span class="label">Series: </span> |
| 371 |
<!-- 440 --> |
| 372 |
<xsl:for-each select="marc:datafield[@tag=440]"> |
| 373 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 374 |
<xsl:call-template name="chopPunctuation"> |
| 375 |
<xsl:with-param name="chopString"> |
| 376 |
<xsl:call-template name="subfieldSelect"> |
| 377 |
<xsl:with-param name="codes">av</xsl:with-param> |
| 378 |
</xsl:call-template> |
| 379 |
</xsl:with-param> |
| 380 |
</xsl:call-template> |
| 381 |
</a> |
| 382 |
<xsl:call-template name="part"/> |
| 383 |
<xsl:if test="marc:subfield[@code='v']"> |
| 384 |
<xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> |
| 385 |
</xsl:if> |
| 386 |
<xsl:choose> |
| 387 |
<xsl:when test="position()=last()"> |
| 388 |
<xsl:if test="../marc:datafield[@tag=490][@ind1!=1]"> |
| 389 |
<span class="separator"> | </span> |
| 390 |
</xsl:if> |
| 391 |
</xsl:when> |
| 392 |
<xsl:otherwise><span class="separator"> | </span></xsl:otherwise> |
| 393 |
</xsl:choose> |
| 394 |
</xsl:for-each> |
| 395 |
|
| 396 |
<!-- 490 Series not traced, Ind1 = 0 --> |
| 397 |
<xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]"> |
| 398 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 399 |
<xsl:call-template name="chopPunctuation"> |
| 400 |
<xsl:with-param name="chopString"> |
| 401 |
<xsl:call-template name="subfieldSelect"> |
| 402 |
<xsl:with-param name="codes">a</xsl:with-param> |
| 403 |
</xsl:call-template> |
| 404 |
</xsl:with-param> |
| 405 |
</xsl:call-template> |
| 406 |
</a> |
| 407 |
<xsl:call-template name="part"/> |
| 408 |
<xsl:if test="marc:subfield[@code='v']"> |
| 409 |
<xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> |
| 410 |
</xsl:if> |
| 411 |
<xsl:choose> |
| 412 |
<xsl:when test="position()=last()"> |
| 413 |
<xsl:if test="../marc:datafield[@tag=490][@ind1=1]"> |
| 414 |
<span class="separator"> | </span> |
| 415 |
</xsl:if> |
| 416 |
</xsl:when> |
| 417 |
<xsl:otherwise><span class="separator"> | </span></xsl:otherwise> |
| 418 |
</xsl:choose> |
| 419 |
</xsl:for-each> |
| 420 |
<!-- 490 Series traced, Ind1 = 1 --> |
| 421 |
<xsl:if test="marc:datafield[@tag=490][@ind1=1]"> |
| 422 |
<xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811]"> |
| 423 |
<xsl:choose> |
| 424 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 425 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute> |
| 426 |
<xsl:call-template name="chopPunctuation"> |
| 427 |
<xsl:with-param name="chopString"> |
| 428 |
<xsl:call-template name="subfieldSelect"> |
| 429 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 430 |
</xsl:call-template> |
| 431 |
</xsl:with-param> |
| 432 |
</xsl:call-template> |
| 433 |
</a> |
| 434 |
</xsl:when> |
| 435 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
| 436 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute> |
| 437 |
<xsl:call-template name="chopPunctuation"> |
| 438 |
<xsl:with-param name="chopString"> |
| 439 |
<xsl:call-template name="subfieldSelect"> |
| 440 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 441 |
</xsl:call-template> |
| 442 |
</xsl:with-param> |
| 443 |
</xsl:call-template> |
| 444 |
</a> |
| 445 |
</xsl:when> |
| 446 |
<xsl:otherwise> |
| 447 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?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> |
| 448 |
<xsl:call-template name="chopPunctuation"> |
| 449 |
<xsl:with-param name="chopString"> |
| 450 |
<xsl:call-template name="subfieldSelect"> |
| 451 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 452 |
</xsl:call-template> |
| 453 |
</xsl:with-param> |
| 454 |
</xsl:call-template> |
| 455 |
</a> |
| 456 |
<xsl:call-template name="part"/> |
| 457 |
</xsl:otherwise> |
| 458 |
</xsl:choose> |
| 459 |
<xsl:text>: </xsl:text> |
| 460 |
<xsl:value-of select="marc:subfield[@code='v']" /> |
| 461 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"> | </span></xsl:otherwise></xsl:choose> |
| 462 |
</xsl:for-each> |
| 463 |
|
| 464 |
<xsl:for-each select="marc:datafield[@tag=830]"> |
| 465 |
<xsl:choose> |
| 466 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 467 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}"> |
| 468 |
<xsl:call-template name="chopPunctuation"> |
| 469 |
<xsl:with-param name="chopString"> |
| 470 |
<xsl:call-template name="subfieldSelect"> |
| 471 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 472 |
</xsl:call-template> |
| 473 |
</xsl:with-param> |
| 474 |
</xsl:call-template> |
| 475 |
</a> |
| 476 |
</xsl:when> |
| 477 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
| 478 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute> |
| 479 |
<xsl:call-template name="chopPunctuation"> |
| 480 |
<xsl:with-param name="chopString"> |
| 481 |
<xsl:call-template name="subfieldSelect"> |
| 482 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 483 |
</xsl:call-template> |
| 484 |
</xsl:with-param> |
| 485 |
</xsl:call-template> |
| 486 |
</a> |
| 487 |
</xsl:when> |
| 488 |
<xsl:otherwise> |
| 489 |
<a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> |
| 490 |
<xsl:call-template name="chopPunctuation"> |
| 491 |
<xsl:with-param name="chopString"> |
| 492 |
<xsl:call-template name="subfieldSelect"> |
| 493 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 494 |
</xsl:call-template> |
| 495 |
</xsl:with-param> |
| 496 |
</xsl:call-template> |
| 497 |
</a> |
| 498 |
<xsl:call-template name="part"/> |
| 499 |
</xsl:otherwise> |
| 500 |
</xsl:choose> |
| 501 |
<xsl:if test="marc:subfield[@code='v']"> |
| 502 |
<xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> |
| 503 |
</xsl:if> |
| 504 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"> | </span></xsl:otherwise></xsl:choose> |
| 505 |
</xsl:for-each> |
| 506 |
</xsl:if> |
| 507 |
|
| 508 |
</span> |
| 509 |
</xsl:if> |
| 510 |
</xsl:template> |
| 511 |
|
| 512 |
<xsl:template name="part"> |
| 513 |
<xsl:variable name="partNumber"> |
| 514 |
<xsl:call-template name="specialSubfieldSelect"> |
| 515 |
<xsl:with-param name="axis">n</xsl:with-param> |
| 516 |
<xsl:with-param name="anyCodes">n</xsl:with-param> |
| 517 |
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> |
| 518 |
</xsl:call-template> |
| 519 |
</xsl:variable> |
| 520 |
<xsl:variable name="partName"> |
| 521 |
<xsl:call-template name="specialSubfieldSelect"> |
| 522 |
<xsl:with-param name="axis">p</xsl:with-param> |
| 523 |
<xsl:with-param name="anyCodes">p</xsl:with-param> |
| 524 |
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> |
| 525 |
</xsl:call-template> |
| 526 |
</xsl:variable> |
| 527 |
<xsl:if test="string-length(normalize-space($partNumber))"> |
| 528 |
<xsl:call-template name="chopPunctuation"> |
| 529 |
<xsl:with-param name="chopString" select="$partNumber"/> |
| 530 |
</xsl:call-template> |
| 531 |
</xsl:if> |
| 532 |
<xsl:if test="string-length(normalize-space($partName))"> |
| 533 |
<xsl:call-template name="chopPunctuation"> |
| 534 |
<xsl:with-param name="chopString" select="$partName"/> |
| 535 |
</xsl:call-template> |
| 536 |
</xsl:if> |
| 537 |
</xsl:template> |
| 538 |
|
| 364 |
</xsl:stylesheet> |
539 |
</xsl:stylesheet> |
| 365 |
|
540 |
|
| 366 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |
541 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |
| 367 |
- |
|
|