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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+45 lines)
Lines 1129-1134 Link Here
1129
            </span>
1129
            </span>
1130
        </xsl:if>
1130
        </xsl:if>
1131
1131
1132
        <!-- 765 - Original language entry -->
1133
        <xsl:for-each select="marc:datafield[@tag=765]">
1134
            <span class="results_summary original_language_entry">
1135
                <xsl:choose>
1136
                    <xsl:when test="@ind2!=8 or not(marc:subfield[@code='i'])">
1137
                        <!-- fallback to this label too if 765$i is empty -->
1138
                        <span class="label">Translation of: </span>
1139
                    </xsl:when>
1140
                    <xsl:otherwise>
1141
                        <span class="label">
1142
                            <xsl:value-of select="marc:subfield[@code='i']"/>
1143
                            <xsl:text>: </xsl:text>
1144
                        </span>
1145
                    </xsl:otherwise>
1146
                </xsl:choose>
1147
                <span class="original_language_entry_data">
1148
                    <xsl:variable name="href">
1149
                        <!-- call template to get href of search URL -->
1150
                        <xsl:call-template name="GetCnumSearchURL">
1151
                            <xsl:with-param name="UseControlNumber" select="$UseControlNumber"/>
1152
                            <xsl:with-param name="opac_url" select="0"/>
1153
                        </xsl:call-template>
1154
                    </xsl:variable>
1155
                    <xsl:variable name="f765">
1156
                        <xsl:call-template name="subfieldSelect">
1157
                            <xsl:with-param name="codes">tad</xsl:with-param>
1158
                            <xsl:with-param name="delimeter">, </xsl:with-param>
1159
                        </xsl:call-template>
1160
                    </xsl:variable>
1161
                    <xsl:choose>
1162
                        <xsl:when test="$href">
1163
                            <a>
1164
                                <xsl:attribute name="href"><xsl:value-of select="$href"/></xsl:attribute>
1165
                                <xsl:value-of select="$f765"/>
1166
                            </a>
1167
                        </xsl:when>
1168
                        <xsl:otherwise>
1169
                            <xsl:value-of select="$f765"/>
1170
                        </xsl:otherwise>
1171
                    </xsl:choose>
1172
                </span>
1173
            </span>
1174
        </xsl:for-each>
1175
        <!-- End of 765 - Original language entry -->
1176
1132
        <!-- 770 - Supplement/Special issue entry -->
1177
        <!-- 770 - Supplement/Special issue entry -->
1133
        <xsl:if test="marc:datafield[@tag=770]">
1178
        <xsl:if test="marc:datafield[@tag=770]">
1134
            <span class="results_summary supplement"><span class="label">Supplement: </span>
1179
            <span class="results_summary supplement"><span class="label">Supplement: </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +45 lines)
Lines 1368-1373 Link Here
1368
            </span>
1368
            </span>
1369
        </xsl:if>
1369
        </xsl:if>
1370
1370
1371
        <!-- 765 - Original language entry -->
1372
        <xsl:for-each select="marc:datafield[@tag=765]">
1373
            <span class="results_summary original_language_entry">
1374
                <xsl:choose>
1375
                    <xsl:when test="@ind2!=8 or not(marc:subfield[@code='i'])">
1376
                        <!-- fallback to this label too if 765$i is empty -->
1377
                        <span class="label">Translation of: </span>
1378
                    </xsl:when>
1379
                    <xsl:otherwise>
1380
                        <span class="label">
1381
                            <xsl:value-of select="marc:subfield[@code='i']"/>
1382
                            <xsl:text>: </xsl:text>
1383
                        </span>
1384
                    </xsl:otherwise>
1385
                </xsl:choose>
1386
                <span class="original_language_entry_data">
1387
                    <xsl:variable name="href">
1388
                        <!-- call template to get href of search URL -->
1389
                        <xsl:call-template name="GetCnumSearchURL">
1390
                            <xsl:with-param name="UseControlNumber" select="$UseControlNumber"/>
1391
                            <xsl:with-param name="opac_url" select="1"/>
1392
                        </xsl:call-template>
1393
                    </xsl:variable>
1394
                    <xsl:variable name="f765">
1395
                        <xsl:call-template name="subfieldSelect">
1396
                            <xsl:with-param name="codes">tad</xsl:with-param>
1397
                            <xsl:with-param name="delimeter">, </xsl:with-param>
1398
                        </xsl:call-template>
1399
                    </xsl:variable>
1400
                    <xsl:choose>
1401
                        <xsl:when test="$href">
1402
                            <a>
1403
                                <xsl:attribute name="href"><xsl:value-of select="$href"/></xsl:attribute>
1404
                                <xsl:value-of select="$f765"/>
1405
                            </a>
1406
                        </xsl:when>
1407
                        <xsl:otherwise>
1408
                            <xsl:value-of select="$f765"/>
1409
                        </xsl:otherwise>
1410
                    </xsl:choose>
1411
                </span>
1412
            </span>
1413
        </xsl:for-each>
1414
        <!-- End of 765 - Original language entry -->
1415
1371
        <!-- 770 - Supplement/Special issue entry -->
1416
        <!-- 770 - Supplement/Special issue entry -->
1372
        <xsl:if test="marc:datafield[@tag=770]">
1417
        <xsl:if test="marc:datafield[@tag=770]">
1373
            <span class="results_summary supplement">
1418
            <span class="results_summary supplement">
1374
- 

Return to bug 29185