Bugzilla – Attachment 169230 Details for
Bug 37399
Item type not displayed on holdings table if noItemTypeImages is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37399: Fix showing itemtype on holdings table
Bug-37399-Fix-showing-itemtype-on-holdings-table.patch (text/plain), 2.34 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-07-19 14:26:04 UTC
(
hide
)
Description:
Bug 37399: Fix showing itemtype on holdings table
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-07-19 14:26:04 UTC
Size:
2.34 KB
patch
obsolete
>From 8bf027acd705972b7209a6b4adbdb2ada074bfe6 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Thu, 18 Jul 2024 12:34:12 +0300 >Subject: [PATCH] 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> >--- > .../includes/html_helpers/tables/items/catalogue_detail.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >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 18a2c366305..c24d148bb4f 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 >@@ -345,14 +345,14 @@ > orderable: true, > render: function (data, type, row, meta) { > let node = ''; >+ let item_type_description = row._strings.item_type_id.str; > [% UNLESS noItemTypeImages %] > let image_location = item_type_image_locations[row.item_type_id]; >- let item_type_description = row._strings.item_type_id.str; > node += image_location > ? '<img src="%s" alt="%s" title="%s" /> '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description)) > : ''; >- node += '<span class="itypedesc itypetext">%s</span>'.format(escape_str(item_type_description)); > [% END %] >+ node += '<span class="itypedesc itypetext">%s</span>'.format(escape_str(item_type_description)); > return node; > } > }, >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37399
:
169126
|
169150
| 169230