From 9d24ed8e2461b0acfb3efceec2236fd02cd171c4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 21 Apr 2022 11:02:54 +0000 Subject: [PATCH] Bug 30577: [21.11.x] Move item specific pickup locations to the left When placing holds, staff will set the pickup location at the top, choose an item, then place the hold. It is easy not to notice the item specific locations dropdown. This patch moves it in line with the other selction areas on the request screen. To test: 1 - Find a record on staff client, place hold 2 - Select a patron to load the request screen 3 - Note the location dropdown for next available hold 4 - Note the item specific locations on the far right 5 - Apply patch 6 - Reload the page 7 - Note the item specific location dropdowns are now moved to the left 8 - Place the hold, verify it works with the dropdowns 9 - Verify title levelholds still work as expected 10 - Verify multi-holds still work Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Rebecca Coert Signed-off-by: Martin Renvoize Bug 30577: Fix a missing closing tag This didn't affect table display, but when there was a biblioloo.warn we were not closing the first tag Confirm multi-holds table loads correctly when one (or more) records cannot be held Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Rebecca Coert --- .../prog/en/modules/reserve/request.tt | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 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 13285130c1..e89b809cb8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -600,6 +600,7 @@ Hold + Allowed pickup locations [% IF ( item_level_itypes ) %] Item type [% END %] @@ -615,7 +616,6 @@ Vol no. [% END %] Information - Allowed pickup locations @@ -673,6 +673,18 @@ [% END # /IF itemloo.force_hold_level %] + + [% IF (itemloo.pickup_locations_count > 0) %] + + [% END %] + [% IF ( item_level_itypes ) %] [% UNLESS ( noItemTypeImages ) %] @@ -762,18 +774,6 @@ Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %]) [% END %] - - [% IF (itemloo.pickup_locations_count > 0) %] - - [% END %] - [% END # / UNLESS itemloo.hide %] [% END # /FOREACH itemloo %] @@ -794,13 +794,13 @@ + [% UNLESS ( item_level_itypes ) %] [% END %] - [% FOREACH biblioloo IN biblioloop %] [% IF ( biblioloo.warn ) %] @@ -810,9 +810,23 @@ [% END %] + [% END %] + + - [% END # /FOREACH biblioloo %]
 Pickup location TitleItem typePriority InformationPickup location
[% UNLESS ( biblioloo.warn ) %] - - + [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %] + + [% END %] +
  • @@ -864,20 +878,6 @@ [% END %] [% END %]
- [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %] - - [% END %] -
-- 2.30.2