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

(-)a/C4/Items.pm (-2 / +3 lines)
Lines 1277-1289 sub GetItemsInfo { Link Here
1277
1277
1278
        # get notforloan complete status if applicable
1278
        # get notforloan complete status if applicable
1279
        if ( my $code = C4::Koha::GetAuthValCode( 'items.notforloan', $data->{frameworkcode} ) ) {
1279
        if ( my $code = C4::Koha::GetAuthValCode( 'items.notforloan', $data->{frameworkcode} ) ) {
1280
            $data->{notforloanvalue} = C4::Koha::GetAuthorisedValueByCode( $code, $data->{itemnotforloan} );
1280
            $data->{notforloanvalue}     = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{itemnotforloan} );
1281
            $data->{notforloanvalueopac} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{itemnotforloan}, 1 );
1281
        }
1282
        }
1282
1283
1283
        # get restricted status and description if applicable
1284
        # get restricted status and description if applicable
1284
        if ( my $code = C4::Koha::GetAuthValCode( 'items.restricted', $data->{frameworkcode} ) ) {
1285
        if ( my $code = C4::Koha::GetAuthValCode( 'items.restricted', $data->{frameworkcode} ) ) {
1285
            $data->{restricted}     = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted} );
1286
            $data->{restricted}     = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted} );
1286
            $data->{restrictedopac} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted}, 'opac' );
1287
            $data->{restrictedopac} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted}, 1 );
1287
        }
1288
        }
1288
1289
1289
        # my stack procedures
1290
        # my stack procedures
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc (-3 / +2 lines)
Lines 25-32 Link Here
25
        [% END %]
25
        [% END %]
26
    [% END %]
26
    [% END %]
27
[% ELSIF ( item.itemnotforloan ) %]
27
[% ELSIF ( item.itemnotforloan ) %]
28
    [% IF ( item.notforloanvalue ) %]
28
    [% IF ( item.notforloanvalueopac ) %]
29
        [% item.notforloanvalue %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
29
        [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
30
    [% ELSE %]
30
    [% ELSE %]
31
        Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
31
        Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
32
    [% END %]
32
    [% END %]
33
- 

Return to bug 8988