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

(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (+27 lines)
Lines 2540-2542 span.sep { Link Here
2540
}
2540
}
2541
2541
2542
*/
2542
*/
2543
2544
.contents {
2545
    width: 75%;
2546
}
2547
2548
.contentblock {
2549
    position: relative;
2550
    margin-left: 2em;
2551
}
2552
2553
.contents .t:first-child:before {
2554
    content: "→ ";
2555
}
2556
2557
.contents .t:before {
2558
    content: "\A→ ";
2559
    white-space: pre;
2560
}
2561
2562
.contents .t {
2563
    font-weight: bold;
2564
    display: inline;
2565
}
2566
2567
.contents .r {
2568
    display: inline;
2569
}
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-16 / +20 lines)
Lines 569-601 Link Here
569
569
570
        <!-- 505 -->
570
        <!-- 505 -->
571
        <xsl:if test="marc:datafield[@tag=505]">
571
        <xsl:if test="marc:datafield[@tag=505]">
572
        <div class="results_summary contents">
572
        <xsl:for-each select="marc:datafield[@tag=505]">
573
        <xsl:for-each select="marc:datafield[@tag=505]">
573
        <span class="results_summary contents">
574
        <xsl:if test="position()=1">
574
        <xsl:choose>
575
            <xsl:choose>
575
        <xsl:when test="@ind1=1">
576
            <xsl:when test="@ind1=1">
576
            <span class="label">Incomplete contents:</span>
577
                <span class="label">Incomplete contents:</span>
577
        </xsl:when>
578
            </xsl:when>
578
        <xsl:when test="@ind1=1">
579
            <xsl:when test="@ind1=1">
579
            <span class="label">Partial contents:</span>
580
                <span class="label">Partial contents:</span>
580
        </xsl:when>
581
            </xsl:when>
581
        <xsl:otherwise>
582
            <xsl:otherwise>
582
            <span class="label">Contents:</span>
583
                <span class="label">Contents:</span>
583
        </xsl:otherwise>
584
            </xsl:otherwise>
584
        </xsl:choose>
585
            </xsl:choose>
586
        </xsl:if>
587
        <div class='contentblock'>
585
        <xsl:choose>
588
        <xsl:choose>
586
        <xsl:when test="@ind2=0">
589
        <xsl:when test="@ind2=0">
587
            <xsl:call-template name="subfieldSelect">
590
            <xsl:call-template name="subfieldSelectSpan">
588
                <xsl:with-param name="codes">tru</xsl:with-param>
591
                <xsl:with-param name="codes">tru</xsl:with-param>
589
            </xsl:call-template>
592
            </xsl:call-template>
590
        </xsl:when>
593
        </xsl:when>
591
        <xsl:otherwise>
594
        <xsl:otherwise>
592
            <xsl:call-template name="subfieldSelect">
595
            <xsl:call-template name="subfieldSelectSpan">
593
                <xsl:with-param name="codes">au</xsl:with-param>
596
                <xsl:with-param name="codes">atru</xsl:with-param>
594
            </xsl:call-template>
597
            </xsl:call-template>
595
        </xsl:otherwise>
598
        </xsl:otherwise>
596
        </xsl:choose>
599
        </xsl:choose>
597
        </span>
600
        </div>
598
        </xsl:for-each>
601
        </xsl:for-each>
602
        </div>
599
        </xsl:if>
603
        </xsl:if>
600
604
601
        <!-- 583 -->
605
        <!-- 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