From 446f5c49c29603afa837fb883c8fbcc218c0bad7 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 15 Dec 2014 14:10:56 +0100 Subject: [PATCH] Bug 15545: Use IsHoldNoteRequired in opac-reserve.pl This patch implements use of the new Reserves routine IsHoldNoteRequired, making it possible to require a note when placing a hold. Only a very small change in opac-reserve.pl is needed. As well as corresponding changes in the template. I am removing some unused template code related to a former approach. Test plan: [1] Disable UseKohaPlugins, enable OpacHoldNotes. [2] Place a hold on a serial record (leader pos 7 == s). Verify that the hold note is not required. [3] Enable UseKohaPlugins. Install the Rijks_HoldNoteRequired plugins. (Go to plugins/plugins-home.pl and upload Rijks_HoldNoteRequired.kpz. This file can be found as an attachment to this BZ report.) [4] Again place a hold on a serial record. The hold note should be required. Signed-off-by: Liz Rea --- .../opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 36 ++++++++++------------ opac/opac-reserve.pl | 4 ++- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 6769851..56385a3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -276,10 +276,11 @@ [% IF ( OpacHoldNotes ) %]
  • - - - - + + [% IF bibitemloo.reqholdnotes %] + Please enter additional information about the requested item: + [% END %] +
  • [% END # / IF OpacHoldNotes %] @@ -431,10 +432,6 @@