Bugzilla – Attachment 184596 Details for
Bug 40492
Improvements to the pending offline circulation actions table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40492: Offline circ - link to item details and open link in new tab
Bug-40492-Offline-circ---link-to-item-details-and-.patch (text/plain), 3.21 KB, created by
Emily Lamancusa (emlam)
on 2025-07-24 14:39:21 UTC
(
hide
)
Description:
Bug 40492: Offline circ - link to item details and open link in new tab
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2025-07-24 14:39:21 UTC
Size:
3.21 KB
patch
obsolete
>From c1e0538734a426738e002c30ba27e20113e415c5 Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >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 -%] > </td> > <td> >- [% IF ( operation.biblionumber ) %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a> >+ [% IF ( operation.itemnumber ) %] >+ <a >+ href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% operation.biblionumber | uri %]&itemnumber=[% operation.itemnumber | uri %]#item[% operation.itemnumber | uri %]" >+ target="_blank" >+ title="[% operation.bibliotitle | html %]" >+ >[% operation.barcode | html %]</a >+ > > [% ELSE %] > <span class="error">[% operation.barcode | html %]</span> > [% 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
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 40492
:
184595
|
184596
|
184597
|
184601