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 34-40 Link Here
34
    <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
34
    <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
35
    <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
35
    <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
36
    <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
36
    <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
37
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
37
    <xsl:variable name="singleBranchMode" select="1"/>
38
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
38
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
39
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
39
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
40
        <xsl:variable name="leader" select="marc:leader"/>
40
        <xsl:variable name="leader" select="marc:leader"/>
Lines 1249-1271 Link Here
1249
                           select="key('item-by-status', 'available')"/>
1249
                           select="key('item-by-status', 'available')"/>
1250
                   <xsl:choose>
1250
                   <xsl:choose>
1251
                   <xsl:when test="$singleBranchMode=1">
1251
                   <xsl:when test="$singleBranchMode=1">
1252
                       <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1252
                        <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1253
                           <span class="ItemSummary">
1253
                           <span class="ItemSummary">
1254
                               <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/><xsl:text> </xsl:text>
1254
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1255
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1255
                                   <span class="CallNumberAndLabel">
1256
                                   <span class="CallNumberAndLabel">
1256
                                       <span class="LabelCallNumber">Call number: </span>
1257
                                        <span class="LabelCallNumber">Call number: </span>
1257
                                       <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1258
                                        <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>
1258
                                   </span>
1259
                                   </span>
1259
                               </xsl:if>
1260
                               </xsl:if>
1260
                               <xsl:text> (</xsl:text>
1261
                                   <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1262
                               <xsl:text>)</xsl:text>
1263
                               <xsl:choose>
1261
                               <xsl:choose>
1264
                                   <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1262
                                   <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1265
                                   <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1263
                                   <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1266
                               </xsl:choose>
1264
                               </xsl:choose>
1267
                            </span>
1265
                            </span>
1268
                       </xsl:for-each>
1266
                        </xsl:for-each>
1269
                   </xsl:when>
1267
                   </xsl:when>
1270
                   <xsl:otherwise>
1268
                   <xsl:otherwise>
1271
                       <xsl:choose>
1269
                       <xsl:choose>
Lines 1273-1287 Link Here
1273
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1271
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1274
                                   <span class="ItemSummary">
1272
                                   <span class="ItemSummary">
1275
                                       <span class="ItemBranch"><xsl:value-of select="items:homebranch"/> </span>
1273
                                       <span class="ItemBranch"><xsl:value-of select="items:homebranch"/> </span>
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>
1276
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1277
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1277
                                           <span class="CallNumberAndLabel">
1278
                                           <span class="CallNumberAndLabel">
1278
                                               <span class="LabelCallNumber">Call number: </span>
1279
                                                <span class="LabelCallNumber">Call number: </span>
1279
								   <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1280
                                                <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>
1280
                                           </span>
1281
                                           </span>
1281
                                       </xsl:if>
1282
                                       </xsl:if>
1282
                                       <xsl:text> (</xsl:text>
1283
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1284
                                       <xsl:text>)</xsl:text>
1285
                                       <xsl:choose>
1283
                                       <xsl:choose>
1286
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1284
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1287
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1285
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
Lines 1293-1307 Link Here
1293
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1291
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1294
                                   <span class="ItemSummary">
1292
                                   <span class="ItemSummary">
1295
                                       <span class="ItemBranch"><xsl:value-of select="items:holdingbranch"/> </span>
1293
                                       <span class="ItemBranch"><xsl:value-of select="items:holdingbranch"/> </span>
1294
                                       <xsl:text> (</xsl:text>
1295
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1296
                                       <xsl:text>) </xsl:text>
1296
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1297
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1297
                                           <span class="CallNumberAndLabel">
1298
                                           <span class="CallNumberAndLabel">
1298
                                               <span class="LabelCallNumber">Call number: </span>
1299
                                                <span class="LabelCallNumber">Call number: </span>
1299
								   <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1300
                                                <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>
1300
                                           </span>
1301
                                           </span>
1301
                                       </xsl:if>
1302
                                       </xsl:if>
1302
                                       <xsl:text> (</xsl:text>
1303
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1304
                                       <xsl:text>)</xsl:text>
1305
                                       <xsl:choose>
1303
                                       <xsl:choose>
1306
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1304
                                           <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when>
1307
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
1305
                                           <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
Lines 1331-1345 Link Here
1331
                                    <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span>
1329
                                    <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span>
1332
                                </xsl:if>
1330
                                </xsl:if>
1333
                                <span class='notforloandesc'><xsl:value-of select="items:substatus"/></span>
1331
                                <span class='notforloandesc'><xsl:value-of select="items:substatus"/></span>
1332
                                <xsl:text> (</xsl:text>
1333
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1334
                                <xsl:text>) </xsl:text>
1334
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1335
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1335
                                    <span class="CallNumberAndLabel">
1336
                                    <span class="CallNumberAndLabel">
1336
                                        <span class="LabelCallNumber">Call number: </span>
1337
                                        <span class="LabelCallNumber">Call number: </span>
1337
							    <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
1338
                                        <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>
1338
                                    </span>
1339
                                    </span>
1339
                                </xsl:if>
1340
                                </xsl:if>
1340
                                <xsl:text> (</xsl:text>
1341
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1342
                                <xsl:text>)</xsl:text>
1343
                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1341
                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1344
                            </span>
1342
                            </span>
1345
                        </xsl:for-each>
1343
                        </xsl:for-each>
1346
- 

Return to bug 21260