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 447-489 Link Here
447
        </xsl:if>
447
        </xsl:if>
448
448
449
449
450
        <!-- Build ISBN -->
450
        <xsl:call-template name="showISBNISSN"/>
451
        <xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']">
452
          <span class="results_summary isbn"><span class="label">ISBN: </span>
453
            <xsl:for-each select="marc:datafield[@tag=020]/marc:subfield[@code='a']">
454
              <span property="isbn">
455
                <xsl:value-of select="."/>
456
                <xsl:choose>
457
                  <xsl:when test="position()=last()">
458
                    <xsl:text>.</xsl:text>
459
                  </xsl:when>
460
                  <xsl:otherwise>
461
                    <xsl:text>; </xsl:text>
462
                  </xsl:otherwise>
463
                </xsl:choose>
464
              </span>
465
            </xsl:for-each>
466
          </span>
467
        </xsl:if>
468
469
        <!-- Build ISSN -->
470
        <xsl:if test="marc:datafield[@tag=022]/marc:subfield[@code='a']">
471
          <span class="results_summary issn"><span class="label">ISSN: </span>
472
            <xsl:for-each select="marc:datafield[@tag=022]/marc:subfield[@code='a']">
473
              <span property="issn">
474
                <xsl:value-of select="."/>
475
                <xsl:choose>
476
                  <xsl:when test="position()=last()">
477
                    <xsl:text>.</xsl:text>
478
                  </xsl:when>
479
                  <xsl:otherwise>
480
                    <xsl:text>; </xsl:text>
481
                  </xsl:otherwise>
482
                </xsl:choose>
483
              </span>
484
            </xsl:for-each>
485
          </span>
486
        </xsl:if>
487
451
488
        <xsl:if test="marc:datafield[@tag=013]">
452
        <xsl:if test="marc:datafield[@tag=013]">
489
            <span class="results_summary patent_info">
453
            <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">
901
    <span class="results_summary">
(-)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