Bug 8775: Add collection code to lost report
authorOwen Leonard <oleonard@myacpl.org>
Fri, 22 Feb 2019 14:00:37 +0000 (14:00 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 13 Mar 2019 03:05:19 +0000 (03:05 +0000)
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>

admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt

index 30f8514..409b83b 100644 (file)
@@ -619,6 +619,8 @@ modules:
         -
           columnname: itemtype
         -
+          columnname: collection_code
+        -
           columnname: current_location
         -
           columnname: location
index d30dae8..640783a 100644 (file)
@@ -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>
                         <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 %]