From e61c8356954d231a322c82dba0cfbca5c9ce8a56 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 21 Apr 2022 11:02:54 +0000 Subject: [PATCH] Bug 30577: 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 Signed-off-by: Fridolin Somers --- .../prog/en/modules/reserve/request.tt | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 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 aac0e8fdfd..ce914d382a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -597,6 +597,7 @@ Hold + Allowed pickup locations [% IF Koha.Preference('item-level_itypes') %] Item type [% END %] @@ -612,7 +613,6 @@ Vol no. [% END %] Information - Allowed pickup locations @@ -670,6 +670,18 @@ [% END # /IF force_hold_level %] + + [% IF (itemloo.pickup_locations_count > 0) %] + + [% END %] + [% IF Koha.Preference('item-level_itypes') %] [% UNLESS ( noItemTypeImages ) %] @@ -759,18 +771,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 %] @@ -790,13 +790,13 @@ + [% UNLESS Koha.Preference('item-level_itypes') %] [% END %] - [% FOREACH biblioloo IN biblioloop %] [% IF ( biblioloo.warn ) %] @@ -809,6 +809,20 @@ [% END %] + - [% END # /FOREACH biblioloo %]
 Pickup location TitleItem typePriority InformationPickup location
+ [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %] + + [% END %] +
  • @@ -861,20 +875,6 @@ [% END %] [% END %]
- [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %] - - [% END %] -
-- 2.39.5