Browse Source

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 <bin.wen@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
19.05.x
Owen Leonard 4 years ago
committed by Nick Clemens
parent
commit
757ebbc170
  1. 2
      admin/columns_settings.yml
  2. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt

2
admin/columns_settings.yml

@ -618,6 +618,8 @@ modules:
columnname: library
-
columnname: itemtype
-
columnname: collection_code
-
columnname: current_location
-

2
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt

@ -83,6 +83,7 @@
<th>Rep.price</th>
<th>Library</th>
<th>Item type</th>
<th>Collection code</th>
<th>Current location</th>
<th>Location</th>
<th>Not for loan status</th>
@ -112,6 +113,7 @@
<td>[% item.replacementprice | $Price %]</td>
<td>[% Branches.GetName(item.homebranch) | html %]</td>
<td>[% ItemTypes.GetDescription(item.effective_itemtype) | html %]</td>
<td>[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) | html %]</td>
<td>[% Branches.GetName(item.holdingbranch) | html %]</td>
<td>[% AuthorisedValues.GetByCode( 'LOC', item.location ) | html %]</td>
<td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %]

Loading…
Cancel
Save