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 1203-1208 Link Here
1203
            </span>
1203
            </span>
1204
        </xsl:if>
1204
        </xsl:if>
1205
1205
1206
        <!-- 770 - Supplement/Special issue entry -->
1207
        <xsl:if test="marc:datafield[@tag=770]">
1208
            <span class="results_summary supplement"><span class="label">Supplement: </span>
1209
                <xsl:for-each select="marc:datafield[@tag=770]">
1210
                    <xsl:if test="marc:subfield[@code='i']">
1211
                        <span class="770_rel_info">
1212
                            <xsl:call-template name="subfieldSelect">
1213
                                <xsl:with-param name="codes">i</xsl:with-param>
1214
                            </xsl:call-template>
1215
                            <xsl:text> </xsl:text>
1216
                        </span>
1217
                    </xsl:if>
1218
                    <a>
1219
                        <xsl:choose>
1220
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1221
                                <xsl:attribute name="href">
1222
                                    /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>
1223
                                </xsl:attribute>
1224
                            </xsl:when>
1225
                            <xsl:otherwise>
1226
                                <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>
1227
                            </xsl:otherwise>
1228
                        </xsl:choose>
1229
                        <xsl:choose>
1230
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1231
                                <xsl:call-template name="subfieldSelect">
1232
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1233
                                </xsl:call-template>
1234
                            </xsl:when>
1235
                        </xsl:choose>
1236
                    </a>
1237
                    <xsl:text> </xsl:text>
1238
                    <xsl:call-template name="subfieldSelect">
1239
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1240
                    </xsl:call-template>
1241
                    <xsl:choose>
1242
                        <xsl:when test="position()=last()"></xsl:when>
1243
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1244
                    </xsl:choose>
1245
                </xsl:for-each>
1246
            </span>
1247
        </xsl:if>
1248
1249
        <!-- 772 - Supplement parent entry -->
1250
        <xsl:if test="marc:datafield[@tag=772]">
1251
            <span class="results_summary supplement_parent"><span class="label">Supplement to: </span>
1252
                <xsl:for-each select="marc:datafield[@tag=772]">
1253
                    <xsl:if test="marc:subfield[@code='i']">
1254
                        <span class="772_rel_info">
1255
                            <xsl:call-template name="subfieldSelect">
1256
                                <xsl:with-param name="codes">i</xsl:with-param>
1257
                            </xsl:call-template>
1258
                            <xsl:text> </xsl:text>
1259
                        </span>
1260
                    </xsl:if>
1261
                    <a>
1262
                        <xsl:choose>
1263
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1264
                                <xsl:attribute name="href">
1265
                                    /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>
1266
                                </xsl:attribute>
1267
                            </xsl:when>
1268
                            <xsl:otherwise>
1269
                                <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>
1270
                            </xsl:otherwise>
1271
                        </xsl:choose>
1272
                        <xsl:choose>
1273
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1274
                                <xsl:call-template name="subfieldSelect">
1275
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1276
                                </xsl:call-template>
1277
                            </xsl:when>
1278
                        </xsl:choose>
1279
                    </a>
1280
                    <xsl:call-template name="subfieldSelect">
1281
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1282
                    </xsl:call-template>
1283
                    <xsl:choose>
1284
                        <xsl:when test="position()=last()"></xsl:when>
1285
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1286
                    </xsl:choose>
1287
                </xsl:for-each>
1288
            </span>
1289
        </xsl:if>
1206
1290
1207
        <!--  775 Other Edition  -->
1291
        <!--  775 Other Edition  -->
1208
        <xsl:if test="marc:datafield[@tag=775]">
1292
        <xsl:if test="marc:datafield[@tag=775]">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +85 lines)
Lines 1315-1320 Link Here
1315
            </span>
1315
            </span>
1316
        </xsl:if>
1316
        </xsl:if>
1317
1317
1318
        <!-- 770 - Supplement/Special issue entry -->
1319
        <xsl:if test="marc:datafield[@tag=770]">
1320
            <span class="results_summary supplement"><span class="label">Supplement: </span>
1321
                <xsl:for-each select="marc:datafield[@tag=770]">
1322
                    <xsl:if test="marc:subfield[@code='i']">
1323
                        <span class="770_rel_info">
1324
                            <xsl:call-template name="subfieldSelect">
1325
                                <xsl:with-param name="codes">i</xsl:with-param>
1326
                            </xsl:call-template>
1327
                            <xsl:text> </xsl:text>
1328
                        </span>
1329
                    </xsl:if>
1330
                    <a>
1331
                        <xsl:choose>
1332
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1333
                                <xsl:attribute name="href">
1334
                                    /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>
1335
                                </xsl:attribute>
1336
                            </xsl:when>
1337
                            <xsl:otherwise>
1338
                                <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>
1339
                            </xsl:otherwise>
1340
                        </xsl:choose>
1341
                        <xsl:choose>
1342
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1343
                                <xsl:call-template name="subfieldSelect">
1344
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1345
                                </xsl:call-template>
1346
                            </xsl:when>
1347
                        </xsl:choose>
1348
                    </a>
1349
                    <xsl:text> </xsl:text>
1350
                    <xsl:call-template name="subfieldSelect">
1351
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1352
                    </xsl:call-template>
1353
                    <xsl:choose>
1354
                        <xsl:when test="position()=last()"></xsl:when>
1355
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1356
                    </xsl:choose>
1357
                </xsl:for-each>
1358
            </span>
1359
        </xsl:if>
1360
1361
        <!-- 772 - Supplement parent entry -->
1362
        <xsl:if test="marc:datafield[@tag=772]">
1363
            <span class="results_summary supplement_parent"><span class="label">Supplement to: </span>
1364
                <xsl:for-each select="marc:datafield[@tag=772]">
1365
                    <xsl:if test="marc:subfield[@code='i']">
1366
                        <span class="772_rel_info">
1367
                            <xsl:call-template name="subfieldSelect">
1368
                                <xsl:with-param name="codes">i</xsl:with-param>
1369
                            </xsl:call-template>
1370
                            <xsl:text> </xsl:text>
1371
                        </span>
1372
                    </xsl:if>
1373
                    <a>
1374
                        <xsl:choose>
1375
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1376
                                <xsl:attribute name="href">
1377
                                    /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>
1378
                                </xsl:attribute>
1379
                            </xsl:when>
1380
                            <xsl:otherwise>
1381
                                <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>
1382
                            </xsl:otherwise>
1383
                        </xsl:choose>
1384
                        <xsl:choose>
1385
                            <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
1386
                                <xsl:call-template name="subfieldSelect">
1387
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1388
                                </xsl:call-template>
1389
                            </xsl:when>
1390
                        </xsl:choose>
1391
                    </a>
1392
                    <xsl:call-template name="subfieldSelect">
1393
                        <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
1394
                    </xsl:call-template>
1395
                    <xsl:choose>
1396
                        <xsl:when test="position()=last()"></xsl:when>
1397
                        <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
1398
                    </xsl:choose>
1399
                </xsl:for-each>
1400
            </span>
1401
        </xsl:if>
1402
1318
        <!--  775 Other Edition  -->
1403
        <!--  775 Other Edition  -->
1319
        <xsl:if test="marc:datafield[@tag=775]">
1404
        <xsl:if test="marc:datafield[@tag=775]">
1320
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1405
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1321
- 

Return to bug 15141