From fa765e6a8f14c76ba7cbd0b5e71ca86cbe0ce406 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 Content-Type: text/plain; charset=utf-8 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 c0dd300..85d2d8a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -265,10 +265,11 @@ [% IF ( OpacHoldNotes ) %]
  • - - - - + + [% IF bibitemloo.reqholdnotes %] + Please enter additional information about the requested item: + [% END %] +
  • [% END # / IF OpacHoldNotes %] @@ -418,10 +419,6 @@