From 5c896ffe71db6bb25665b755c72baa5ac907a797 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 25 Feb 2026 15:18:58 +0000 Subject: [PATCH] Bug 41884: Make barcode a link to the item Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass (cherry picked from commit 2186fa27988bae161a9163b56d672f73d864eef0) Signed-off-by: Jacob O'Mara --- Koha/Items.pm | 7 ++++--- .../background_jobs/batch_item_record_modification.inc | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 90525e2f33..7e0a3e60f1 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -584,9 +584,10 @@ sub batch_update { ) } catch { push @errors, { - itemnumber => $item->itemnumber, - barcode => $item->barcode, - error => eval { $_->message } || eval { $_->error } || "$_", + biblionumber => $item->biblionumber, + itemnumber => $item->itemnumber, + barcode => $item->barcode, + error => eval { $_->message } || "$_", }; warn $_ }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc index a889154774..8180f765e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc @@ -26,7 +26,7 @@
    [% FOR error IN report.errors %]
  • - [% error.barcode | html %] + [% error.barcode | html %] [% IF error.error == 'intransit_cannot_withdraw' %] : [% t('Item is in transit') | html %] [% ELSIF error.error == 'onloan_cannot_withdraw' %]