From ce4e4ba516a568898d51309a2d5e4967c596f978 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: Michelle Signed-off-by: Brendan Lawlor Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer --- 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 ad0a318eda..cf4ee54190 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1614,6 +1614,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 e93a3a612f..9717609a1c 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 @@ -78,6 +78,7 @@ Title Current library + Home library Collection Item type Call number @@ -101,6 +102,11 @@ + + + + + @@ -184,6 +190,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.39.5