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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-20 / +23 lines)
Lines 97-122 Link Here
97
                    until [% userdebarreddate | $KohaDates %]
97
                    until [% userdebarreddate | $KohaDates %]
98
                [% END %]
98
                [% END %]
99
99
100
                [% IF ( debarredcomment ) %]
100
                [% FOREACH restriction IN patron.restrictions %]
101
                    with the explanation: <br />
101
                    <div class="[% restriction.type.code | lower | html %]_restriction">
102
                    <em>
102
                        <em>
103
                        [% IF debarredcomment.search('OVERDUES_PROCESS') %]
103
                            [%- restriction.type.display_text | html -%]:
104
                            Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
104
                            <span class="restriction_expiration">
105
                        [% ELSE %]
105
                                [% IF restriction.expiration %]
106
                            [% FOREACH restriction IN patron.restrictions %]
106
                                    [% restriction.expiration | $KohaDates %]
107
                                <div class="[% restriction.type.code | lower | html %]_restriction">
107
                                [% ELSE %]
108
                                    <span class="restriction_expiration">
108
                                    <strong>Indefinite</strong>
109
                                        [% IF restriction.expiration %]
109
                                [% END %]
110
                                            [% restriction.expiration | $KohaDates %]
110
                            </span>
111
                                        [% ELSE %]
111
                            [% IF restriction.comment.search('OVERDUES_PROCESS') %]
112
                                            <strong>Indefinite</strong>
112
                                Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
113
                                        [% END %]
113
                            [% ELSE %]
114
                                    </span>
114
                                [% IF restriction.comment %]
115
                                    <span class="restriction_detail"> [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [%- restriction.comment | html_line_break -%][%- END -%] </span>
115
                                    with the explanation: <br />
116
                                </div>
116
                                    <span class="restriction_detail"> [%- IF restriction.comment -%][%- restriction.comment | html_line_break -%][%- END -%] </span>
117
                            [% END %]
117
                                [% ELSE %]
118
                        [% END %] </em
118
                                    <span class="restriction_detail"></span>
119
                    ><br />
119
                                [% END %]
120
                            [% END %] </em
121
                        ><br />
122
                    </div>
120
                [% END %]
123
                [% END %]
121
                <a class="btn btn-xs btn-default" href="#reldebarments-tab" onclick="(new bootstrap.Tab($('#reldebarments-tab'))).show()"><i class="fa fa-ban"></i> View restrictions</a>
124
                <a class="btn btn-xs btn-default" href="#reldebarments-tab" onclick="(new bootstrap.Tab($('#reldebarments-tab'))).show()"><i class="fa fa-ban"></i> View restrictions</a>
122
            </li>
125
            </li>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-19 / +21 lines)
Lines 55-77 Link Here
55
                                    Comment:<br />
55
                                    Comment:<br />
56
                                    <span id="userdebarred_comment">
56
                                    <span id="userdebarred_comment">
57
                                        <strong>
57
                                        <strong>
58
                                            [% IF debarred_comment.search('OVERDUES_PROCESS') %]
58
                                            [% FOR restriction IN logged_in_user.restrictions %]
59
                                                Restriction added by overdues process [% debarred_comment.remove('OVERDUES_PROCESS ') | html_line_break %]
59
                                                <div class="patron_restriction">
60
                                            [% ELSE %]
60
                                                    [%- restriction.type.display_text | html -%]
61
                                                [% FOR restriction IN logged_in_user.restrictions %]
61
                                                    [% IF restriction.comment.search('OVERDUES_PROCESS') %]
62
                                                    <div class="patron_restriction">
62
                                                        Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | html_line_break %]
63
                                                        [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]
63
                                                    [% ELSE %]
64
                                                        [%- IF restriction.comment -%]
64
                                                            : <span class="restriction_comment">[% restriction.comment | html_line_break %]</span>, frozen until:
65
                                                            : <span class="restriction_comment">[% restriction.comment | html_line_break %]</span>, frozen until:
65
                                                            <span class="restriction_expiration">
66
                                                        [% ELSE %]
66
                                                                [%- IF restriction.expiration -%]
67
                                                            , frozen until:
67
                                                                    [%- restriction.expiration | $KohaDates -%]
68
                                                                [%- ELSE -%]
69
                                                                    <strong>Indefinite</strong>
70
                                                                [%- END -%]
71
                                                            </span>
72
                                                        [% END %]
68
                                                        [% END %]
73
                                                    </div>
69
                                                        <span class="restriction_expiration">
74
                                                [% END %]
70
                                                            [%- IF restriction.expiration -%]
71
                                                                [%- restriction.expiration | $KohaDates -%]
72
                                                            [%- ELSE -%]
73
                                                                <strong>Indefinite</strong>
74
                                                            [%- END -%]
75
                                                        </span>
76
                                                    [% END %]
77
                                                </div>
75
                                            [% END %]
78
                                            [% END %]
76
                                        </strong>
79
                                        </strong>
77
                                    </span>
80
                                    </span>
Lines 273-281 Link Here
273
                                                                [% END %]
276
                                                                [% END %]
274
                                                            </select>
277
                                                            </select>
275
                                                            [% IF at_least_one_library_not_available_for_pickup %]
278
                                                            [% IF at_least_one_library_not_available_for_pickup %]
276
                                                                <div class="at_least_one_library_not_available_note"
279
                                                                <div class="at_least_one_library_not_available_note">
277
                                                                    >Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items</div
280
                                                                    Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
278
                                                                >
281
                                                                </div>
279
                                                            [% END %]
282
                                                            [% END %]
280
                                                        [% END # / UNLESS bibitemloo.holdable %]
283
                                                        [% END # / UNLESS bibitemloo.holdable %]
281
                                                    </li>
284
                                                    </li>
282
- 

Return to bug 39498