From 11f0cc3b28c9762f6542e91d0f407c6a6685f6c3 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 13 Dec 2023 20:58:01 +0000 Subject: [PATCH] Bug 35564: Add homebranch to the holds queue report To test: 1 - Place some holds in your system 2 - perl misc/cronjobs/holds/build_holdsqueue.pl 3 - View the holds queue 4 - Note there is no holding branch column 5 - APPLY PATCH 6 - Reload and try again 7 - Note the column is not there 8 - Click column setting gear to expose the column 9 - Go to Admin -> Table settings and make sure you can expose the column via Table settings Signed-off-by: Brendan Lawlor --- admin/columns_settings.yml | 3 +++ .../intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index dd6396671f..3a90860050 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1612,6 +1612,9 @@ modules: - columnname: holdingbranch is_hidden: 1 + - + columnname: homebranch + is_hidden: 1 - columnname: collection - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt index d94d4c347d..86855ee1b7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ -77,6 +77,7 @@ Title Current library + Home library Collection Item type Call number @@ -100,6 +101,11 @@ + + + + + @@ -185,6 +191,7 @@

[% Branches.GetName( itemsloo.holdingbranch ) | html %] + [% Branches.GetName( itemsloo.item.homebranch ) | html %] [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemsloo.item.ccode ) | html %] [% ItemTypes.GetDescription( itemsloo.item.effective_itemtype ) | html %] [% IF ( itemsloo.item.location ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => itemsloo.item.location ) | html %] [% END %][% itemsloo.item.itemcallnumber | html %] -- 2.30.2