https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43949
--- Comment #8 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 210196 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210196&action=edit Bug 43949: Show the patron's library for patrons the user cannot see in the holds table Koha::Object->to_api redacts the embedded patron for staff who cannot see it, keeping only library_id, so the holds table could only ever print "A patron from another library". patron-format.js already supports "A patron from <library name>" when patron.library is present, so allow the patron.library embed on GET /holds and request it from the holds table. To test: 1. Have a staff user at library A without view_borrower_infos_from_any_libraries (or enable IndependentBranches) 2. Place a hold for a patron whose home library is B on a record 3. As that user, view the record's holds (reserve/request.pl) 4. Without the patch the patron cell reads "A patron from another library"; with it, "A patron from <library B name>" 5. As a superlibrarian patrons are still shown by name 6. prove t/db_dependent/api/v1/holds.t Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- You are receiving this mail because: 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/
