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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (-6 / +19 lines)
Lines 198-208 Link Here
198
      <xsl:choose>
198
      <xsl:choose>
199
      <xsl:when test="$singleBranchMode=1">
199
      <xsl:when test="$singleBranchMode=1">
200
      <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
200
      <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
201
        <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
201
          <span class="ItemSummary">
202
          <xsl:text> (</xsl:text>
202
              <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber">
203
          <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
203
                  <span class="CallNumberAndLabel">
204
          <xsl:text>)</xsl:text>
204
                      <span class="LabelCallNumber">Call number: </span>
205
          <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
205
                      <span class="CallNumber"><xsl:value-of select="items:itemcallnumber"/></span>
206
                  </span>
207
              </xsl:if>
208
              <xsl:text> (</xsl:text>
209
              <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
210
              <xsl:text>)</xsl:text>
211
              <xsl:choose>
212
                  <xsl:when test="position()=last()">
213
                      <xsl:text>. </xsl:text>
214
                  </xsl:when>
215
                  <xsl:otherwise>
216
                      <xsl:text>, </xsl:text>
217
                  </xsl:otherwise>
218
              </xsl:choose>
219
          </span>
206
      </xsl:for-each>
220
      </xsl:for-each>
207
      </xsl:when>
221
      </xsl:when>
208
      <xsl:otherwise>
222
      <xsl:otherwise>
209
- 

Return to bug 24630