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:
parent
0dd353fe3d
commit
5c896ffe71
|
|
@ -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 $_
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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' %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue