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

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (+27 lines)
Lines 2351-2356 ul.ui-tabs-nav li { Link Here
2351
    float: right;
2351
    float: right;
2352
}
2352
}
2353
2353
2354
.contents {
2355
    width: 75%;
2356
}
2357
2358
.contentblock {
2359
    position: relative;
2360
    margin-left: 2em;
2361
}
2362
2363
.contents .t:first-child:before {
2364
    content: "→ ";
2365
}
2366
2367
.contents .t:before {
2368
    content: "\A→ ";
2369
    white-space: pre;
2370
}
2371
2372
.contents .t {
2373
    font-weight: bold;
2374
    display: inline;
2375
}
2376
2377
.contents .r {
2378
    display: inline;
2379
}
2380
2354
/* jQuery UI Datepicker */
2381
/* jQuery UI Datepicker */
2355
.ui-datepicker-trigger {
2382
.ui-datepicker-trigger {
2356
    vertical-align: middle;
2383
    vertical-align: middle;
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-27 / +29 lines)
Lines 542-574 Link Here
542
        </span>
542
        </span>
543
        </xsl:if>
543
        </xsl:if>
544
        <xsl:if test="marc:datafield[@tag=505]">
544
        <xsl:if test="marc:datafield[@tag=505]">
545
        <xsl:for-each select="marc:datafield[@tag=505]">
545
            <div class="results_summary contents">
546
        <span class="results_summary contents">
546
            <xsl:choose>
547
        <xsl:choose>
547
            <xsl:when test="marc:datafield[@tag=505]/@ind1=0">
548
        <xsl:when test="@ind1=0">
548
                <span class="label">Contents:</span>
549
            <span class="label">Contents:</span>
549
            </xsl:when>
550
        </xsl:when>
550
            <xsl:when test="marc:datafield[@tag=505]/@ind1=1">
551
        <xsl:when test="@ind1=1">
551
                <span class="label">Incomplete contents:</span>
552
            <span class="label">Incomplete contents:</span>
552
            </xsl:when>
553
        </xsl:when>
553
            <xsl:when test="marc:datafield[@tag=505]/@ind1=2">
554
        <xsl:when test="@ind1=1">
554
                <span class="label">Partial contents:</span>
555
            <span class="label">Partial contents:</span>
555
            </xsl:when>
556
        </xsl:when>
556
            </xsl:choose>  
557
        </xsl:choose>  
557
                <xsl:for-each select="marc:datafield[@tag=505]">
558
        <xsl:choose>
558
                    <div class='contentblock'>
559
        <xsl:when test="@ind2=0">
559
                        <xsl:choose>
560
            <xsl:call-template name="subfieldSelect">
560
                        <xsl:when test="@ind2=0">
561
                <xsl:with-param name="codes">tru</xsl:with-param>
561
                            <xsl:call-template name="subfieldSelectSpan">
562
            </xsl:call-template>
562
                                <xsl:with-param name="codes">tru</xsl:with-param>
563
        </xsl:when>
563
                            </xsl:call-template>
564
        <xsl:otherwise>
564
                        </xsl:when>
565
            <xsl:call-template name="subfieldSelect">
565
                        <xsl:otherwise>
566
                <xsl:with-param name="codes">au</xsl:with-param>
566
                            <xsl:call-template name="subfieldSelectSpan">
567
            </xsl:call-template>
567
                                <xsl:with-param name="codes">atru</xsl:with-param>
568
        </xsl:otherwise>
568
                            </xsl:call-template>
569
        </xsl:choose>
569
                        </xsl:otherwise>
570
        </span>
570
                        </xsl:choose>
571
        </xsl:for-each>
571
                    </div>
572
                </xsl:for-each>
573
            </div>
572
        </xsl:if>
574
        </xsl:if>
573
575
574
        <!-- 773 -->
576
        <!-- 773 -->
(-)a/koha-tmpl/intranet-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