View | Details | Raw Unified | Return to bug 20339
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-37 / +1 lines)
Lines 448-490 Link Here
448
        </xsl:if>
448
        </xsl:if>
449
449
450
450
451
        <!-- Build ISBN -->
451
        <xsl:call-template name="showISBNISSN"/>
452
        <xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']">
453
          <span class="results_summary isbn"><span class="label">ISBN: </span>
454
            <xsl:for-each select="marc:datafield[@tag=020]/marc:subfield[@code='a']">
455
              <span property="isbn">
456
                <xsl:value-of select="."/>
457
                <xsl:choose>
458
                  <xsl:when test="position()=last()">
459
                    <xsl:text>.</xsl:text>
460
                  </xsl:when>
461
                  <xsl:otherwise>
462
                    <xsl:text>; </xsl:text>
463
                  </xsl:otherwise>
464
                </xsl:choose>
465
              </span>
466
            </xsl:for-each>
467
          </span>
468
        </xsl:if>
469
470
        <!-- Build ISSN -->
471
        <xsl:if test="marc:datafield[@tag=022]/marc:subfield[@code='a']">
472
          <span class="results_summary issn"><span class="label">ISSN: </span>
473
            <xsl:for-each select="marc:datafield[@tag=022]/marc:subfield[@code='a']">
474
              <span property="issn">
475
                <xsl:value-of select="."/>
476
                <xsl:choose>
477
                  <xsl:when test="position()=last()">
478
                    <xsl:text>.</xsl:text>
479
                  </xsl:when>
480
                  <xsl:otherwise>
481
                    <xsl:text>; </xsl:text>
482
                  </xsl:otherwise>
483
                </xsl:choose>
484
              </span>
485
            </xsl:for-each>
486
          </span>
487
        </xsl:if>
488
452
489
        <xsl:if test="marc:datafield[@tag=013]">
453
        <xsl:if test="marc:datafield[@tag=013]">
490
            <span class="results_summary patent_info">
454
            <span class="results_summary patent_info">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-18 / +1 lines)
Lines 895-918 Link Here
895
    </span>
895
    </span>
896
   </xsl:if>
896
   </xsl:if>
897
897
898
    <xsl:if test="marc:datafield[@tag=020]">
898
   <xsl:call-template name="showISBNISSN"/>
899
    <span class="results_summary isbn"><span class="label">ISBN: </span>
900
    <xsl:for-each select="marc:datafield[@tag=020]">
901
    <xsl:variable name="isbn" select="marc:subfield[@code='a']"/>
902
            <xsl:value-of select="marc:subfield[@code='a']"/>
903
            <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
904
    </xsl:for-each>
905
    </span>
906
    </xsl:if>
907
908
    <xsl:if test="marc:datafield[@tag=022]">
909
    <span class="results_summary issn"><span class="label">ISSN: </span>
910
    <xsl:for-each select="marc:datafield[@tag=022]">
911
            <xsl:value-of select="marc:subfield[@code='a']"/>
912
            <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
913
    </xsl:for-each>
914
    </span>
915
    </xsl:if>
916
899
917
    <xsl:if test="marc:datafield[@tag=250]">
900
    <xsl:if test="marc:datafield[@tag=250]">
918
    <span class="results_summary edition">
901
    <span class="results_summary edition">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-1 / +40 lines)
Lines 298-303 Link Here
298
        </span>
298
        </span>
299
    </xsl:template>
299
    </xsl:template>
300
300
301
    <xsl:template name="showISBNISSN">
302
      <xsl:call-template name="showSingleSubfield">
303
        <xsl:with-param name="tag">020</xsl:with-param>
304
        <xsl:with-param name="code">a</xsl:with-param>
305
        <xsl:with-param name="class">isbn</xsl:with-param>
306
        <xsl:with-param name="label">ISBN: </xsl:with-param>
307
      </xsl:call-template>
308
      <xsl:call-template name="showSingleSubfield">
309
        <xsl:with-param name="tag">022</xsl:with-param>
310
        <xsl:with-param name="code">a</xsl:with-param>
311
        <xsl:with-param name="class">issn</xsl:with-param>
312
        <xsl:with-param name="label">ISSN: </xsl:with-param>
313
      </xsl:call-template>
314
    </xsl:template>
315
316
    <xsl:template name="showSingleSubfield">
317
      <xsl:param name="tag"/>
318
      <xsl:param name="code"/>
319
      <xsl:param name="class"/>
320
      <xsl:param name="label"/>
321
      <xsl:if test="marc:datafield[@tag=$tag]/marc:subfield[@code=$code]">
322
        <span><xsl:attribute name="class"><xsl:value-of select="concat('results_summary ', $class)"/></xsl:attribute>
323
        <span class="label"><xsl:value-of select="$label"/></span>
324
            <xsl:for-each select="marc:datafield[@tag=$tag]/marc:subfield[@code=$code]">
325
              <span><xsl:attribute name="property"><xsl:value-of select="$class"/></xsl:attribute>
326
                <xsl:value-of select="."/>
327
                <xsl:choose>
328
                  <xsl:when test="position()=last()">
329
                    <xsl:text>.</xsl:text>
330
                  </xsl:when>
331
                  <xsl:otherwise>
332
                    <xsl:text>; </xsl:text>
333
                  </xsl:otherwise>
334
                </xsl:choose>
335
              </span>
336
            </xsl:for-each>
337
          </span>
338
        </xsl:if>
339
    </xsl:template>
340
301
</xsl:stylesheet>
341
</xsl:stylesheet>
302
342
303
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
343
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
304
- 

Return to bug 20339