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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-5 / +20 lines)
Lines 1172-1178 Link Here
1172
                   <xsl:when test="$singleBranchMode=1">
1172
                   <xsl:when test="$singleBranchMode=1">
1173
                       <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1173
                       <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1174
                           <span class="ItemSummary">
1174
                           <span class="ItemSummary">
1175
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1175
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber">
1176
                                   <span class="CallNumberAndLabel">
1177
                                       [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>]
1178
                                   </span>
1179
                               </xsl:if>
1176
                               <xsl:text> (</xsl:text>
1180
                               <xsl:text> (</xsl:text>
1177
                                   <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1181
                                   <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1178
                               <xsl:text>)</xsl:text>
1182
                               <xsl:text>)</xsl:text>
Lines 1189-1195 Link Here
1189
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1193
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1190
                                   <span class="ItemSummary">
1194
                                   <span class="ItemSummary">
1191
                                       <xsl:value-of select="items:homebranch"/>
1195
                                       <xsl:value-of select="items:homebranch"/>
1192
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1196
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1197
                                           <span class="CallNumberAndLabel">
1198
                                               [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>]
1199
                                           </span>
1200
                                       </xsl:if>
1193
                                       <xsl:text> (</xsl:text>
1201
                                       <xsl:text> (</xsl:text>
1194
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1202
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1195
                                       <xsl:text>)</xsl:text>
1203
                                       <xsl:text>)</xsl:text>
Lines 1204-1210 Link Here
1204
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1212
                               <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch))[1])]">
1205
                                   <span class="ItemSummary">
1213
                                   <span class="ItemSummary">
1206
                                       <xsl:value-of select="items:holdingbranch"/>
1214
                                       <xsl:value-of select="items:holdingbranch"/>
1207
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1215
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1216
                                           <span class="CallNumberAndLabel">
1217
                                               [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>]
1218
                                           </span>
1219
                                       </xsl:if>
1208
                                       <xsl:text> (</xsl:text>
1220
                                       <xsl:text> (</xsl:text>
1209
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1221
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1210
                                       <xsl:text>)</xsl:text>
1222
                                       <xsl:text>)</xsl:text>
Lines 1233-1239 Link Here
1233
                                <xsl:if test="$singleBranchMode=0">
1245
                                <xsl:if test="$singleBranchMode=0">
1234
                                    <xsl:value-of select="items:homebranch"/>
1246
                                    <xsl:value-of select="items:homebranch"/>
1235
                                </xsl:if>
1247
                                </xsl:if>
1236
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1248
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber">
1249
                                    <span class="CallNumberAndLabel">
1250
                                        [<span class="LabelCallNumber">Call number: </span><span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>]
1251
                                    </span>
1252
                                </xsl:if>
1237
                                <xsl:text> (</xsl:text>
1253
                                <xsl:text> (</xsl:text>
1238
                                <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1254
                                <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1239
                                <xsl:text>)</xsl:text>
1255
                                <xsl:text>)</xsl:text>
1240
- 

Return to bug 21340