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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-13 / +29 lines)
Lines 476-495 Link Here
476
        </xsl:if>
476
        </xsl:if>
477
477
478
        <xsl:if test="marc:datafield[@tag=246]">
478
        <xsl:if test="marc:datafield[@tag=246]">
479
        <span class="results_summary other_title"><span class="label">Other title: </span>
479
            <span class="results_summary other_title"><span class="label">Other title: </span>
480
            <xsl:for-each select="marc:datafield[@tag=246]">
480
                <xsl:for-each select="marc:datafield[@tag=246]">
481
                <xsl:call-template name="chopPunctuation">
481
                    <xsl:call-template name="chopPunctuation">
482
                  <xsl:with-param name="chopString">
482
                        <xsl:with-param name="chopString">
483
                    <xsl:call-template name="subfieldSelect">
483
                            <xsl:call-template name="subfieldSelect">
484
                        <xsl:with-param name="codes">iabhfgnp</xsl:with-param>
484
                                <xsl:with-param name="codes">abhfgnp</xsl:with-param>
485
                            </xsl:call-template>
486
                        </xsl:with-param>
485
                    </xsl:call-template>
487
                    </xsl:call-template>
486
                   </xsl:with-param>
488
                    <xsl:if test="@ind1=1 and not(marc:subfield[@code='i'])">
487
               </xsl:call-template>
489
                        <xsl:choose>
488
                <!-- #13386 added separator | -->
490
                            <xsl:when test="@ind2=0"> [Portion of title]</xsl:when>
489
                <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise></xsl:choose>
491
                            <xsl:when test="@ind2=1"> [Parallel title]</xsl:when>
490
            </xsl:for-each>
492
                            <xsl:when test="@ind2=2"> [Distinctive title]</xsl:when>
491
        </span>
493
                            <xsl:when test="@ind2=3"> [Other title]</xsl:when>
492
       </xsl:if>
494
                            <xsl:when test="@ind2=4"> [Cover title]</xsl:when>
495
                            <xsl:when test="@ind2=5"> [Added title page title]</xsl:when>
496
                            <xsl:when test="@ind2=6"> [Caption title]</xsl:when>
497
                            <xsl:when test="@ind2=7"> [Running title]</xsl:when>
498
                            <xsl:when test="@ind2=8"> [Spine title]</xsl:when>
499
                        </xsl:choose>
500
                    </xsl:if>
501
                    <xsl:if test="marc:subfield[@code='i']">
502
                        <xsl:value-of select="concat(' [',marc:subfield[@code='i'],']')"/>
503
                    </xsl:if>
504
                    <!-- #13386 added separator | -->
505
                    <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise></xsl:choose>
506
                </xsl:for-each>
507
            </span>
508
        </xsl:if>
493
509
494
        <xsl:if test="marc:datafield[@tag=242]">
510
        <xsl:if test="marc:datafield[@tag=242]">
495
        <span class="results_summary translated_title"><span class="label">Title translated: </span>
511
        <span class="results_summary translated_title"><span class="label">Title translated: </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-17 / +32 lines)
Lines 508-530 Link Here
508
            </xsl:call-template>
508
            </xsl:call-template>
509
        </xsl:if>
509
        </xsl:if>
510
510
511
        <xsl:if test="marc:datafield[@tag=246]">
511
            <xsl:if test="marc:datafield[@tag=246]">
512
        <span class="results_summary other_title"><span class="label">Other title: </span>
512
                <span class="results_summary other_title"><span class="label">Other title: </span>
513
            <xsl:for-each select="marc:datafield[@tag=246]">
513
                    <xsl:for-each select="marc:datafield[@tag=246]">
514
                <span property="alternateName">
514
                        <span property="alternateName">
515
                <xsl:call-template name="chopPunctuation">
515
                            <xsl:call-template name="chopPunctuation">
516
                  <xsl:with-param name="chopString">
516
                                <xsl:with-param name="chopString">
517
                    <xsl:call-template name="subfieldSelect">
517
                                    <xsl:call-template name="subfieldSelect">
518
                        <xsl:with-param name="codes">iabhfgnp</xsl:with-param>
518
                                        <xsl:with-param name="codes">abhfgnp</xsl:with-param>
519
                    </xsl:call-template>
519
                                    </xsl:call-template>
520
                   </xsl:with-param>
520
                                </xsl:with-param>
521
               </xsl:call-template>
521
                            </xsl:call-template>
522
                            <xsl:if test="@ind1=1 and not(marc:subfield[@code='i'])">
523
                                <xsl:choose>
524
                                    <xsl:when test="@ind2=0"> [Portion of title]</xsl:when>
525
                                    <xsl:when test="@ind2=1"> [Parallel title]</xsl:when>
526
                                    <xsl:when test="@ind2=2"> [Distinctive title]</xsl:when>
527
                                    <xsl:when test="@ind2=3"> [Other title]</xsl:when>
528
                                    <xsl:when test="@ind2=4"> [Cover title]</xsl:when>
529
                                    <xsl:when test="@ind2=5"> [Added title page title]</xsl:when>
530
                                    <xsl:when test="@ind2=6"> [Caption title]</xsl:when>
531
                                    <xsl:when test="@ind2=7"> [Running title]</xsl:when>
532
                                    <xsl:when test="@ind2=8"> [Spine title]</xsl:when>
533
                                </xsl:choose>
534
                            </xsl:if>
535
                            <xsl:if test="marc:subfield[@code='i']">
536
                                <xsl:value-of select="concat(' [',marc:subfield[@code='i'],']')"/>
537
                            </xsl:if>
538
                        </span>
539
                        <!-- #13386 added separator | -->
540
                        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise></xsl:choose>
541
                    </xsl:for-each>
522
                </span>
542
                </span>
523
                <!-- #13386 added separator | -->
543
            </xsl:if>
524
                <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise></xsl:choose>
525
            </xsl:for-each>
526
        </span>
527
       </xsl:if>
528
544
529
545
530
        <xsl:if test="marc:datafield[@tag=242]">
546
        <xsl:if test="marc:datafield[@tag=242]">
531
- 

Return to bug 14054