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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-23 / +20 lines)
Lines 36-42 Link Here
36
    <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
36
    <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
37
    <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
37
    <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
38
    <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
38
    <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
39
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
39
    <xsl:variable name="singleBranchMode" select="1"/>
40
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
40
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
41
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
41
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
42
        <xsl:variable name="leader" select="marc:leader"/>
42
        <xsl:variable name="leader" select="marc:leader"/>
Lines 1263-1285 Link Here
1263
                           select="key('item-by-status', 'available')"/>
1263
                           select="key('item-by-status', 'available')"/>
1264
                   <xsl:choose>
1264
                   <xsl:choose>
1265
                   <xsl:when test="$singleBranchMode=1">
1265
                   <xsl:when test="$singleBranchMode=1">
1266
                       <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1266
                        <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1267
                           <span class="ItemSummary">
1267
                           <span class="ItemSummary">
1268
                               <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/><xsl:text> </xsl:text>
1268
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1269
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1269
                                   <span class="CallNumberAndLabel">
1270
                                   <span class="CallNumberAndLabel">
1270
                                       <span class="LabelCallNumber">Call number: </span>
1271
                                        <span class="LabelCallNumber">Call number: </span>
1271
                                       <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1272
                                        <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/><xsl:if test="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))>1"><xsl:text>, ..</xsl:text></xsl:if></span>
1272
                                   </span>
1273
                                   </span>
1273
                               </xsl:if>
1274
                               </xsl:if>
1274
                               <xsl:text> (</xsl:text>
1275
                                   <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1276
                               <xsl:text>)</xsl:text>
1277
                               <xsl:choose>
1275
                               <xsl:choose>
1278
                                   <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1276
                                   <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1279
                                   <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1277
                                   <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1280
                               </xsl:choose>
1278
                               </xsl:choose>
1281
                            </span>
1279
                            </span>
1282
                       </xsl:for-each>
1280
                        </xsl:for-each>
1283
                   </xsl:when>
1281
                   </xsl:when>
1284
                   <xsl:otherwise>
1282
                   <xsl:otherwise>
1285
                       <xsl:choose>
1283
                       <xsl:choose>
Lines 1287-1301 Link Here
1287
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1285
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1288
                                   <span class="ItemSummary">
1286
                                   <span class="ItemSummary">
1289
                                       <span class="ItemBranch"><xsl:value-of select="items:homebranch"/> </span>
1287
                                       <span class="ItemBranch"><xsl:value-of select="items:homebranch"/> </span>
1288
                                       <xsl:text> (</xsl:text>
1289
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1290
                                       <xsl:text>) </xsl:text>
1290
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1291
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1291
                                           <span class="CallNumberAndLabel">
1292
                                           <span class="CallNumberAndLabel">
1292
                                               <span class="LabelCallNumber">Call number: </span>
1293
                                                <span class="LabelCallNumber">Call number: </span>
1293
								   <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1294
                                                <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/><xsl:if test="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))>1"><xsl:text>, ..</xsl:text></xsl:if></span>
1294
                                           </span>
1295
                                           </span>
1295
                                       </xsl:if>
1296
                                       </xsl:if>
1296
                                       <xsl:text> (</xsl:text>
1297
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1298
                                       <xsl:text>)</xsl:text>
1299
                                       <xsl:choose>
1297
                                       <xsl:choose>
1300
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1298
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1301
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1299
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
Lines 1307-1321 Link Here
1307
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1305
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1308
                                   <span class="ItemSummary">
1306
                                   <span class="ItemSummary">
1309
                                       <span class="ItemBranch"><xsl:value-of select="items:holdingbranch"/> </span>
1307
                                       <span class="ItemBranch"><xsl:value-of select="items:holdingbranch"/> </span>
1308
                                       <xsl:text> (</xsl:text>
1309
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1310
                                       <xsl:text>) </xsl:text>
1310
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1311
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1311
                                           <span class="CallNumberAndLabel">
1312
                                           <span class="CallNumberAndLabel">
1312
                                               <span class="LabelCallNumber">Call number: </span>
1313
                                                <span class="LabelCallNumber">Call number: </span>
1313
								   <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1314
                                                <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/><xsl:if test="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))>1"><xsl:text>, ..</xsl:text></xsl:if></span>
1314
                                           </span>
1315
                                           </span>
1315
                                       </xsl:if>
1316
                                       </xsl:if>
1316
                                       <xsl:text> (</xsl:text>
1317
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1318
                                       <xsl:text>)</xsl:text>
1319
                                       <xsl:choose>
1317
                                       <xsl:choose>
1320
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1318
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1321
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1319
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
Lines 1345-1359 Link Here
1345
                                    <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span>
1343
                                    <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span>
1346
                                </xsl:if>
1344
                                </xsl:if>
1347
                                <span class='notforloandesc'><xsl:value-of select="items:substatus"/></span>
1345
                                <span class='notforloandesc'><xsl:value-of select="items:substatus"/></span>
1346
                                <xsl:text> (</xsl:text>
1347
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1348
                                <xsl:text>) </xsl:text>
1348
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1349
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1349
                                    <span class="CallNumberAndLabel">
1350
                                    <span class="CallNumberAndLabel">
1350
                                        <span class="LabelCallNumber">Call number: </span>
1351
                                        <span class="LabelCallNumber">Call number: </span>
1351
							    <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1352
                                        <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/><xsl:if test="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))>1"><xsl:text>, ..</xsl:text></xsl:if></span>
1352
                                    </span>
1353
                                    </span>
1353
                                </xsl:if>
1354
                                </xsl:if>
1354
                                <xsl:text> (</xsl:text>
1355
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1356
                                <xsl:text>)</xsl:text>
1357
                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1355
                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1358
                            </span>
1356
                            </span>
1359
                        </xsl:for-each>
1357
                        </xsl:for-each>
1360
- 

Return to bug 21260