Bug 40492

Summary: Improvements to the pending offline circulation actions table
Product: Koha Reporter: Emily Lamancusa (emlam) <emily.lamancusa>
Component: CirculationAssignee: Emily Lamancusa (emlam) <emily.lamancusa>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Sample KOC file
Bug 40492: Offline circ - link to item details and open link in new tab
Sample KOC file
Bug 40492: Improvements to offline circ actions table

Description Emily Lamancusa (emlam) 2025-07-24 12:50:19 UTC
In the pending offline circulation actions table, the barcode links to the biblio record, but it would be more helpful if it linked to the item details of the specific item.
Comment 1 Emily Lamancusa (emlam) 2025-07-24 14:23:22 UTC Comment hidden (obsolete)
Comment 2 Emily Lamancusa (emlam) 2025-07-24 14:39:21 UTC Comment hidden (obsolete)
Comment 3 Emily Lamancusa (emlam) 2025-07-24 15:32:42 UTC
It occurs to me that 40492 and 40494 are related enough and small enough that they should really be the same bug... I'll update the patch here to include both changes and mark the other bug as a duplicate.
Comment 4 Emily Lamancusa (emlam) 2025-07-24 15:32:59 UTC
*** Bug 40494 has been marked as a duplicate of this bug. ***
Comment 5 Emily Lamancusa (emlam) 2025-07-24 15:34:36 UTC
Created attachment 184597 [details]
Sample KOC file
Comment 6 Emily Lamancusa (emlam) 2025-07-24 18:32:13 UTC
Created attachment 184601 [details] [review]
Bug 40492: Improvements to offline circ actions table

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.

Add a column to show the last seen date of the items being processed,
with a warning if the item's last seen date is more recent than the
offline circulation action date.

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
--> There is a new column for the item last seen date
6. Without processing the offline circulation actions, check in one of
   the items listed in the table
7. Return to the Pending offline circulation actions page
--> Confirm that the last seen date of the item you just checked in is
    highlighted in red with a warning icon, since its last seen date is
    newer than the offline transaction date
8. Hover over the warning icon
--> Confirm that a tooltip appears with an explanation of why the date
    is in red