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 1276-1298 Link Here
1276
                           select="key('item-by-status', 'available')"/>
1276
                           select="key('item-by-status', 'available')"/>
1277
                   <xsl:choose>
1277
                   <xsl:choose>
1278
                   <xsl:when test="$singleBranchMode=1">
1278
                   <xsl:when test="$singleBranchMode=1">
1279
                       <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1279
                        <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1280
                           <span class="ItemSummary">
1280
                           <span class="ItemSummary">
1281
                               <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/><xsl:text> </xsl:text>
1281
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1282
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1282
                                   <span class="CallNumberAndLabel">
1283
                                   <span class="CallNumberAndLabel">
1283
                                       <span class="LabelCallNumber">Call number: </span>
1284
                                        <span class="LabelCallNumber">Call number: </span>
1284
                                       <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1285
                                        <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>
1285
                                   </span>
1286
                                   </span>
1286
                               </xsl:if>
1287
                               </xsl:if>
1287
                               <xsl:text> (</xsl:text>
1288
                                   <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1289
                               <xsl:text>)</xsl:text>
1290
                               <xsl:choose>
1288
                               <xsl:choose>
1291
                                   <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1289
                                   <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1292
                                   <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1290
                                   <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1293
                               </xsl:choose>
1291
                               </xsl:choose>
1294
                            </span>
1292
                            </span>
1295
                       </xsl:for-each>
1293
                        </xsl:for-each>
1296
                   </xsl:when>
1294
                   </xsl:when>
1297
                   <xsl:otherwise>
1295
                   <xsl:otherwise>
1298
                       <xsl:choose>
1296
                       <xsl:choose>
Lines 1300-1314 Link Here
1300
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1298
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1301
                                   <span class="ItemSummary">
1299
                                   <span class="ItemSummary">
1302
                                       <span class="ItemBranch"><xsl:value-of select="items:homebranch"/> </span>
1300
                                       <span class="ItemBranch"><xsl:value-of select="items:homebranch"/> </span>
1301
                                       <xsl:text> (</xsl:text>
1302
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1303
                                       <xsl:text>) </xsl:text>
1303
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1304
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1304
                                           <span class="CallNumberAndLabel">
1305
                                           <span class="CallNumberAndLabel">
1305
                                               <span class="LabelCallNumber">Call number: </span>
1306
                                                <span class="LabelCallNumber">Call number: </span>
1306
								   <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1307
                                                <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>
1307
                                           </span>
1308
                                           </span>
1308
                                       </xsl:if>
1309
                                       </xsl:if>
1309
                                       <xsl:text> (</xsl:text>
1310
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1311
                                       <xsl:text>)</xsl:text>
1312
                                       <xsl:choose>
1310
                                       <xsl:choose>
1313
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1311
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1314
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1312
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
Lines 1320-1334 Link Here
1320
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1318
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1321
                                   <span class="ItemSummary">
1319
                                   <span class="ItemSummary">
1322
                                       <span class="ItemBranch"><xsl:value-of select="items:holdingbranch"/> </span>
1320
                                       <span class="ItemBranch"><xsl:value-of select="items:holdingbranch"/> </span>
1321
                                       <xsl:text> (</xsl:text>
1322
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1323
                                       <xsl:text>) </xsl:text>
1323
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1324
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1324
                                           <span class="CallNumberAndLabel">
1325
                                           <span class="CallNumberAndLabel">
1325
                                               <span class="LabelCallNumber">Call number: </span>
1326
                                                <span class="LabelCallNumber">Call number: </span>
1326
								   <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1327
                                                <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>
1327
                                           </span>
1328
                                           </span>
1328
                                       </xsl:if>
1329
                                       </xsl:if>
1329
                                       <xsl:text> (</xsl:text>
1330
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1331
                                       <xsl:text>)</xsl:text>
1332
                                       <xsl:choose>
1330
                                       <xsl:choose>
1333
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1331
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1334
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1332
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
Lines 1358-1372 Link Here
1358
                                    <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span>
1356
                                    <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span>
1359
                                </xsl:if>
1357
                                </xsl:if>
1360
                                <span class='notforloandesc'><xsl:value-of select="items:substatus"/></span>
1358
                                <span class='notforloandesc'><xsl:value-of select="items:substatus"/></span>
1359
                                <xsl:text> (</xsl:text>
1360
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1361
                                <xsl:text>) </xsl:text>
1361
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1362
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1362
                                    <span class="CallNumberAndLabel">
1363
                                    <span class="CallNumberAndLabel">
1363
                                        <span class="LabelCallNumber">Call number: </span>
1364
                                        <span class="LabelCallNumber">Call number: </span>
1364
							    <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1365
                                        <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>
1365
                                    </span>
1366
                                    </span>
1366
                                </xsl:if>
1367
                                </xsl:if>
1367
                                <xsl:text> (</xsl:text>
1368
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1369
                                <xsl:text>)</xsl:text>
1370
                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1368
                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1371
                            </span>
1369
                            </span>
1372
                        </xsl:for-each>
1370
                        </xsl:for-each>
1373
- 

Return to bug 21260