Koha/circ
Jonathan Druart fcf3ce3b73 Bug 29230: Add Koha::Patron->messages
Add methods to return the messages attached to a patron.

It will add the capability to access them from notice templates.

Test plan:
Define some messages for a given patron
Go to the circulation page of the patron and confirm that they are still
displayed

Test the notice templates:
Add to HOLD_SLIP the following content
"""
[% SET messages = borrower.messages %]
[% IF messages.count %]
Messages:
<ul>
  [% FOR m IN messages.search( message_type => 'L' ) %]
    <li>[% m.message %]</li>
  [% END %]
</ul>
[% END %]
"""

To display all the messages from staff ('L')

Adapt following your needs.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-02-09 22:01:36 -10:00
..
add_message.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
article-request-slip.pl Bug 27949: Allow multiple article requests print slip 2021-10-18 11:28:41 +02:00
article-requests.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
bookcount.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
branchoverdues.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
branchtransfers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
checkout-notes.pl Bug 29380: Correct table name in joins to prevent errors 2021-11-03 15:40:52 +01:00
circulation-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
circulation.pl Bug 29230: Add Koha::Patron->messages 2022-02-09 22:01:36 -10:00
del_message.pl Bug 29903: Prevent messages to be deleted from unauthorised users 2022-02-02 21:05:29 -10:00
hold-transfer-slip.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
offline-mf.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
offline.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
on-site_checkouts.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdue.pl Bug 11750: (QA follow-up) Remove unconditional warn 2022-01-19 12:13:49 -10:00
pendingreserves.pl Bug 29786: Select only specific items for item level holds 2022-01-17 14:55:56 -10:00
renew.pl Bug 29380: Correct table name in joins to prevent errors 2021-11-03 15:40:52 +01:00
request-article.pl Bug 27946: Add UI handling of AR fees 2022-01-28 11:09:07 -10:00
reserveratios.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
returns.pl Bug 29865: Fix duplicate includes in circ/returns.pl 2022-01-21 21:34:51 -10:00
set-library.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
transfer-slip.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
transfers_to_send.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
transferstoreceive.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
view_holdsqueue.pl Bug 29015: Add options for itemtype, collection, and shelving location to view_holdsqueue.pl 2021-11-03 15:40:52 +01:00
waitingreserves.pl Bug 23678: Allow cancel holds in bulk 2021-10-01 16:02:58 +02:00
ysearch.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00