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 (+34 lines)
Lines 2769-2771 ul.ui-tabs-nav li { Link Here
2769
}
2769
}
2770
2770
2771
*/
2771
*/
2772
2773
.results_summary {
2774
    clear: both;
2775
}
2776
2777
.contents {
2778
    width: 75%;
2779
}
2780
2781
.contentblock {
2782
    clear: none;
2783
}
2784
2785
.contents .label {
2786
    float: left;
2787
}
2788
2789
.contents .r:after {
2790
    content: "\A";
2791
    white-space: pre;
2792
}
2793
2794
.contents .t {
2795
    font-weight: bold;
2796
    display: inline;
2797
    background-image: url('/opac-tmpl/prog/images/caret.gif');
2798
    background-repeat: no-repeat;
2799
    background-position: left -1ex;
2800
    padding-left: 20px;
2801
}
2802
2803
.contents .r {
2804
    display: inline;
2805
}
(-)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