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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-9 / +12 lines)
Lines 97-110 Link Here
97
                    until [% userdebarreddate | $KohaDates %]
97
                    until [% userdebarreddate | $KohaDates %]
98
                [% END %]
98
                [% END %]
99
99
100
                [% IF ( debarredcomment ) %]
101
                    with the explanation: <br />
102
                    <em>
100
                    <em>
103
                        [% IF debarredcomment.search('OVERDUES_PROCESS') %]
104
                            Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
105
                        [% ELSE %]
106
                            [% FOREACH restriction IN patron.restrictions %]
101
                            [% FOREACH restriction IN patron.restrictions %]
107
                                <div class="[% restriction.type.code | lower | html %]_restriction">
102
                                <div class="[% restriction.type.code | lower | html %]_restriction">
103
                                    [%- restriction.type.display_text | html -%]:
108
                                    <span class="restriction_expiration">
104
                                    <span class="restriction_expiration">
109
                                        [% IF restriction.expiration %]
105
                                        [% IF restriction.expiration %]
110
                                            [% restriction.expiration | $KohaDates %]
106
                                            [% restriction.expiration | $KohaDates %]
Lines 112-123 Link Here
112
                                            <strong>Indefinite</strong>
108
                                            <strong>Indefinite</strong>
113
                                        [% END %]
109
                                        [% END %]
114
                                    </span>
110
                                    </span>
115
                                    <span class="restriction_detail"> [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [%- restriction.comment | html_line_break -%][%- END -%] </span>
111
                                    [% IF restriction.comment.search('OVERDUES_PROCESS') %]
112
                                        Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
113
                                    [% ELSE %]
114
                                        [% IF restriction.comment %]
115
                                            with the explanation: <br />
116
                                            <span class="restriction_detail"> [%- IF restriction.comment -%][%- restriction.comment | html_line_break -%][%- END -%] </span>
117
                                        [% ELSE %]
118
                                            <span class="restriction_detail"></span>
119
                                        [% END %]
120
                                    [% END %]
116
                                </div>
121
                                </div>
117
                            [% END %]
122
                            [% END %]
118
                        [% END %] </em
123
                    </em><br />
119
                    ><br />
120
                [% 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>
123
            <!-- /.blocker -->
126
            <!-- /.blocker -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-14 / +16 lines)
Lines 55-75 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') %]
59
                                                Restriction added by overdues process [% debarred_comment.remove('OVERDUES_PROCESS ') | html_line_break %]
60
                                            [% ELSE %]
61
                                                [% FOR restriction IN logged_in_user.restrictions %]
58
                                                [% FOR restriction IN logged_in_user.restrictions %]
62
                                                    <div class="patron_restriction">
59
                                                    <div class="patron_restriction">
63
                                                        [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]
60
                                                        [%- restriction.type.display_text | html -%]
64
                                                            : <span class="restriction_comment">[% restriction.comment | html_line_break %]</span>, frozen until:
61
                                                            [% IF restriction.comment.search('OVERDUES_PROCESS') %]
65
                                                            <span class="restriction_expiration">
62
                                                                Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | html_line_break %]
66
                                                                [%- IF restriction.expiration -%]
63
                                                            [% ELSE %]
67
                                                                    [%- restriction.expiration | $KohaDates -%]
64
                                                            [%- IF restriction.comment -%]
68
                                                                [%- ELSE -%]
65
                                                                : <span class="restriction_comment">[% restriction.comment | html_line_break %]</span>, frozen until:
69
                                                                    <strong>Indefinite</strong>
66
                                                            [% ELSE %]
70
                                                                [%- END -%]
67
                                                                , frozen until:
71
                                                            </span>
68
                                                            [% END %]
72
                                                        [% END %]
69
                                                                <span class="restriction_expiration">
70
                                                                    [%- IF restriction.expiration -%]
71
                                                                        [%- restriction.expiration | $KohaDates -%]
72
                                                                    [%- ELSE -%]
73
                                                                        <strong>Indefinite</strong>
74
                                                                    [%- END -%]
75
                                                                </span>
73
                                                    </div>
76
                                                    </div>
74
                                                [% END %]
77
                                                [% END %]
75
                                            [% END %]
78
                                            [% END %]
76
- 

Return to bug 39498