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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+84 lines)
Lines 1145-1150 Link Here
1145
            </span>
1145
            </span>
1146
        </xsl:if>
1146
        </xsl:if>
1147
1147
1148
        <!-- 770 - Supplement/Special issue entry -->
1149
        <xsl:if test="marc:datafield[@tag=770]">
1150
            <span class="results_summary supplement"><span class="label">Supplement: </span>
1151
                <xsl:for-each select="marc:datafield[@tag=770]">
1152
                    <xsl:if test="marc:subfield[@code='i']">
1153
                        <span class="770_rel_info">
1154
                            <xsl:call-template name="subfieldSelect">
1155
                                <xsl:with-param name="codes">i</xsl:with-param>
1156
                            </xsl:call-template>
1157
                            <xsl:text> </xsl:text>
1158
                        </span>
1159
                    </xsl:if>
1160
                    <a>
1161
                        <xsl:choose>
1162
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1163
                                <xsl:attribute name="href">
1164
                                    /cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>
1165
                                </xsl:attribute>
1166
                            </xsl:when>
1167
                            <xsl:otherwise>
1168
                                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''),true())"/></xsl:attribute>
1169
                            </xsl:otherwise>
1170
                        </xsl:choose>
1171
                        <xsl:choose>
1172
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1173
                                <xsl:call-template name="subfieldSelect">
1174
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1175
                                </xsl:call-template>
1176
                            </xsl:when>
1177
                        </xsl:choose>
1178
                    </a>
1179
                    <xsl:text> </xsl:text>
1180
                    <xsl:call-template name="subfieldSelect">
1181
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1182
                    </xsl:call-template>
1183
                    <xsl:choose>
1184
                        <xsl:when test="position()=last()"></xsl:when>
1185
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1186
                    </xsl:choose>
1187
                </xsl:for-each>
1188
            </span>
1189
        </xsl:if>
1190
1191
        <!-- 772 - Supplement parent entry -->
1192
        <xsl:if test="marc:datafield[@tag=772]">
1193
            <span class="results_summary supplement_parent"><span class="label">Supplement to: </span>
1194
                <xsl:for-each select="marc:datafield[@tag=772]">
1195
                    <xsl:if test="marc:subfield[@code='i']">
1196
                        <span class="772_rel_info">
1197
                            <xsl:call-template name="subfieldSelect">
1198
                                <xsl:with-param name="codes">i</xsl:with-param>
1199
                            </xsl:call-template>
1200
                            <xsl:text> </xsl:text>
1201
                        </span>
1202
                    </xsl:if>
1203
                    <a>
1204
                        <xsl:choose>
1205
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1206
                                <xsl:attribute name="href">
1207
                                    /cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>
1208
                                </xsl:attribute>
1209
                            </xsl:when>
1210
                            <xsl:otherwise>
1211
                                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''),true())"/></xsl:attribute>
1212
                            </xsl:otherwise>
1213
                        </xsl:choose>
1214
                        <xsl:choose>
1215
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1216
                                <xsl:call-template name="subfieldSelect">
1217
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1218
                                </xsl:call-template>
1219
                            </xsl:when>
1220
                        </xsl:choose>
1221
                    </a>
1222
                    <xsl:call-template name="subfieldSelect">
1223
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1224
                    </xsl:call-template>
1225
                    <xsl:choose>
1226
                        <xsl:when test="position()=last()"></xsl:when>
1227
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1228
                    </xsl:choose>
1229
                </xsl:for-each>
1230
            </span>
1231
        </xsl:if>
1148
1232
1149
        <!--  775 Other Edition  -->
1233
        <!--  775 Other Edition  -->
1150
        <xsl:if test="marc:datafield[@tag=775]">
1234
        <xsl:if test="marc:datafield[@tag=775]">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +85 lines)
Lines 1258-1263 Link Here
1258
            </span>
1258
            </span>
1259
        </xsl:if>
1259
        </xsl:if>
1260
1260
1261
        <!-- 770 - Supplement/Special issue entry -->
1262
        <xsl:if test="marc:datafield[@tag=770]">
1263
            <span class="results_summary supplement"><span class="label">Supplement: </span>
1264
                <xsl:for-each select="marc:datafield[@tag=770]">
1265
                    <xsl:if test="marc:subfield[@code='i']">
1266
                        <span class="770_rel_info">
1267
                            <xsl:call-template name="subfieldSelect">
1268
                                <xsl:with-param name="codes">i</xsl:with-param>
1269
                            </xsl:call-template>
1270
                            <xsl:text> </xsl:text>
1271
                        </span>
1272
                    </xsl:if>
1273
                    <a>
1274
                        <xsl:choose>
1275
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1276
                                <xsl:attribute name="href">
1277
                                    /cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>
1278
                                </xsl:attribute>
1279
                            </xsl:when>
1280
                            <xsl:otherwise>
1281
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''),true())"/></xsl:attribute>
1282
                            </xsl:otherwise>
1283
                        </xsl:choose>
1284
                        <xsl:choose>
1285
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1286
                                <xsl:call-template name="subfieldSelect">
1287
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1288
                                </xsl:call-template>
1289
                            </xsl:when>
1290
                        </xsl:choose>
1291
                    </a>
1292
                    <xsl:text> </xsl:text>
1293
                    <xsl:call-template name="subfieldSelect">
1294
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1295
                    </xsl:call-template>
1296
                    <xsl:choose>
1297
                        <xsl:when test="position()=last()"></xsl:when>
1298
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1299
                    </xsl:choose>
1300
                </xsl:for-each>
1301
            </span>
1302
        </xsl:if>
1303
1304
        <!-- 772 - Supplement parent entry -->
1305
        <xsl:if test="marc:datafield[@tag=772]">
1306
            <span class="results_summary supplement_parent"><span class="label">Supplement to: </span>
1307
                <xsl:for-each select="marc:datafield[@tag=772]">
1308
                    <xsl:if test="marc:subfield[@code='i']">
1309
                        <span class="772_rel_info">
1310
                            <xsl:call-template name="subfieldSelect">
1311
                                <xsl:with-param name="codes">i</xsl:with-param>
1312
                            </xsl:call-template>
1313
                            <xsl:text> </xsl:text>
1314
                        </span>
1315
                    </xsl:if>
1316
                    <a>
1317
                        <xsl:choose>
1318
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1319
                                <xsl:attribute name="href">
1320
                                    /cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>
1321
                                </xsl:attribute>
1322
                            </xsl:when>
1323
                            <xsl:otherwise>
1324
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''),true())"/></xsl:attribute>
1325
                            </xsl:otherwise>
1326
                        </xsl:choose>
1327
                        <xsl:choose>
1328
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1329
                                <xsl:call-template name="subfieldSelect">
1330
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1331
                                </xsl:call-template>
1332
                            </xsl:when>
1333
                        </xsl:choose>
1334
                    </a>
1335
                    <xsl:call-template name="subfieldSelect">
1336
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1337
                    </xsl:call-template>
1338
                    <xsl:choose>
1339
                        <xsl:when test="position()=last()"></xsl:when>
1340
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1341
                    </xsl:choose>
1342
                </xsl:for-each>
1343
            </span>
1344
        </xsl:if>
1345
1261
        <!--  775 Other Edition  -->
1346
        <!--  775 Other Edition  -->
1262
        <xsl:if test="marc:datafield[@tag=775]">
1347
        <xsl:if test="marc:datafield[@tag=775]">
1263
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1348
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1264
- 

Return to bug 15141