Bug 30747: Make column settings work for otherholdings table using forEach loop
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 18 May 2022 14:12:11 +0000 (14:12 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 23 May 2022 18:52:40 +0000 (08:52 -1000)
commit7120059745158af08890ba5881090d7337a41fea
treef41d319f902bafffb659bdc76b61d187aa36d5ae
parentc3f285220917847bc06cf998c7760ffd11903b69
Bug 30747: Make column settings work for otherholdings table using forEach loop

To test:

1. Turn on SeparateHoldings and find a record that has some items at
   different home libraries.
2. Look at the Other holdings(x) tab. Notice there is no Columns tool
   (gear icon).
3. Go to Table Settings, try hiding columns from the otherholdings
   table. You cannot.
4. Apply patch.
5. Now under the Other holdings(x) tab you should see the Columns
   button, it should work.
6. Go back to Table settings and try hiding columns, it should work.
7. Now try uploading an item level cover image, make sure all columns
   are still properly hidden and the Columns tool works
8. Try steps 6 & 7 but with the regular holdings table. Confirm that all
   colums can properly hide.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Included a rename to table_name(s).
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt