|
Lines 338-343
Link Here
|
| 338 |
</xsl:if> |
338 |
</xsl:if> |
| 339 |
</xsl:template> |
339 |
</xsl:template> |
| 340 |
|
340 |
|
|
|
341 |
<xsl:template name="showComponentParts"> |
| 342 |
<!-- Component part records: Displaying title and author of component part records --> |
| 343 |
<xsl:if test="marc:componentPartRecords"> |
| 344 |
<div class="results_summary componentPartRecordsContainer"> |
| 345 |
<h5>Component part records</h5> |
| 346 |
<ol class="componentParts"> |
| 347 |
<xsl:for-each select="marc:componentPartRecords/marc:record"> |
| 348 |
<li> |
| 349 |
<span class="componentPartRecord"> |
| 350 |
<span class="componentPartRecordTitle"> |
| 351 |
<a> |
| 352 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:datafield[@tag=999]/marc:subfield[@code='c']" /></xsl:attribute> |
| 353 |
<xsl:choose> |
| 354 |
<xsl:when test="marc:datafield[@tag=245]/marc:subfield[@code='a']"> |
| 355 |
<xsl:value-of select="substring-before( concat(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/'), '/')" /> |
| 356 |
</xsl:when> |
| 357 |
<xsl:when test="marc:datafield[@tag=240]/marc:subfield[@code='a']"> |
| 358 |
<xsl:for-each select="marc:datafield[@tag=240]"> |
| 359 |
<xsl:call-template name="chopPunctuation"> |
| 360 |
<xsl:with-param name="chopString"> |
| 361 |
<xsl:call-template name="subfieldSelect"> |
| 362 |
<xsl:with-param name="codes">amnp</xsl:with-param> |
| 363 |
</xsl:call-template> |
| 364 |
</xsl:with-param> |
| 365 |
</xsl:call-template> |
| 366 |
</xsl:for-each> |
| 367 |
</xsl:when> |
| 368 |
<xsl:when test="marc:datafield[@tag=130]/marc:subfield[@code='a']"> |
| 369 |
<xsl:for-each select="marc:datafield[@tag=130]"> |
| 370 |
<xsl:call-template name="chopPunctuation"> |
| 371 |
<xsl:with-param name="chopString"> |
| 372 |
<xsl:call-template name="subfieldSelect"> |
| 373 |
<xsl:with-param name="codes">amnp</xsl:with-param> |
| 374 |
</xsl:call-template> |
| 375 |
</xsl:with-param> |
| 376 |
</xsl:call-template> |
| 377 |
</xsl:for-each> |
| 378 |
</xsl:when> |
| 379 |
<xsl:otherwise> |
| 380 |
<xsl:text>[Record with no title statement]</xsl:text> |
| 381 |
</xsl:otherwise> |
| 382 |
</xsl:choose> |
| 383 |
</a> |
| 384 |
</span> |
| 385 |
<xsl:choose> |
| 386 |
<xsl:when test="marc:datafield[@tag=100]/marc:subfield[@code='a']"> |
| 387 |
- |
| 388 |
<span class="componentPartRecordAuthor"> |
| 389 |
<xsl:value-of select="marc:datafield[@tag=100]/marc:subfield[@code='a']" /> |
| 390 |
</span> |
| 391 |
</xsl:when> |
| 392 |
<xsl:when test="marc:datafield[@tag=110]/marc:subfield[@code='a']"> |
| 393 |
- |
| 394 |
<span class="componentPartRecordAuthor"> |
| 395 |
<xsl:value-of select="marc:datafield[@tag=110]/marc:subfield[@code='a']" /> |
| 396 |
</span> |
| 397 |
</xsl:when> |
| 398 |
</xsl:choose> |
| 399 |
</span> |
| 400 |
</li> |
| 401 |
</xsl:for-each> |
| 402 |
</ol> |
| 403 |
</div> |
| 404 |
</xsl:if> |
| 405 |
</xsl:template> |
| 406 |
|
| 341 |
</xsl:stylesheet> |
407 |
</xsl:stylesheet> |
| 342 |
|
408 |
|
| 343 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |
409 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |