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

(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (+25 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
.contents {
2624
    width: 75%;
2625
}
2626
2627
.contentblock {
2628
    display: inline-block;
2629
}
2630
2631
.contents .t:first-child {
2632
    white-space: normal;
2633
}
2634
2635
.contents .t:before {
2636
    content: "\A→ ";
2637
    white-space: pre;
2638
}
2639
2640
.contents .t {
2641
    font-weight: bold;
2642
    display: inline;
2643
}
2644
2645
.contents .r {
2646
    display: inline;
2647
}
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-15 / +19 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">atru</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