@@ -, +, @@
1 - Enable ReturnLog amd IssueLog
2 - Checkout an item to a patron
3 - Return it
4 - View 'Modification log' tab of the borrwer
5 - Note item links, test them, they work
6 - Delete the item
7 - Reload and try links again, they do not work
8 - Apply patch
9 - Reload, no more links
---
.../prog/en/modules/tools/viewlog.tt | 30 +++++++++----------
tools/viewlog.pl | 1 +
2 files changed, 15 insertions(+), 16 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt
@@ -391,24 +391,22 @@
[% END %]
- [% IF ( loopro.module == 'CIRCULATION' ) %]
+ [% IF ( loopro.module == 'CIRCULATION' && loopro.object_found ) %]
Item [% loopro.barcode | html %]
+ [% ELSIF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
+ [% loopro.info | trim | html %]
+
+
+
+ [% ELSIF loopro.module == "NOTICES" %]
+ [% loopro.info | trim | html %]
+
+
+
[% ELSE %]
- [% IF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
- [% loopro.info | trim | html %]
-
-
-
- [% ELSIF loopro.module == "NOTICES" %]
- [% loopro.info | trim | html %]
-
-
-
- [% ELSE %]
-
- [% loopro.info | html %]
-
- [% END %]
+
+ [% loopro.info | html %]
+
[% END %]
|
[% PROCESS translate_log_interface log_interface=loopro.interface %] |
--- a/tools/viewlog.pl
+++ a/tools/viewlog.pl
@@ -157,6 +157,7 @@ if ($do_it) {
$itemnumber = $log->info if ( $log->module eq "CIRCULATION" );
my $item = Koha::Items->find($itemnumber);
if ($item) {
+ $result->{'object_found'} = 1;
$result->{'biblionumber'} = $item->biblionumber;
$result->{'biblioitemnumber'} = $item->biblionumber;
$result->{'barcode'} = $item->barcode;
--