From cc6bdd4a232e190b8ee77da17784954ef8ff1c74 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Mon, 2 Apr 2012 11:53:16 +0200 Subject: [PATCH] Bug 7870 : Replace itemnumber by barcode in links of patron modification log in the ISSUE and RETURN links to item Signed-off-by: Liz Rea Passes tests, works as expected. Perhaps for followup - items that have been deleted are linked, but do not work. If an itemnumber doesn't exist, it should not be linked. Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 2 +- tools/viewlog.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 343028efda..a56a10fbb1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -193,7 +193,7 @@ [% IF ( loopro.CIRCULATION ) %] - Item [% loopro.info |html %] + Item [% loopro.barcode |html %] [% ELSE %] [% loopro.info |html %] [% END %] diff --git a/tools/viewlog.pl b/tools/viewlog.pl index d42503e591..e7d8e02f5e 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -123,6 +123,7 @@ if ($do_it) { my $item=GetItem($itemnumber); $result->{'biblionumber'}=$item->{'biblionumber'}; $result->{'biblioitemnumber'}=$item->{'biblionumber'}; + $result->{'barcode'}=$item->{'barcode'}; } } -- 2.39.5