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 517-536 Link Here
517
        </xsl:if>
517
        </xsl:if>
518
518
519
        <xsl:if test="marc:datafield[@tag=246]">
519
        <xsl:if test="marc:datafield[@tag=246]">
520
        <span class="results_summary other_title"><span class="label">Other title: </span>
520
            <span class="results_summary other_title"><span class="label">Other title: </span>
521
            <xsl:for-each select="marc:datafield[@tag=246]">
521
                <xsl:for-each select="marc:datafield[@tag=246]">
522
                <xsl:call-template name="chopPunctuation">
522
                    <xsl:call-template name="chopPunctuation">
523
                  <xsl:with-param name="chopString">
523
                        <xsl:with-param name="chopString">
524
                    <xsl:call-template name="subfieldSelect">
524
                            <xsl:call-template name="subfieldSelect">
525
                        <xsl:with-param name="codes">iabhfgnp</xsl:with-param>
525
                                <xsl:with-param name="codes">abhfgnp</xsl:with-param>
526
                            </xsl:call-template>
527
                        </xsl:with-param>
526
                    </xsl:call-template>
528
                    </xsl:call-template>
527
                   </xsl:with-param>
529
                    <xsl:if test="@ind1=1 and not(marc:subfield[@code='i'])">
528
               </xsl:call-template>
530
                        <xsl:choose>
529
                <!-- #13386 added separator | -->
531
                            <xsl:when test="@ind2=0"> [Portion of title]</xsl:when>
530
                <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>
532
                            <xsl:when test="@ind2=1"> [Parallel title]</xsl:when>
531
            </xsl:for-each>
533
                            <xsl:when test="@ind2=2"> [Distinctive title]</xsl:when>
532
        </span>
534
                            <xsl:when test="@ind2=3"> [Other title]</xsl:when>
533
       </xsl:if>
535
                            <xsl:when test="@ind2=4"> [Cover title]</xsl:when>
536
                            <xsl:when test="@ind2=5"> [Added title page title]</xsl:when>
537
                            <xsl:when test="@ind2=6"> [Caption title]</xsl:when>
538
                            <xsl:when test="@ind2=7"> [Running title]</xsl:when>
539
                            <xsl:when test="@ind2=8"> [Spine title]</xsl:when>
540
                        </xsl:choose>
541
                    </xsl:if>
542
                    <xsl:if test="marc:subfield[@code='i']">
543
                        <xsl:value-of select="concat(' [',marc:subfield[@code='i'],']')"/>
544
                    </xsl:if>
545
                    <!-- #13386 added separator | -->
546
                    <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>
547
                </xsl:for-each>
548
            </span>
549
        </xsl:if>
534
550
535
        <xsl:if test="marc:datafield[@tag=242]">
551
        <xsl:if test="marc:datafield[@tag=242]">
536
        <span class="results_summary translated_title"><span class="label">Title translated: </span>
552
        <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 551-573 Link Here
551
            </xsl:call-template>
551
            </xsl:call-template>
552
        </xsl:if>
552
        </xsl:if>
553
553
554
        <xsl:if test="marc:datafield[@tag=246]">
554
            <xsl:if test="marc:datafield[@tag=246]">
555
        <span class="results_summary other_title"><span class="label">Other title: </span>
555
                <span class="results_summary other_title"><span class="label">Other title: </span>
556
            <xsl:for-each select="marc:datafield[@tag=246]">
556
                    <xsl:for-each select="marc:datafield[@tag=246]">
557
                <span property="alternateName">
557
                        <span property="alternateName">
558
                <xsl:call-template name="chopPunctuation">
558
                            <xsl:call-template name="chopPunctuation">
559
                  <xsl:with-param name="chopString">
559
                                <xsl:with-param name="chopString">
560
                    <xsl:call-template name="subfieldSelect">
560
                                    <xsl:call-template name="subfieldSelect">
561
                        <xsl:with-param name="codes">iabhfgnp</xsl:with-param>
561
                                        <xsl:with-param name="codes">abhfgnp</xsl:with-param>
562
                    </xsl:call-template>
562
                                    </xsl:call-template>
563
                   </xsl:with-param>
563
                                </xsl:with-param>
564
               </xsl:call-template>
564
                            </xsl:call-template>
565
                            <xsl:if test="@ind1=1 and not(marc:subfield[@code='i'])">
566
                                <xsl:choose>
567
                                    <xsl:when test="@ind2=0"> [Portion of title]</xsl:when>
568
                                    <xsl:when test="@ind2=1"> [Parallel title]</xsl:when>
569
                                    <xsl:when test="@ind2=2"> [Distinctive title]</xsl:when>
570
                                    <xsl:when test="@ind2=3"> [Other title]</xsl:when>
571
                                    <xsl:when test="@ind2=4"> [Cover title]</xsl:when>
572
                                    <xsl:when test="@ind2=5"> [Added title page title]</xsl:when>
573
                                    <xsl:when test="@ind2=6"> [Caption title]</xsl:when>
574
                                    <xsl:when test="@ind2=7"> [Running title]</xsl:when>
575
                                    <xsl:when test="@ind2=8"> [Spine title]</xsl:when>
576
                                </xsl:choose>
577
                            </xsl:if>
578
                            <xsl:if test="marc:subfield[@code='i']">
579
                                <xsl:value-of select="concat(' [',marc:subfield[@code='i'],']')"/>
580
                            </xsl:if>
581
                        </span>
582
                        <!-- #13386 added separator | -->
583
                        <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>
584
                    </xsl:for-each>
565
                </span>
585
                </span>
566
                <!-- #13386 added separator | -->
586
            </xsl:if>
567
                <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>
568
            </xsl:for-each>
569
        </span>
570
       </xsl:if>
571
587
572
588
573
        <xsl:if test="marc:datafield[@tag=242]">
589
        <xsl:if test="marc:datafield[@tag=242]">
574
- 

Return to bug 14054