From 05ef470ecbd2eaccf1577f07ed9e5f750fcd931a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 14 Dec 2015 09:32:50 +0000 Subject: [PATCH] Bug 15357: Display existing holds even if no items exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If all the items have been deleted for a record and holds exist, the holds are not displayed. You are not able to delete the items from the record detail page, but you can from the items page. Test plan: 1 - Place 1 or more title level holds on a record. 2 - Delete each item individually. 3 - Note that you see the number of holds on the record details page With this patch, that holds are accessible via the holds tab. Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer Signed-off-by: Brendan A Gallagher (cherry picked from commit 0e4b703d239551207ca72c5b201475418c7cfd9c) Signed-off-by: Julian Maurice (cherry picked from commit 2903bc2909180d3f021f7caf2c1181b2a00c5b2f) Signed-off-by: Frédéric Demians --- .../intranet-tmpl/prog/en/modules/reserve/request.tt | 10 +++++----- 1 file changed, 5 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 80be359044..c909341907 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -227,8 +227,9 @@ function checkMultiHold() { [% ELSE %] Cannot place hold: this record has no items attached. [% END %] - -[% ELSE %] + +[% END %] + [% IF ( messagetransfert ) %]

Hold found for ([% nextreservtitle %]), please transfer

@@ -246,7 +247,7 @@ function checkMultiHold() {

Confirm holds

[% END %] - [% UNLESS ( borrowernumber ) %] + [% UNLESS borrowernumber OR noitems %] [% IF ( messageborrower ) %]

Patron not found

No patron with this name, please, try another

[% END %] @@ -295,7 +296,7 @@ function checkMultiHold() { [% END %] - [% ELSE %] + [% ELSIF NOT noitems %] [% IF ( maxreserves || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
@@ -841,7 +842,6 @@ function checkMultiHold() { [% END %] [% END %] -[% END %]
-- 2.39.5