Bug 21750: Move collection code to its own column on checkins table
authorNick Clemens <nick@bywatersolutions.com>
Thu, 1 Nov 2018 15:11:36 +0000 (15:11 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:10:53 +0000 (12:10 +0200)
To test:
 1 - Set 'ShowAllCheckins' to show
 2 - Set a collcection code for an item
 3 - Check it in
 4 - Note it displays in the the 'Item type' column
 5 - Apply patch
 6 - Check it in again
 7 - Note the new 'Collection' column
 8 - Hide/show the column using column visibility on the checkins page
 9 - Go to Admin->Configure columns
10 - Test the various settings for this column and check in the item to
make sure they work as expected

Signed-off-by: Devinim <kohadevinim@devinim.com.tr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

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

admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

index 8ef33f0..96b3a31 100644 (file)
@@ -1114,6 +1114,8 @@ modules:
             -
               columnname: itype
             -
+              columnname: ccode
+            -
               columnname: borrower
             -
               columnname: itemnote
index eb02762..0647470 100644 (file)
                                         <th class="ci-dateaccessioned">Date acquired</th>
                                         <th class="ci-recordlevelitemtype">Record-level itemtype</th>
                                         <th class="ci-itemtype">Item type</th>
+                                        <th class="ci-collection">Collection</th>
                                         <th class="ci-patron">Patron</th>
                                         <th class="ci-note">Note</th>
                                     </tr>
                                             [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
                                         </td>
                                         <td class="ci-itemtype">
-                                            [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
+                                            [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
+                                        </td>
+                                        <td class="ci-collection">
+                                            [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
                                         </td>
                                         <td class="ci-patron">
                                             [% IF ( riloo.duedate ) %]