From e8d2236fb703d8b39872c8a0b18624f32dcabc32 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 15 Dec 2014 14:10:56 +0100 Subject: [PATCH] Bug 9743: Allow customization for making hold notes required Content-Type: text/plain; charset=utf-8 This patch removes some unused code in the reserves template for mandatory hold notes reasons. It adds a simpler approach: if you define a custom routine for required hold notes, the textarea in the template may turn into a required field, otherwise it will not. Test plan: [1] Without adding a routine in opac-reserve: Place a hold on one and on more biblio numbers. Verify that hold notes are not required in any case. [2] Add the following simple routine to opac-reserve: sub _reqholdnotes { 1; } Verify that hold notes are always required now. --- .../opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 22 +++++-------------- opac/opac-reserve.pl | 5 +++- 2 files changed, 10 insertions(+), 17 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 6558e6e..2d38508 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -236,9 +236,12 @@
  • - - - + [% IF bibitemloo.reqholdnotes %] + Please enter additional information on the part/volume/serial issue you request: + + [% ELSE %] + + [% END %]
  • [% END # / IF OpacHoldNotes %] @@ -403,10 +406,6 @@