From c1e0538734a426738e002c30ba27e20113e415c5 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Thu, 24 Jul 2025 10:30:14 -0400 Subject: [PATCH] Bug 40492: Offline circ - link to item details and open link in new tab Update the pending offline circulation actions page to link each item barcode directly to the item details, rather than the biblio record, and open the links in a new tab. To test: 1. Upload a Koha Offline Circulation (koc) file (the file attached to this bug can be used if you are using a sandbox or KTD with the standard sample data) i. Go to Circulation > Upload offline circulation file ii. Upload the file iii. Click "Add to offline circulation queue" 2. Go to Circulation > Pending offline circulation actions 3. Click on the item barcodes in the table --> Note that each barcode links to the biblio record, and navigates away from the page within the same tab. 4. Apply patch and restart_all 5. Return to (or refresh) the pending offline circulation actions page and click on the item barcodes again --> The barcodes now open the item details page in a new tab --- .../intranet-tmpl/prog/en/modules/offline_circ/list.tt | 9 +++++++-- offline_circ/list.pl | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt index b285cf113a..08bb644e4e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt @@ -72,8 +72,13 @@ [% END -%] - [% IF ( operation.biblionumber ) %] - [% operation.barcode | html %] + [% IF ( operation.itemnumber ) %] + [% operation.barcode | html %] [% ELSE %] [% operation.barcode | html %] [% END %] diff --git a/offline_circ/list.pl b/offline_circ/list.pl index 6883d98b36..8e0e133270 100755 --- a/offline_circ/list.pl +++ b/offline_circ/list.pl @@ -49,6 +49,7 @@ for (@$operations) { my $biblio = $item->biblio; $_->{'bibliotitle'} = $biblio->title; $_->{'biblionumber'} = $biblio->biblionumber; + $_->{'itemnumber'} = $item->itemnumber; } my $patron = -- 2.34.1