From 757ebbc1700af32eab1bde653b29f7b16428cf1c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Feb 2019 14:00:37 +0000 Subject: [PATCH] Bug 8775: Add collection code to lost report This patch adds a column for collection code to the lost items report. To test, apply the patch and run the lost items report. You should see a collection code column. Test column configuration for this table: Go to Administration -> Configure columns. Confirm that the "collection_code" column can be configured and that configuration choices are applied correctly. Signed-off-by: Bin Wen Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- admin/columns_settings.yml | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 30f8514143..409b83b581 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -618,6 +618,8 @@ modules: columnname: library - columnname: itemtype + - + columnname: collection_code - columnname: current_location - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt index d30dae83ca..640783a096 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt @@ -83,6 +83,7 @@ Rep.price Library Item type + Collection code Current location Location Not for loan status @@ -112,6 +113,7 @@ [% item.replacementprice | $Price %] [% Branches.GetName(item.homebranch) | html %] [% ItemTypes.GetDescription(item.effective_itemtype) | html %] + [% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) | html %] [% Branches.GetName(item.holdingbranch) | html %] [% AuthorisedValues.GetByCode( 'LOC', item.location ) | html %] [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %] -- 2.39.5