Bug 22134: (follow-up) Simplify check for expired patron
authorOwen Leonard <oleonard@myacpl.org>
Fri, 18 Jan 2019 13:05:55 +0000 (13:05 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 28 Jan 2019 14:51:41 +0000 (14:51 +0000)
commit0e7b449ca8596fe38ac9c32048c07324e5f5ea13
tree9af3010cd41b05c630bd98c7ed14337c7c0d6160
parente193254e357e52f87e10f9b03e350781d2613062
Bug 22134: (follow-up) Simplify check for expired patron

This patch move the check for "is_expired" to the template and removes
unnecessary code from the script.

The page now correctly handles messages for patrons who are about to
expire, as defined in the NotifyBorrowerDeparture preference.

To test, apply the patch and locate a patron record which is expired.

 - On the patron detail page (members/moremember.pl) you should see a
   message at the top of the page.
 - In the body of the page, next to the expiration date information, you
   should see similar message and links.

Select a patron who will expire within the period defined in
NotifyBorrowerDeparture.

 - On the patron detail page you should see a message at the top of the page.
 - In the body of the page, next to the expiration date information, you
   should see similar message and links.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
members/moremember.pl