If syspref "noItemTypeImages" is disabled, holdings table won't display itemtype column. To reproduce: 1. Enable syspref "noItemTypeImages". 2. Find biblio with items. => Note that itemtype column is displayed on holdings table. 3. Disable syspref "noItemTypeImages". => Itemtype column is no longer displayed on holdings table.
Created attachment 169126 [details] [review] Bug 37399: Fix showing itemtype on holdings table If syspref "noItemTypeImages" is disabled, holdings table won't display itemtype column. This patch fixes this. To reproduce: 1. Enable syspref "noItemTypeImages". 2. Find biblio with items. => Note that itemtype column is displayed on holdings table. 3. Disable syspref "noItemTypeImages". => Itemtype column is no longer displayed on holdings table. 4. Apply this patch. => Now column should be displayed correctly. Sponsored-by: Koha-Suomi Oy
Created attachment 169150 [details] [review] Bug 37399: Fix showing itemtype on holdings table If syspref "noItemTypeImages" is disabled, holdings table won't display itemtype column. This patch fixes this. To reproduce: 1. Enable syspref "noItemTypeImages". 2. Find biblio with items. => Note that itemtype column is displayed on holdings table. 3. Disable syspref "noItemTypeImages". => Itemtype column is no longer displayed on holdings table. 4. Apply this patch. => Now column should be displayed correctly. Sponsored-by: Koha-Suomi Oy Signed-off-by: Owen Leonard <oleonard@myacpl.org>
I've changed the bug type to "normal" from "enhancement", as it is something that isn't working when it should.
Created attachment 169230 [details] [review] Bug 37399: Fix showing itemtype on holdings table If syspref "noItemTypeImages" is disabled, holdings table won't display itemtype column. This patch fixes this. To reproduce: 1. Enable syspref "noItemTypeImages". 2. Find biblio with items. => Note that itemtype column is displayed on holdings table. 3. Disable syspref "noItemTypeImages". => Itemtype column is no longer displayed on holdings table. 4. Apply this patch. => Now column should be displayed correctly. Sponsored-by: Koha-Suomi Oy Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Thanks for all the hard work! Pushed to main for the next 24.11.00 release as RM Assistant
This fixes a bug for the holdings table in the staff interface in 24.05. If noItemTypeImages is disabled, we get the "Processing" box for a while, and in the console is an error: `Uncaught ReferenceError: item_type_description is not defined` This patches moves the important line outside of the [% UNLESS %] block: `let item_type_description = row._strings.item_type_id.str;` so that item_type_description can be defined. Please backport :)
Backported to 24.05.x for upcoming 24.05.04
Depends on Bug 33568 not in 23.11.x