Bugzilla – Attachment 190621 Details for
Bug 41477
Show barcode of item in the action logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41477: Handle deleted items
Bug-41477-Handle-deleted-items.patch (text/plain), 3.85 KB, created by
Nick Clemens (kidclamp)
on 2025-12-18 13:26:39 UTC
(
hide
)
Description:
Bug 41477: Handle deleted items
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-12-18 13:26:39 UTC
Size:
3.85 KB
patch
obsolete
>From 0320ffe59b76eb7b995fc598c725673e33f64562 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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:<span class="barcode">[% loopro.barcode | html %]</span></br> >- <a >- href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object | uri %]&biblionumber=[% loopro.biblionumber | uri %]&bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.object | uri %]" >- >Item [% loopro.object | html %]</a >- > >- from >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this bibliographic record" >- >Bibliographic record [% loopro.biblionumber | html %]</a >- > >+ [% IF loopro.object_found %] >+ Barcode:<span class="barcode">[% loopro.barcode | html %]</span></br> >+ <a >+ href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object | uri %]&biblionumber=[% loopro.biblionumber | uri %]&bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.object | uri %]" >+ >Item [% loopro.object | html %]</a >+ > >+ from >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this bibliographic record" >+ >Bibliographic record [% loopro.biblionumber | html %]</a >+ > >+ [% ELSE %] >+ Itemnumber:<span class="itemnumber">[% loopro.object %]</span></br> >+ Item deleted >+ [% END %] > [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %] > <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this bibliographic record">Bibliographic record [% loopro.object | html %]</a> > [% ELSE %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41477
:
190621
|
190667
|
190668