From 07f58e4b6ad09d8b184c7b33592f30a0cf2390b7 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. --- .../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 eb1cd3c..3fd9532 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -268,10 +268,11 @@ [% IF ( OpacHoldNotes ) %]
  • - - - - + + [% IF bibitemloo.reqholdnotes %] + Please enter additional information about the requested item: + [% END %] +
  • [% END # / IF OpacHoldNotes %] @@ -423,10 +424,6 @@