From 0320ffe59b76eb7b995fc598c725673e33f64562 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 18 Dec 2025 13:24:19 +0000 Subject: [PATCH] Bug 41477: Handle deleted items We have a variable 'object_found' - without this we assume the item has been deleted To test: 1 - Delete one of the items you modified, note the itemnumber 2 - Click the 'Modification log' tab - you don't see this item 3 - Search using the itemnumber in 'Object' field 4 - You have empty barcode field and broken links 5 - Apply this patch 6 - Reload 7 - You see the itemnumber and a note that it has been deleted --- .../prog/en/modules/tools/viewlog.tt | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 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 348240101c4..7a0e36bdbde 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -279,15 +279,20 @@ [% END %] [% ELSIF ( loopro.module == 'CATALOGUING' ) %] [% IF ( loopro.info.substr(0, 4) == 'item' ) %] - Barcode:[% loopro.barcode | html %]
- Item [% loopro.object | html %] - from - Bibliographic record [% loopro.biblionumber | html %] + [% IF loopro.object_found %] + Barcode:[% loopro.barcode | html %]
+ Item [% loopro.object | html %] + from + Bibliographic record [% loopro.biblionumber | html %] + [% ELSE %] + Itemnumber:[% loopro.object %]
+ Item deleted + [% END %] [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %] Bibliographic record [% loopro.object | html %] [% ELSE %] -- 2.39.5