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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-99 / +98 lines)
Lines 24-34 Link Here
24
                <span class="circ-hlt">Expiration:</span>
24
                <span class="circ-hlt">Expiration:</span>
25
                <span>Patron's card expires on [% patron.dateexpiry | $KohaDates %].</span>
25
                <span>Patron's card expires on [% patron.dateexpiry | $KohaDates %].</span>
26
                [% IF ( moremember ) %]
26
                [% IF ( moremember ) %]
27
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=member&amp;reregistration=y">Renew</a> or
27
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=member&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=member&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
28
                    <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=member&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
29
                [% ELSE %]
28
                [% ELSE %]
30
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=circ&amp;reregistration=y">Renew</a> or
29
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=circ&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
31
                    <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=circ&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
32
                [% END %]
30
                [% END %]
33
            </li>
31
            </li>
34
        [% END %]
32
        [% END %]
Lines 47-57 Link Here
47
                    <span>Patron's card expired on [% expiry | $KohaDates %]</span>
45
                    <span>Patron's card expired on [% expiry | $KohaDates %]</span>
48
                [% END %]
46
                [% END %]
49
                [% IF ( moremember ) %]
47
                [% IF ( moremember ) %]
50
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=member&amp;reregistration=y">Renew</a> or
48
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=member&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=member&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
51
                    <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=member&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
52
                [% ELSE %]
49
                [% ELSE %]
53
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=circ&amp;reregistration=y">Renew</a> or
50
                    <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=circ&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
54
                    <a href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=circ&amp;borrowernumber=[% patron.borrowernumber | uri %]">Edit details</a>
55
                [% END %]
51
                [% END %]
56
            </li>
52
            </li>
57
        [% END %]
53
        [% END %]
Lines 66-72 Link Here
66
                [% IF CAN_user_borrowers_edit_borrowers %]
62
                [% IF CAN_user_borrowers_edit_borrowers %]
67
                    <span>
63
                    <span>
68
                        <a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Change password</a>
64
                        <a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Change password</a>
69
                        <span data-bs-toggle="tooltip" title="Resetting password will remove lock on account" data-bs-placement="right" class="fa fa-info-circle"> </span>
65
                        <span data-bs-toggle="tooltip" title="Resetting password will remove lock on account" data-bs-placement="right" class="fa fa-info-circle" />
66
                        or <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=circ&amp;resetloginattempts=y">Reset login attempts</a>
70
                    </span>
67
                    </span>
71
                [% END %]
68
                [% END %]
72
            </li>
69
            </li>
Lines 74-122 Link Here
74
71
75
        [% IF ( patron.gonenoaddress ) %]
72
        [% IF ( patron.gonenoaddress ) %]
76
            <li class="gonenoaddress blocker">
73
            <li class="gonenoaddress blocker">
77
                <span title="gonenoaddress flag is set in patron record"><span class="circ-hlt">Address:</span> Patron's address flagged as in doubt</span>
74
                <span title="gonenoaddress flag is set in patron record"><span class="circ-hlt">Address:</span> Patron's address flagged as in doubt</span> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;borrowernumber=[% patron.borrowernumber | uri %]&amp;step=3#memberentry_account_flags"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
78
                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;borrowernumber=[% patron.borrowernumber | uri %]&amp;step=3#memberentry_account_flags"
79
                    ><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a
80
                >
81
            </li>
75
            </li>
82
        [% END %]
76
        [% END %]
83
77
84
        [% IF ( patron.lost ) %]
78
        [% IF ( patron.lost ) %]
85
            <li class="lost blocker">
79
            <li class="lost blocker">
86
                <span title="lost flag is set in patron record"><span class="circ-hlt">Lost: </span> Patron's card is flagged as lost</span>
80
                <span title="lost flag is set in patron record"><span class="circ-hlt">Lost: </span> Patron's card is flagged as lost</span> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;borrowernumber=[% patron.borrowernumber | uri %]&amp;step=3#memberentry_account_flags"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
87
                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;borrowernumber=[% patron.borrowernumber | uri %]&amp;step=3#memberentry_account_flags"
88
                    ><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a
89
                >
90
            </li>
81
            </li>
91
        [% END %]
82
        [% END %]
92
83
93
        [% IF ( userdebarred ) %]
84
        [% IF ( userdebarred ) %]
94
            <li class="userdebarred blocker">
85
            <li class="userdebarred blocker">
95
                <span class="circ-hlt"> Restricted since [% debarredsince | $KohaDates %]:</span> Patron's account is restricted
86
                <span class="circ-hlt"> Restricted since [% debarredsince | $KohaDates %]:</span> Patron's account is restricted
87
96
                [% IF ( userdebarreddate ) %]
88
                [% IF ( userdebarreddate ) %]
97
                    until [% userdebarreddate | $KohaDates %]
89
                    until [% userdebarreddate | $KohaDates %]
98
                [% END %]
90
                [% END %]
99
91
100
                [% IF ( debarredcomment ) %]
92
                [% IF ( debarredcomment ) %]
101
                    with the explanation: <br />
93
                    with the explanation: <br/>
102
                    <em>
94
                    <em>
103
                        [% IF debarredcomment.search('OVERDUES_PROCESS') %]
95
                        [% IF debarredcomment.search('OVERDUES_PROCESS') %]
104
                            Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
96
                            Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
105
                        [% ELSE %]
97
                        [% ELSE %]
106
                            [% FOREACH restriction IN patron.restrictions %]
98
                            [% FOREACH restriction IN patron.restrictions %]
107
                                <div class="[% restriction.type.code | lower | html %]_restriction">
99
                                <div class="[% restriction.type.code | lower | html %]_restriction">
108
                                    <span class="restriction_expiration">
100
                                <span class="restriction_expiration">
109
                                        [% IF restriction.expiration %]
101
                                [% IF restriction.expiration %]
110
                                            [% restriction.expiration | $KohaDates %]
102
                                    [% restriction.expiration | $KohaDates %]
111
                                        [% ELSE %]
103
                                [% ELSE %]
112
                                            <strong>Indefinite</strong>
104
                                    <strong>Indefinite</strong>
113
                                        [% END %]
105
                                [% END %]
114
                                    </span>
106
                                </span>
115
                                    <span class="restriction_detail"> [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [%- restriction.comment | html_line_break -%][%- END -%] </span>
107
                                <span class="restriction_detail">
108
                                [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [%- restriction.comment | html_line_break -%][%- END -%]
109
                                </span>
116
                                </div>
110
                                </div>
117
                            [% END %]
111
                            [% END %]
118
                        [% END %] </em
112
                        [% END %]
119
                    ><br />
113
                    </em><br/>
120
                [% END %]
114
                [% 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>
115
                <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>
116
            </li>
Lines 125-136 Link Here
125
119
126
        [% IF ( odues ) %]
120
        [% IF ( odues ) %]
127
            <li class="odues blocker">
121
            <li class="odues blocker">
128
                <span class="circ-hlt">Overdues:</span> Patron has ITEMS OVERDUE <a href="#checkouts_panel" onclick="$('#issues-table-load-immediately').click(); $('#issues-table-load-immediately').click();">See highlighted items below </a>
122
                <span class="circ-hlt">Overdues:</span>  Patron has ITEMS OVERDUE <a href="#checkouts_panel" onclick="$('#issues-table-load-immediately').click(); $('#issues-table-load-immediately').click();">See highlighted items below </a>
129
            </li>
123
            </li>
130
        [% END %]
124
        [% END %]
131
125
132
        [% IF return_claims.count > ClaimReturnedWarningThreshold %]
126
        [% IF return_claims.count > ClaimReturnedWarningThreshold %]
133
            <li class="return_claims blocker"> <span class="circ-hlt return-claims">Return claims:</span> Patron has [% return_claims.count | html %] RETURN CLAIMS </li>
127
            <li class="return_claims blocker">
128
                <span class="circ-hlt return-claims">Return claims:</span> Patron has [% return_claims.count | html %] RETURN CLAIMS
129
            </li>
134
        [% END %]
130
        [% END %]
135
131
136
        [% IF age_limitations %]
132
        [% IF age_limitations %]
Lines 164-172 Link Here
164
        [% IF ( charges_guarantees ) %]
160
        [% IF ( charges_guarantees ) %]
165
            <li class="charges_guarantees">
161
            <li class="charges_guarantees">
166
                <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
162
                <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
167
                [% IF noissues %]
163
                    [% IF noissues %]
168
                    <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
164
                        <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
169
                [% END %]
165
                    [% END %]
170
            </li>
166
            </li>
171
        [% END %]
167
        [% END %]
172
168
Lines 181-186 Link Here
181
            </li>
177
            </li>
182
        [% END %]
178
        [% END %]
183
    </ul>
179
    </ul>
180
184
[% END # /F ( has_modifications || warndeparture... %]
181
[% END # /F ( has_modifications || warndeparture... %]
185
182
186
[% IF waiting_recalls.count %]
183
[% IF waiting_recalls.count %]
Lines 202-212 Link Here
202
                    [% IF ( w.pickup_library_id == logged_in_branchcode  ) %]
199
                    [% IF ( w.pickup_library_id == logged_in_branchcode  ) %]
203
                        <li>
200
                        <li>
204
                            <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a>
201
                            <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a>
205
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), [% IF ( w.biblio.author ) %]by [% w.biblio.author | html %][% END %]
202
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
206
                            [% IF ( w.item.itemcallnumber ) %][[% w.item.itemcallnumber | html %]][% END %]
203
                            [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
204
                            [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
207
                            <span>Recall placed on [% w.created_date | $KohaDates %].</span>
205
                            <span>Recall placed on [% w.created_date | $KohaDates %].</span>
208
                            <br />
206
                            <br />
209
                            <strong class="waitinghere"> [% SET expires_on = w.expiration_date %] Waiting here [% IF expires_on %]until [% expires_on | $KohaDates %][% END %] </strong>
207
                            <strong class="waitinghere">
208
                                [% SET expires_on = w.expiration_date %]
209
                                Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
210
                            </strong>
210
                        </li>
211
                        </li>
211
                    [% END %]
212
                    [% END %]
212
                [% END %]
213
                [% END %]
Lines 220-230 Link Here
220
                    [% IF ( w.pickup_library_id != logged_in_branchcode  ) %]
221
                    [% IF ( w.pickup_library_id != logged_in_branchcode  ) %]
221
                        <li>
222
                        <li>
222
                            <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a>
223
                            <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a>
223
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), [% IF ( w.biblio.author ) %]by [% w.biblio.author | html %][% END %]
224
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
224
                            [% IF ( w.item.itemcallnumber ) %][[% w.item.itemcallnumber | html %]][% END %]
225
                            [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
226
                            [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
225
                            <span>Recall placed on [% w.created_date | $KohaDates %].</span>
227
                            <span>Recall placed on [% w.created_date | $KohaDates %].</span>
226
                            <br />
228
                            <br />
227
                            <strong> [% SET expires_on = w.expiration_date %] Waiting at [% Branches.GetName( w.pickup_library_id ) | html %] [% IF expires_on %]until [% expires_on | $KohaDates %][% END %] </strong>
229
                            <strong>
230
                                [% SET expires_on = w.expiration_date %]
231
                                Waiting at [% Branches.GetName( w.pickup_library_id ) | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
232
                            </strong>
228
                        </li>
233
                        </li>
229
                    [% END %]
234
                    [% END %]
230
                [% END %]
235
                [% END %]
Lines 252-263 Link Here
252
                    [% IF ( w.branch.branchcode == logged_in_branchcode  ) %]
257
                    [% IF ( w.branch.branchcode == logged_in_branchcode  ) %]
253
                        <li>
258
                        <li>
254
                            <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
259
                            <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
255
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), [% IF ( w.biblio.author ) %]by [% w.biblio.author | html %][% END %]
260
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
256
                            [% IF ( w.item.itemcallnumber ) %][[% w.item.itemcallnumber | html %]][% END %]
261
                            [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
262
                            [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
257
                            <span class="holddate">Hold placed on [% w.reservedate | $KohaDates %].</span>
263
                            <span class="holddate">Hold placed on [% w.reservedate | $KohaDates %].</span>
258
                            <br />
264
                            <br />
259
                            <strong class="waitinghere"> [% SET expires_on = w.expirationdate %] Waiting here [% IF expires_on %]until [% expires_on | $KohaDates %][% END %]. </strong>
265
                            <strong class="waitinghere">
260
                            <strong class="waitingsince"> Waiting here since [% w.waitingdate | $KohaDates %]. </strong>
266
                                [% SET expires_on = w.expirationdate %]
267
                                Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %][% END %].
268
                            </strong>
269
                            <strong class="waitingsince">
270
                                Waiting here since [% w.waitingdate | $KohaDates %].
271
                            </strong>
261
                        </li>
272
                        </li>
262
                    [% END %]
273
                    [% END %]
263
                [% END %]
274
                [% END %]
Lines 271-281 Link Here
271
                    [% IF ( w.branch.branchcode != logged_in_branchcode  ) %]
282
                    [% IF ( w.branch.branchcode != logged_in_branchcode  ) %]
272
                        <li>
283
                        <li>
273
                            <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
284
                            <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
274
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), [% IF ( w.biblio.author ) %]by [% w.biblio.author | html %][% END %]
285
                            ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
275
                            [% IF ( w.item.itemcallnumber ) %][[% w.item.itemcallnumber | html %]][% END %]
286
                            [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
287
                            [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
276
                            <span>Hold placed on [% w.reservedate | $KohaDates %].</span>
288
                            <span>Hold placed on [% w.reservedate | $KohaDates %].</span>
277
                            <br />
289
                            <br />
278
                            <strong> [% SET expires_on = w.expirationdate %] Waiting at [% w.branch.branchname | html %] [% IF expires_on %]until [% expires_on | $KohaDates %][% END %] </strong>
290
                            <strong>
291
                                [% SET expires_on = w.expirationdate %]
292
                                Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
293
                            </strong>
279
                        </li>
294
                        </li>
280
                    [% END %]
295
                    [% END %]
281
                [% END %]
296
                [% END %]
Lines 290-312 Link Here
290
        <div id="curbside_pickups" class="circmessage">
305
        <div id="curbside_pickups" class="circmessage">
291
            <h4>Curbside pickups scheduled here</h4>
306
            <h4>Curbside pickups scheduled here</h4>
292
            <ul>
307
            <ul>
293
                [% FOR cp IN curbside_pickups %]
308
            [% FOR cp IN curbside_pickups %]
294
                    <li
309
                <li>On [% cp.scheduled_pickup_datetime | $KohaDates %]:
295
                        >On [% cp.scheduled_pickup_datetime | $KohaDates %]:
310
                    [% SWITCH cp.status %]
296
                        [% SWITCH cp.status %]
311
                    [% CASE 'to-be-staged' %]
297
                        [% CASE 'to-be-staged' %]
312
                        <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=to-be-staged">
298
                            <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=to-be-staged"> To be staged</a>
313
                        To be staged</a>
299
                        [% CASE 'staged-and-ready' %]
314
                    [% CASE 'staged-and-ready' %]
300
                            <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=staged-and-ready"> Staged and ready</a>
315
                        <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=staged-and-ready">
301
                        [% CASE 'patron-is-outside' %]
316
                        Staged and ready</a>
302
                            <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=patron-is-outside"> Patron is outside!</a>
317
                    [% CASE 'patron-is-outside' %]
303
                        [% CASE 'delivered' %]
318
                        <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=patron-is-outside">
304
                            <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=delivered-today"> Delivered</a>
319
                        Patron is outside!</a>
305
                        [% CASE %]
320
                    [% CASE 'delivered' %]
306
                            <span>Unknown status "[% cp.status | html %]"</span>
321
                        <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=delivered-today">
307
                        [% END %]
322
                        Delivered</a>
308
                    </li>
323
                    [% CASE %]<span>Unknown status "[% cp.status | html %]"</span>
309
                [% END %]
324
                    [% END %]
325
                </li>
326
            [% END %]
310
            </ul>
327
            </ul>
311
        </div>
328
        </div>
312
    [% END %]
329
    [% END %]
Lines 317-327 Link Here
317
        <h4>Notes</h4>
334
        <h4>Notes</h4>
318
        <ul>
335
        <ul>
319
            <li>
336
            <li>
320
                <span class="circ-hlt"> [% patron.borrowernotes | $raw | html_line_break %] </span>
337
                <span class="circ-hlt">
338
                    [% patron.borrowernotes | $raw | html_line_break %]
339
                </span>
321
            </li>
340
            </li>
322
        </ul>
341
        </ul>
323
    </div>
342
    </div> <!-- /#circnotes -->
324
    <!-- /#circnotes -->
325
[% END # /IF patron.borrowernotes %]
343
[% END # /IF patron.borrowernotes %]
326
344
327
[% IF ( patron_messages ) %]
345
[% IF ( patron_messages ) %]
Lines 338-348 Link Here
338
                        [% patron_message.message_date | $KohaDates %]
356
                        [% patron_message.message_date | $KohaDates %]
339
                        [% Branches.GetName( patron_message.branchcode ) | html %]
357
                        [% Branches.GetName( patron_message.branchcode ) | html %]
340
                        [% IF patron_message.manager_id %]
358
                        [% IF patron_message.manager_id %]
341
                            (
359
                            ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id | uri %]">[% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %]</a> )
342
                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id | uri %]"
343
                                >[% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %]</a
344
                            >
345
                            )
346
                        [% END %]
360
                        [% END %]
347
                        <em>"[% patron_message.message | html | html_line_break %]"</em>
361
                        <em>"[% patron_message.message | html | html_line_break %]"</em>
348
                        [% IF patron_message.patron_read_date %]
362
                        [% IF patron_message.patron_read_date %]
Lines 351-386 Link Here
351
                    </span>
365
                    </span>
352
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
366
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
353
                        [% IF moremember %]
367
                        [% IF moremember %]
354
                            <a
368
                            <a id="#edit_message_form_[% patron_message.message_id | html %]" class="btn btn-link edit_message" href="#edit_message_form_[% patron_message.message_id | uri %]" data-bs-target="#edit_message_form_[% patron_message.message_id | html %]" data-bs-toggle="modal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
355
                                id="#edit_message_form_[% patron_message.message_id | html %]"
356
                                class="btn btn-link edit_message"
357
                                href="#edit_message_form_[% patron_message.message_id | uri %]"
358
                                data-bs-target="#edit_message_form_[% patron_message.message_id | html %]"
359
                                data-bs-toggle="modal"
360
                                ><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a
361
                            >
362
                            <form action="/cgi-bin/koha/circ/del_message.pl" method="post">
369
                            <form action="/cgi-bin/koha/circ/del_message.pl" method="post">
363
                                [% INCLUDE 'csrf-token.inc' %]
370
                                [% INCLUDE 'csrf-token.inc' %]
364
                                <input type="hidden" name="op" value="cud-delete" />
371
                                <input type="hidden" name="op" value="cud-delete">
365
                                <input type="hidden" name="message_id" value="[% patron_message.message_id | html %]" />
372
                                <input type="hidden" name="message_id" value="[% patron_message.message_id | html %]">
366
                                <input type="hidden" name="borrowernumber" value="[% patron_message.borrowernumber | html %]" />
373
                                <input type="hidden" name="borrowernumber" value="[% patron_message.borrowernumber | html %]">
367
                                <input type="hidden" name="from" value="moremember" />
374
                                <input type="hidden" name="from" value="moremember">
368
                                <button type="submit" class="btn btn-link delete_message"><i class="fa fa-trash-can"></i> Delete</button>
375
                                <button type="submit" class="btn btn-link delete_message"><i class="fa fa-trash-can"></i> Delete</button>
369
                            </form>
376
                            </form>
370
                        [% ELSE %]
377
                        [% ELSE %]
371
                            <a
378
                            <a id="#edit_message_form_[% patron_message.message_id | html %]" class="btn btn-link edit_message" href="#edit_message_form_[% patron_message.message_id | uri %]" data-bs-target="#edit_message_form_[% patron_message.message_id | html %]" data-bs-toggle="modal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
372
                                id="#edit_message_form_[% patron_message.message_id | html %]"
373
                                class="btn btn-link edit_message"
374
                                href="#edit_message_form_[% patron_message.message_id | uri %]"
375
                                data-bs-target="#edit_message_form_[% patron_message.message_id | html %]"
376
                                data-bs-toggle="modal"
377
                                ><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a
378
                            >
379
                            <form action="/cgi-bin/koha/circ/del_message.pl" method="post">
379
                            <form action="/cgi-bin/koha/circ/del_message.pl" method="post">
380
                                [% INCLUDE 'csrf-token.inc' %]
380
                                [% INCLUDE 'csrf-token.inc' %]
381
                                <input type="hidden" name="op" value="cud-delete" />
381
                                <input type="hidden" name="op" value="cud-delete">
382
                                <input type="hidden" name="message_id" value="[% patron_message.message_id | html %]" />
382
                                <input type="hidden" name="message_id" value="[% patron_message.message_id | html %]">
383
                                <input type="hidden" name="borrowernumber" value="[% patron_message.borrowernumber | html %]" />
383
                                <input type="hidden" name="borrowernumber" value="[% patron_message.borrowernumber | html %]">
384
                                <button type="submit" class="btn btn-link delete_message"><i class="fa fa-trash-can"></i> Delete</button>
384
                                <button type="submit" class="btn btn-link delete_message"><i class="fa fa-trash-can"></i> Delete</button>
385
                            </form>
385
                            </form>
386
                        [% END %]
386
                        [% END %]
Lines 389-396 Link Here
389
            [% END %]
389
            [% END %]
390
        </ul>
390
        </ul>
391
        <a id="addnewmessageLabel" data-bs-target="#add_message_form" class="btn btn-link" data-bs-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
391
        <a id="addnewmessageLabel" data-bs-target="#add_message_form" class="btn btn-link" data-bs-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
392
    </div>
392
    </div> <!-- /#messages -->
393
    <!-- /#messages -->
394
393
395
    [% FOREACH pm IN patron_messages %]
394
    [% FOREACH pm IN patron_messages %]
396
        <div id="edit_message_form_[% pm.message_id | html %]" class="modal" tabindex="-1" aria-labelledby="#edit_message_form_[% patron_message.message_id | html %]" aria-hidden="true">
395
        <div id="edit_message_form_[% pm.message_id | html %]" class="modal" tabindex="-1" aria-labelledby="#edit_message_form_[% patron_message.message_id | html %]" aria-hidden="true">
Lines 398-405 Link Here
398
                <div class="modal-content">
397
                <div class="modal-content">
399
                    <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="edit_message_form" name="message_f">
398
                    <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="edit_message_form" name="message_f">
400
                        [% INCLUDE 'csrf-token.inc' %]
399
                        [% INCLUDE 'csrf-token.inc' %]
401
                        <input type="hidden" name="op" value="cud-edit_message" />
400
                        <input type="hidden" name="op" value="cud-edit_message">
402
                        <input type="hidden" name="message_id" value="[% pm.message_id | html %]" />
401
                        <input type="hidden" name="message_id" value="[% pm.message_id | html %]"/>
403
                        <div class="modal-header">
402
                        <div class="modal-header">
404
                            <h1 class="modal-title">Edit message</h1>
403
                            <h1 class="modal-title">Edit message</h1>
405
                        </div>
404
                        </div>
Lines 423-429 Link Here
423
                                </label>
422
                                </label>
424
                            </div>
423
                            </div>
425
                            <div class="form-group">
424
                            <div class="form-group">
426
                                <textarea rows="3" class="modal-textarea" name="borrower_message" id="edit_borrower_message">[% pm.message | html %]</textarea>
425
                                <textarea rows="3" class="modal-textarea" name="borrower_message" id="edit_borrower_message" >[% pm.message | html %]</textarea>
427
                            </div>
426
                            </div>
428
                        </div>
427
                        </div>
429
                        <div class="modal-footer">
428
                        <div class="modal-footer">
(-)a/members/setstatus.pl (-5 / +8 lines)
Lines 35-44 my $input = CGI->new; Link Here
35
35
36
my ($loggedinuserid) = checkauth( $input, 0, { borrowers => 'edit_borrowers' }, 'intranet' );
36
my ($loggedinuserid) = checkauth( $input, 0, { borrowers => 'edit_borrowers' }, 'intranet' );
37
37
38
my $destination    = $input->param("destination") || '';
38
my $destination        = $input->param("destination") || '';
39
my $borrowernumber = $input->param('borrowernumber');
39
my $borrowernumber     = $input->param('borrowernumber');
40
my $status         = $input->param('status');
40
my $status             = $input->param('status');
41
my $reregistration = $input->param('reregistration') || '';
41
my $reregistration     = $input->param('reregistration')     || '';
42
my $resetloginattempts = $input->param('resetloginattempts') || '';
42
43
43
my $dbh = C4::Context->dbh;
44
my $dbh = C4::Context->dbh;
44
my $dateexpiry;
45
my $dateexpiry;
Lines 64-69 if ( $logged_in_user->can_see_patron_infos($patron) ) { Link Here
64
                $_->rethrow();
65
                $_->rethrow();
65
            }
66
            }
66
        }
67
        }
68
        $dateexpiry = $patron->renew_account;
69
    } elsif ( $resetloginattempts eq 'y' ) {
70
        $patron->login_attempts(0)->store;
67
    } else {
71
    } else {
68
        my $sth = $dbh->prepare("UPDATE borrowers SET debarred = ?, debarredcomment = '' WHERE borrowernumber = ?");
72
        my $sth = $dbh->prepare("UPDATE borrowers SET debarred = ?, debarredcomment = '' WHERE borrowernumber = ?");
69
        $sth->execute( $status, $borrowernumber );
73
        $sth->execute( $status, $borrowernumber );
70
- 

Return to bug 37512