Bug 32421: Add collection column to holds to pull
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 7 Dec 2022 18:41:26 +0000 (18:41 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 14 Mar 2023 12:06:14 +0000 (09:06 -0300)
To test:

1. Place some holds
2. Go to Circulation > Holds to pull
3. Notice there is not column to indicate collection ( CCODE )
4. Apply patch and restart services
5. Step 2 again, this time you should see a column for holds to pull
6. Using both the Columns button and via 'Table setting' attempt to hide the column and other columns. Ensure everything is being heiiden correctly.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Bug 32421: (follow-up) Correct table settings

Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/columns_settings.yml
circ/pendingreserves.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt

index a4163be..aa29dfd 100644 (file)
@@ -1542,6 +1542,8 @@ modules:
             -
               columnname: locations
             -
+              columnname: collection
+            -
               columnname: hold_date
             -
               columnname: reserve_notes
index 07df53b..21016bc 100755 (executable)
@@ -269,6 +269,7 @@ foreach my $bibnum ( @biblionumbers ){
 
     # get available values for each biblio
     my $fields = {
+        collections     => 'ccode',
         locations       => 'location',
         callnumbers     => 'itemcallnumber',
         enumchrons      => 'enumchron',
index 98ee66f..5d44bf0 100644 (file)
@@ -80,6 +80,7 @@
         <th>Available enumeration</th>
         <th class="string-sort">Available item types</th>
         <th class="string-sort">Available locations</th>
+        <th class="string-sort">Available collections</th>
         <th>Earliest hold date</th>
         <th>Hold notes</th>
         <th class="string-sort">Pickup location</th>
             [% END %]
             </ul>
         </td>
+        <td>
+            <ul>
+            [% FOREACH ccode IN hold_info.collections %]
+                <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ccode ) | html %]</li>
+            [% END %]
+            </ul>
+        </td>
         <td data-order="[% hold.reservedate | html %]">
             [% hold.reservedate | $KohaDates %] in [% Branches.GetName ( hold.branchcode ) | html %]
         </td>
         <td id="locationfilter"></td>
         <td></td>
         <td></td>
+        <td></td>
         <td id="pickup-location"></td>
         <td></td>
         </tr>