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>
This commit is contained in:
Lucas Gass 2026-02-25 15:18:58 +00:00
parent c42f58d196
commit 2186fa2798
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
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' %]