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

(-)a/C4/Items.pm (-2 / +2 lines)
Lines 1047-1054 sub GetItemsInfo { Link Here
1047
1047
1048
        # get restricted status and description if applicable
1048
        # get restricted status and description if applicable
1049
        $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => $data->{frameworkcode}, kohafield => 'items.restricted', authorised_value => $data->{restricted} });
1049
        $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => $data->{frameworkcode}, kohafield => 'items.restricted', authorised_value => $data->{restricted} });
1050
        $data->{restricted}     = $descriptions->{lib} // '';
1050
        $data->{restrictedvalue}     = $descriptions->{lib} // '';
1051
        $data->{restrictedopac} = $descriptions->{opac_description} // '';
1051
        $data->{restrictedvalueopac} = $descriptions->{opac_description} // '';
1052
1052
1053
        # my stack procedures
1053
        # my stack procedures
1054
        $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => $data->{frameworkcode}, kohafield => 'items.stack', authorised_value => $data->{stack} });
1054
        $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => $data->{frameworkcode}, kohafield => 'items.stack', authorised_value => $data->{stack} });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +1 lines)
Lines 497-503 Link Here
497
                        [% END %]
497
                        [% END %]
498
498
499
                        [% IF ( item.restricted ) %]
499
                        [% IF ( item.restricted ) %]
500
                            <span class="restricted">([% item.restricted | html %])</span>
500
                            <span class="restricted">([% item.restrictedvalue | html %])</span>
501
                        [% END %]
501
                        [% END %]
502
502
503
                    </td>
503
                    </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc (-6 / +5 lines)
Lines 65-77 Link Here
65
[% IF NOT ( item.isa('Koha::Item') ) AND item.itemnotforloan %]
65
[% IF NOT ( item.isa('Koha::Item') ) AND item.itemnotforloan %]
66
    [% SET itemavailable = 0 %]
66
    [% SET itemavailable = 0 %]
67
    [% IF ( item.notforloanvalueopac ) %]
67
    [% IF ( item.notforloanvalueopac ) %]
68
        <span class="item-status notforloan">[% item.notforloanvalueopac | html %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac | html %])</span>[% END %]</span>
68
        <span class="item-status notforloan">[% item.notforloanvalueopac | html %] [% IF ( item.restrictedvalueopac ) %]<span class="restricted">([% item.restrictedvalueopac | html %])</span>[% END %]</span>
69
    [% ELSE %]
69
    [% ELSE %]
70
        <span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac | html %])</span>[% END %]</span>
70
        <span class="item-status notforloan">Not for loan [% IF ( item.restrictedvalueopac ) %]<span class="restricted">([% item.restrictedvalueopac | html %])</span>[% END %]</span>
71
    [% END %]
71
    [% END %]
72
[% ELSIF NOT ( item.isa('Koha::Item') ) AND item.notforloan_per_itemtype %]
72
[% ELSIF NOT ( item.isa('Koha::Item') ) AND item.notforloan_per_itemtype %]
73
    [% SET itemavailable = 0 %]
73
    [% SET itemavailable = 0 %]
74
    <span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac | html %])</span>[% END %]</span>
74
    <span class="item-status notforloan">Not for loan [% IF ( item.restrictedvalueopac ) %]<span class="restricted">([% item.restrictedvalueopac | html %])</span>[% END %]</span>
75
[% END %]
75
[% END %]
76
76
77
[% IF ( item.damaged ) %]
77
[% IF ( item.damaged ) %]
Lines 90-95 Link Here
90
[% END %]
90
[% END %]
91
91
92
[% IF ( itemavailable ) %]
92
[% IF ( itemavailable ) %]
93
    [% IF NOT item.isa('Koha::Item') %][% SET restrictedopac = item.restrictedopac %][% END %]
93
    [% IF NOT item.isa('Koha::Item') %][% SET restrictedvalueopac = item.restrictedvalueopac %][% END %]
94
    <span class="item-status available">Available [% IF restrictedopac %]<span class="restricted">([% restrictedopac | html %])</span>[% END %]</span>
94
    <span class="item-status available">Available [% IF restrictedvalueopac %]<span class="restricted">([% restrictedvalueopac | html %])</span>[% END %]</span>
95
[% END %]
95
[% END %]
96
- 

Return to bug 10676