From 181ef14401a228bdaeadeeed2e87ea920e0bd9c6 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Mon, 2 Apr 2012 11:53:16 +0200 Subject: [PATCH] Replace itemnumber by barcode in links of patron modification log Content-Type: text/plain; charset="utf-8" in the ISSUE and RETURN links to item http://bugs.koha-community.org/show_bug.cgi?id=7870 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. --- .../intranet-tmpl/prog/en/modules/tools/viewlog.tt | 2 +- tools/viewlog.pl | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) 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 343028e..a56a10f 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 d42503e..7b1ff0c 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'}; } } -- 1.7.2.5