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

(-)a/circ/circulation.pl (-6 lines)
Lines 350-361 if (@$barcodes) { Link Here
350
    my $item = Koha::Items->find({ barcode => $barcode });
350
    my $item = Koha::Items->find({ barcode => $barcode });
351
    my ( $biblio, $mss );
351
    my ( $biblio, $mss );
352
352
353
    if ( $item ) {
354
        $biblio = $item->biblio;
355
        my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $biblio->frameworkcode, kohafield => 'items.notforloan', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
356
        $template_params->{authvalcode_notforloan} = $mss->count ? $mss->next->authorised_value : undef;
357
    }
358
359
    # Fix for bug 7494: optional checkout-time fallback search for a book
353
    # Fix for bug 7494: optional checkout-time fallback search for a book
360
354
361
    if ( $error->{'UNKNOWN_BARCODE'}
355
    if ( $error->{'UNKNOWN_BARCODE'}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-3 / +6 lines)
Lines 341-354 Link Here
341
            [% IF ( itemtype_notforloan ) %]
341
            [% IF ( itemtype_notforloan ) %]
342
                Item type not for loan.
342
                Item type not for loan.
343
            [% ELSIF ( item_notforloan ) %]
343
            [% ELSIF ( item_notforloan ) %]
344
                [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
344
                [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
345
                Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %].
345
                Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %].
346
            [% END %]
346
            [% END %]
347
            </li>
347
            </li>
348
        [% END %]
348
        [% END %]
349
349
350
        [% IF ( WTHDRAWN ) %]
350
        [% IF ( WTHDRAWN ) %]
351
            <li>Item has been withdrawn</li>
351
            <li>
352
                <span>Item has been withdrawn</span>
353
                [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
354
                [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
355
            </li>
352
        [% END %]
356
        [% END %]
353
357
354
        [% IF ( RESTRICTED ) %]
358
        [% IF ( RESTRICTED ) %]
355
- 

Return to bug 21877