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

(-)a/C4/XSLT.pm (+11 lines)
Lines 299-304 sub buildKohaItemsNamespace { Link Here
299
            if ( $item->{itemnotforloan} > 0 || $item->{notforloan} > 0 || $itemtypes->{ $item->{itype} }->{notforloan} == 1 ) {
299
            if ( $item->{itemnotforloan} > 0 || $item->{notforloan} > 0 || $itemtypes->{ $item->{itype} }->{notforloan} == 1 ) {
300
                $status = "reference";
300
                $status = "reference";
301
            }
301
            }
302
            if( $item->{notforloan} > 1 ) {
303
            # Handle higher positive values for notforloan
304
            # If av [exceptionally] returns nothing, we'll keep reference
305
                my $av = Koha::AuthorisedValues->search({
306
                    category         => 'NOT_LOAN',
307
                    authorised_value => $item->{notforloan},
308
                });
309
                if( $av->count ) {
310
                    $status = $av->next->opac_description;
311
                }
312
            }
302
            if ($item->{onloan}) {
313
            if ($item->{onloan}) {
303
                $status = "Checked out";
314
                $status = "Checked out";
304
            }
315
            }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-2 / +8 lines)
Lines 1159-1165 Link Here
1159
                            </xsl:for-each>
1159
                            </xsl:for-each>
1160
                            (<xsl:value-of select="$AlternateHoldingsCount"/>)
1160
                            (<xsl:value-of select="$AlternateHoldingsCount"/>)
1161
                            </xsl:when>
1161
                            </xsl:when>
1162
                            <xsl:otherwise>No items available </xsl:otherwise>
1162
                            <xsl:otherwise>No items available. </xsl:otherwise>
1163
                        </xsl:choose>
1163
                        </xsl:choose>
1164
				   </xsl:when>
1164
				   </xsl:when>
1165
                   <xsl:when test="count(key('item-by-status', 'available'))>0">
1165
                   <xsl:when test="count(key('item-by-status', 'available'))>0">
Lines 1249-1254 Link Here
1249
                       </xsl:when></xsl:choose>
1249
                       </xsl:when></xsl:choose>
1250
                   </xsl:when> </xsl:choose>
1250
                   </xsl:when> </xsl:choose>
1251
1251
1252
                   <xsl:if test="count(key('item-by-status', 'Staff Collection'))>0">
1253
                   <span class="unavailable">
1254
                       <xsl:text>Staff Collection (</xsl:text>
1255
                       <xsl:value-of select="count(key('item-by-status', 'Staff Collection'))"/>
1256
                       <xsl:text>). </xsl:text>
1257
                   </span>
1258
                   </xsl:if>
1252
                   <xsl:if test="count(key('item-by-status', 'Checked out'))>0">
1259
                   <xsl:if test="count(key('item-by-status', 'Checked out'))>0">
1253
                   <span class="unavailable">
1260
                   <span class="unavailable">
1254
                       <xsl:text>Checked out (</xsl:text>
1261
                       <xsl:text>Checked out (</xsl:text>
1255
- 

Return to bug 17624