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

(-)a/C4/Biblio.pm (+1 lines)
Lines 1652-1657 sub GetMarcNotes { Link Here
1652
    my $tag  = "";
1652
    my $tag  = "";
1653
    my $marcnote;
1653
    my $marcnote;
1654
    foreach my $field ( $record->field($scope) ) {
1654
    foreach my $field ( $record->field($scope) ) {
1655
        next if ($marcflavour ne 'UNIMARC' && C4::Context->preference('OPACXSLTDetailsDisplay') && $field->tag() eq '505');
1655
        my $value = $field->as_string();
1656
        my $value = $field->as_string();
1656
        if ( $note ne "" ) {
1657
        if ( $note ne "" ) {
1657
            $marcnote = { marcnote => $note, };
1658
            $marcnote = { marcnote => $note, };
(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (+33 lines)
Lines 2620-2622 ul.ui-tabs-nav li { Link Here
2620
    box-shadow: 1px 1px 3px 0 #666;
2620
    box-shadow: 1px 1px 3px 0 #666;
2621
}
2621
}
2622
2622
2623
.results_summary {
2624
    clear: both;
2625
}
2626
2627
.contents {
2628
    width: 75%;
2629
}
2630
2631
.contentblock {
2632
    clear: none;
2633
}
2634
2635
.contents .label {
2636
    float: left;
2637
}
2638
2639
.contents .r:after {
2640
    content: "\A";
2641
    white-space: pre;
2642
}
2643
2644
.contents .t {
2645
    font-weight: bold;
2646
    display: inline;
2647
    background-image: url('/opac-tmpl/prog/images/caret.gif');
2648
    background-repeat: no-repeat;
2649
    background-position: left -1ex;
2650
    padding-left: 20px;
2651
}
2652
2653
.contents .r {
2654
    display: inline;
2655
}
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-14 / +18 lines)
Lines 570-602 Link Here
570
570
571
        <!-- 505 -->
571
        <!-- 505 -->
572
        <xsl:if test="marc:datafield[@tag=505]">
572
        <xsl:if test="marc:datafield[@tag=505]">
573
        <xsl:for-each select="marc:datafield[@tag=505]">
574
        <span class="results_summary contents">
573
        <span class="results_summary contents">
575
        <xsl:choose>
574
        <xsl:for-each select="marc:datafield[@tag=505]">
576
        <xsl:when test="@ind1=1">
575
        <xsl:if test="position()=1">
577
            <span class="label">Incomplete contents:</span>
576
            <xsl:choose>
578
        </xsl:when>
577
            <xsl:when test="@ind1=1">
579
        <xsl:when test="@ind1=1">
578
                <span class="label">Incomplete contents:</span>
580
            <span class="label">Partial contents:</span>
579
            </xsl:when>
581
        </xsl:when>
580
            <xsl:when test="@ind1=1">
582
        <xsl:otherwise>
581
                <span class="label">Partial contents:</span>
583
            <span class="label">Contents:</span>
582
            </xsl:when>
584
        </xsl:otherwise>
583
            <xsl:otherwise>
585
        </xsl:choose>
584
                <span class="label">Contents:</span>
585
            </xsl:otherwise>
586
            </xsl:choose>
587
        </xsl:if>
588
        <span class='contentblock'>
586
        <xsl:choose>
589
        <xsl:choose>
587
        <xsl:when test="@ind2=0">
590
        <xsl:when test="@ind2=0">
588
            <xsl:call-template name="subfieldSelect">
591
            <xsl:call-template name="subfieldSelectSpan">
589
                <xsl:with-param name="codes">tru</xsl:with-param>
592
                <xsl:with-param name="codes">tru</xsl:with-param>
590
            </xsl:call-template>
593
            </xsl:call-template>
591
        </xsl:when>
594
        </xsl:when>
592
        <xsl:otherwise>
595
        <xsl:otherwise>
593
            <xsl:call-template name="subfieldSelect">
596
            <xsl:call-template name="subfieldSelectSpan">
594
                <xsl:with-param name="codes">au</xsl:with-param>
597
                <xsl:with-param name="codes">au</xsl:with-param>
595
            </xsl:call-template>
598
            </xsl:call-template>
596
        </xsl:otherwise>
599
        </xsl:otherwise>
597
        </xsl:choose>
600
        </xsl:choose>
598
        </span>
601
        </span>
599
        </xsl:for-each>
602
        </xsl:for-each>
603
        </span>
600
        </xsl:if>
604
        </xsl:if>
601
605
602
        <!-- 583 -->
606
        <!-- 583 -->
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-1 / +20 lines)
Lines 40-45 Link Here
40
		<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
40
		<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
41
	</xsl:template>
41
	</xsl:template>
42
42
43
    <xsl:template name="subfieldSelectSpan">
44
        <xsl:param name="codes"/>
45
        <xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
46
        <xsl:param name="subdivCodes"/>
47
        <xsl:param name="subdivDelimiter"/>
48
        <xsl:param name="prefix"/>
49
        <xsl:param name="suffix"/>
50
            <xsl:for-each select="marc:subfield">
51
                <xsl:if test="contains($codes, @code)">
52
                    <span>
53
                        <xsl:attribute name="class"><xsl:value-of select="@code"/></xsl:attribute>
54
                        <xsl:if test="contains($subdivCodes, @code)">
55
                            <xsl:value-of select="$subdivDelimiter"/>
56
                        </xsl:if>
57
                        <xsl:value-of select="$prefix"/><xsl:value-of select="text()"/><xsl:value-of select="$suffix"/><xsl:if test="position()!=last()"><xsl:value-of select="$delimeter"/></xsl:if>
58
                    </span>
59
                </xsl:if>
60
            </xsl:for-each>
61
    </xsl:template>
62
43
	<xsl:template name="buildSpaces">
63
	<xsl:template name="buildSpaces">
44
		<xsl:param name="spaces"/>
64
		<xsl:param name="spaces"/>
45
		<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
65
		<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
46
- 

Return to bug 6617