https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39318
--- Comment #2 from Michael Mundet <[email protected]> --- Created attachment 212185 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212185&action=edit Bug 39318: Add hold history for records Add a staff Holds history page on the bibliographic record. It lists current and past holds, including cancelled holds and the cancellation reason. Access follows the patron holds history: the view_holds_history permission and the IntranetReadingHistoryHolds preference. Test plan: 1. Apply the patch and restart Plack. Log in to the staff interface. IntranetReadingHistoryHolds is Allow on a fresh install. 2. Open a bibliographic record. The left menu has a Holds history entry, between Holds and Checkout history. 3. Open it. The menu entry is active. The page heading, the breadcrumb and the browser tab say "Holds history". With no holds, the page says the record has no hold history. 4. Place a title-level hold with a note. The page shows "1 hold", status Pending, the note, an empty barcode and call number, and the patron name as a link. 5. Suspend that hold. The status becomes Suspended and the note stays. 6. Place an item-level hold with pickup at another library and check the item in. The status is In transit. The barcode links to the item and the call number is shown. 7. Place an item-level hold and check the item in at the pickup library. The status is Waiting and the waiting date is filled. 8. Cancel a hold with the reason "Item could not be located on shelves". The row stays, with status Cancelled and that reason. It no longer appears on the Holds tab, and the Holds count only includes current holds. 9. Cancel another hold with "No reason given". The status is Cancelled, with no reason in parentheses. 10. Check an item out to the patron who requested it. The status is Fulfilled. 11. With more than one hold, the heading is plural ("2 holds"). The default order is hold date, newest first. Clicking the Hold date header reverses it. 12. Put "<b>bold</b>" in a hold note. The page shows those characters as text. 13. With AllowHoldItemTypeSelection and DisplayAddHoldGroups off, the Requested item type and Hold group ID columns are hidden. Turn AllowHoldItemTypeSelection on: the column appears, a hold limited to an item type shows its description, and a hold without one shows "Any item type". Turn it off: the column disappears. Turn DisplayAddHoldGroups and DisplayMultiItemHolds on, and place holds with "Treat as hold group": the column shows the shared group id. Turn both off: the column disappears. 14. In Table settings, catalogue / detail / holdshistory-table, the Patron column cannot be hidden. Hiding Notes hides the notes. Show the column again. 15. Set IntranetReadingHistoryHolds to "Don't allow". The menu entry disappears, including for a superlibrarian. The direct URL shows "Staff members are not allowed to access patron's holds history" and no patron name. Set the preference back to Allow. 16. As a staff member with the catalogue permission only, the menu entry is absent. The direct URL says "You do not have permission to access this page" and shows no patron data. 17. As a staff member with catalogue plus borrowers > View holds history, the page opens. The patron name, card number and "A patron from library …" follow Checkout history on the same record (library group with "Limit patron data access by group", and HidePatronName). 18. Set AnonymousPatron to an existing patron who will not place a hold. Set OPACPrivacy to Enable. Cancel a hold for another patron, then in the OPAC log in with that patron's card number, open Privacy and choose Delete hold history. On the record, that row shows "Anonymized" and no longer shows the patron's name. On the patron's own Holds history page, the hold is gone. Set both preferences back. 19. Cancel a hold, then delete that patron. The row stays, with status Cancelled and an empty patron cell. 20. The patron Holds history page still lists only that patron's holds. The OPAC record has no Holds history link. 21. Opening holdshistory.pl?biblionumber=999999 shows the 404 error page. Assisted-by: Grok 4.7 (SpaceXAI) Signed-off-by: Michael Mundet <[email protected]> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
