Bug 32421: Add collection column to holds to pull

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>
(cherry picked from commit 375fbd1704)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Lucas Gass 2022-12-07 18:41:26 +00:00 committed by Martin Renvoize
parent 6197268a29
commit 3ff61a63a7
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
3 changed files with 12 additions and 0 deletions

View file

@ -1522,6 +1522,8 @@ modules:
columnname: itemtypes columnname: itemtypes
- -
columnname: locations columnname: locations
-
columnname: collection
- -
columnname: hold_date columnname: hold_date
- -

View file

@ -269,6 +269,7 @@ foreach my $bibnum ( @biblionumbers ){
# get available values for each biblio # get available values for each biblio
my $fields = { my $fields = {
collections => 'ccode',
locations => 'location', locations => 'location',
callnumbers => 'itemcallnumber', callnumbers => 'itemcallnumber',
enumchrons => 'enumchron', enumchrons => 'enumchron',

View file

@ -80,6 +80,7 @@
<th>Available enumeration</th> <th>Available enumeration</th>
<th class="string-sort">Available item types</th> <th class="string-sort">Available item types</th>
<th class="string-sort">Available locations</th> <th class="string-sort">Available locations</th>
<th class="string-sort">Available collections</th>
<th>Earliest hold date</th> <th>Earliest hold date</th>
<th>Hold notes</th> <th>Hold notes</th>
<th class="string-sort">Pickup location</th> <th class="string-sort">Pickup location</th>
@ -191,6 +192,13 @@
[% END %] [% END %]
</ul> </ul>
</td> </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 %]"> <td data-order="[% hold.reservedate | html %]">
[% hold.reservedate | $KohaDates %] in [% Branches.GetName ( hold.branchcode ) | html %] [% hold.reservedate | $KohaDates %] in [% Branches.GetName ( hold.branchcode ) | html %]
</td> </td>
@ -259,6 +267,7 @@
<td id="locationfilter"></td> <td id="locationfilter"></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td>
<td id="pickup-location"></td> <td id="pickup-location"></td>
<td></td> <td></td>
</tr> </tr>