From 67ff112866f4f663fbe60d026ff5addb9774dde4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 May 2026 16:48:44 +0200 Subject: [PATCH] Bug 42708: (bug 41566 follow-up) Restore display of itemtype images > - [% UNLESS noItemTypeImages %] > + if (prefs.noItemTypeImages){ This is wrong! Test plan: Go to /cgi-bin/koha/catalogue/detail.pl?biblionumber=4 Notice that with this patch the "Book" icon is displayed Turn off noItemTypeImages and reload => It's now hidden! Without this patch the behavior is reversed Signed-off-by: David Nind Signed-off-by: Laura_Escamilla Signed-off-by: Lucas Gass --- .../en/includes/html_helpers/tables/items/catalogue_detail.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index 0dc2dec3e3..da0bd970b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -430,7 +430,7 @@ render: function (data, type, row, meta) { let node = ""; let item_type_description = row._strings.item_type_id ? row._strings.item_type_id.str : row.item_type_id; - if (Koha.prefs.noItemTypeImages) { + if (!Koha.prefs.noItemTypeImages) { let image_location = item_type_image_locations[row.item_type_id]; node += image_location ? ' '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description)) : ""; }