Bug 41884: Make barcode a link to the item

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2186fa2798)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Lucas Gass 2026-02-25 15:18:58 +00:00 committed by Jacob O'Mara
parent 0dd353fe3d
commit 5c896ffe71
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -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 $_
};

View File

@ -26,7 +26,7 @@
<ul>
[% FOR error IN report.errors %]
<li>
[% error.barcode | html %]
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% error.biblionumber | uri %]#item[% error.itemnumber | uri %]">[% error.barcode | html %]</a>
[% IF error.error == 'intransit_cannot_withdraw' %]
: [% t('Item is in transit') | html %]
[% ELSIF error.error == 'onloan_cannot_withdraw' %]