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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-9 / +13 lines)
Lines 81-94 Link Here
81
                    until [% userdebarreddate | $KohaDates %]
81
                    until [% userdebarreddate | $KohaDates %]
82
                [% END %]
82
                [% END %]
83
83
84
                [% IF ( debarredcomment ) %]
85
                    with the explanation: <br />
86
                    <em>
84
                    <em>
87
                        [% IF debarredcomment.search('OVERDUES_PROCESS') %]
88
                            Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
89
                        [% ELSE %]
90
                            [% FOREACH restriction IN patron.restrictions %]
85
                            [% FOREACH restriction IN patron.restrictions %]
91
                                <div class="[% restriction.type.code | lower | html %]_restriction">
86
                                <div class="[% restriction.type.code | lower | html %]_restriction">
87
                                    [%- restriction.type.display_text | html -%]: 
92
                                    <span class="restriction_expiration">
88
                                    <span class="restriction_expiration">
93
                                        [% IF restriction.expiration %]
89
                                        [% IF restriction.expiration %]
94
                                            [% restriction.expiration | $KohaDates %]
90
                                            [% restriction.expiration | $KohaDates %]
Lines 96-107 Link Here
96
                                            <strong>Indefinite</strong>
92
                                            <strong>Indefinite</strong>
97
                                        [% END %]
93
                                        [% END %]
98
                                    </span>
94
                                    </span>
99
                                    <span class="restriction_detail"> [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [%- restriction.comment | html_line_break -%][%- END -%] </span>
95
                                    [% IF restriction.comment.search('OVERDUES_PROCESS') %]
96
                                        Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
97
                                    [% ELSE %]
98
                                    [% IF restriction.comment %]
99
                                        with the explanation: <br />
100
                                        <span class="restriction_detail"> [%- IF restriction.comment -%][%- restriction.comment | html_line_break -%][%- END -%] </span>
101
                                    [% ELSE %]
102
                                        <span class="restriction_detail"></span>
103
                                    [% END %]
104
                                [% END %]
100
                                </div>
105
                                </div>
101
                            [% END %]
106
                            [% END %]
102
                        [% END %] </em
107
                    </em><br />
103
                    ><br />
108
104
                [% END %]
105
                <a class="btn btn-xs btn-default" href="#reldebarments-tab" onclick="$('#reldebarments-tab').click()"><i class="fa fa-ban"></i> View restrictions</a>
109
                <a class="btn btn-xs btn-default" href="#reldebarments-tab" onclick="$('#reldebarments-tab').click()"><i class="fa fa-ban"></i> View restrictions</a>
106
            </li>
110
            </li>
107
            <!-- /.blocker -->
111
            <!-- /.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