Bug 27899: Missing description for libraryNotPickupLocation on request.pl
authorOwen Leonard <oleonard@myacpl.org>
Mon, 15 Mar 2021 14:07:26 +0000 (14:07 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 31 May 2021 14:44:10 +0000 (16:44 +0200)
commit94f19f26fffa56af03f3832666611443147b5a77
treedcc888df1eb21bba2ac01f249ca81a91985a2a8f
parent0adb6d2eb6dafaf5598d57ed5241294b16a40283
Bug 27899: Missing description for libraryNotPickupLocation on request.pl

This patch adds text to the holds template in the staff client so that
if a particular item is at a library which isn't a hold location the
error message is descriptive.

To test, apply the patch and go to Administration -> Libraries.

 - Change one of your libraries so that "Pickup location" is set to
   "No."
 - Locate a title in the catalog which has an item at that location.
 - The "pick up at" list will exclude the library so and additional steps
     must be taken to get the message
 - Select a patron and set their library to the one we can't pick up at.
 - Start the process of placing a hold on the title.
 - After selecting the patron to place the hold for, look at the table of
   items under "Place a hold on a specific item."
 - The item located at the library you modified should show an error
   message in the "Hold" column, "Library is not a pickup location."

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9cc6fca618707898117363971460833ed3684539)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt