From f3316db4dfff955c940e63e31f186bf3b2a02297 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Wed, 27 Jan 2016 16:48:02 +0100 Subject: [PATCH] Bug 14695 - Warn librarian if max_holds_per_record is reached Signed-off-by: Jason M. Burds Signed-off-by: Benjamin Rokseth --- .../prog/en/modules/reserve/request.tt | 14 +++++++++++--- reserve/request.pl | 11 +++++++++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index e4e54677e2..b5fca88114 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -253,7 +253,7 @@ function checkMultiHold() { [% ELSIF NOT noitems %] -[% IF ( exceeded_maxreserves || alreadyreserved || none_available || alreadypossession || ageRestricted ) %] +[% IF ( exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
[% UNLESS ( multi_hold ) %] @@ -261,6 +261,8 @@ function checkMultiHold() {
    [% IF ( exceeded_maxreserves ) %]
  • Too many holds: [% borrowerfirstname %] [% borrowersurname %] can only place a maximum of [% maxreserves %] total holds.
  • + [% ELSIF ( exceeded_holds_per_record ) %] +
  • Too many holds for this record: [% borrowerfirstname %] [% borrowersurname %] can only place a maximum of [% max_holds_for_record %] hold(s) on this record.
  • [% ELSIF ( alreadypossession ) %]
  • [% borrowerfirstname %] [% borrowersurname %] is already in possession of one itemCannot place hold on some items [% IF ( exceeded_maxreserves ) %]
  • Too many holds: [% borrowerfirstname %] [% borrowersurname %] can place [% new_reserves_allowed %] of the requested [% new_reserves_count %] holds for a maximum of [% maxreserves %] total holds.
  • + [% ELSIF ( exceeded_holds_per_record ) %] + [% FOREACH biblioloo IN biblioloop %] + [% IF (biblioloo.tooManyHoldsForThisRecord) %] +
  • Too many holds for [% biblioloo.title %]: [% borrowerfirstname %] [% borrowersurname %] can only place a maximum of [% max_holds_for_record %] hold(s) on this record.
  • + [% END %] + [% END %] [% END %] [% END %] @@ -406,12 +414,12 @@ function checkMultiHold() { - [% IF max_holds_for_record > 1 %] + [% IF remaining_holds_for_record > 1 %] [% SET count = 1 %]