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

(-)a/circ/circulation.pl (-3 / +1 lines)
Lines 349-360 if (@$barcodes) { Link Here
349
    $template_params->{messages} = $messages;
349
    $template_params->{messages} = $messages;
350
350
351
    my $item = Koha::Items->find({ barcode => $barcode });
351
    my $item = Koha::Items->find({ barcode => $barcode });
352
    my ( $biblio, $mss );
353
352
353
    my $biblio;
354
    if ( $item ) {
354
    if ( $item ) {
355
        $biblio = $item->biblio;
355
        $biblio = $item->biblio;
356
        my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $biblio->frameworkcode, kohafield => 'items.notforloan', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
357
        $template_params->{authvalcode_notforloan} = $mss->count ? $mss->next->authorised_value : undef;
358
    }
356
    }
359
357
360
    # Fix for bug 7494: optional checkout-time fallback search for a book
358
    # Fix for bug 7494: optional checkout-time fallback search for a book
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-3 / +2 lines)
Lines 155-161 Link Here
155
    [% IF ( itemtype_notforloan ) %]
155
    [% IF ( itemtype_notforloan ) %]
156
        Item type is normally not for loan.
156
        Item type is normally not for loan.
157
    [% ELSIF ( item_notforloan ) %]
157
    [% ELSIF ( item_notforloan ) %]
158
        [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
158
        [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
159
        Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %].
159
        Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %].
160
    [% END %]
160
    [% END %]
161
      [% IF CAN_user_circulate_force_checkout %]
161
      [% IF CAN_user_circulate_force_checkout %]
Lines 341-347 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
- 

Return to bug 21877