https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43995 Bug ID: 43995 Summary: Hold fee and pickup alerts on request.pl read badly when patron name is hidden Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Hold requests Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, lisette@bywatersolutions.com, tomascohen@gmail.com Target Milestone: --- With HidePatronName set to "Don't show", the alerts on the staff Place hold page (reserve/request.pl) read badly because they use the patron-title.inc fallback "A patron from library X" as if it were a patron name: - Hold fee note (Bug 40769): "Note: A patron from library Disley Library will be charged a hold fee of 1.30 when they collect this item" - Pickup library alert: Bug 42661 removed the repeated library name when HidePatronName is on, but staff who are not allowed to see that patron's details (for example no view_borrower_infos_from_any_libraries with IndependentBranches) still get "Patron: A patron from library X Patron's home library: X / CODE", as noted in comment 4 of Bug 42661. - Club holds: every member from the same library is listed as the identical "A patron from library X", so the members cannot be told apart. - None of the alerts has a stable id or class, so sites that want to restyle or hide them with CSS have nothing to target. Only a single selected patron can produce the fee note and the pickup alert (they depend on borrowernumber in request.pl); club holds render one pickup line per member. patron-title.inc is used by about 70 staff templates, so the fix stays local to request.tt: - Work out once whether the patron's name is hidden (HidePatronName, or no permission to see patrons of that library). The patron is still identified on the page by card number. - Fee note: "This patron will be charged a hold fee..." when hidden. - Pickup alert: leave out the "Patron: ..." part when hidden. - Club members: show the card number instead of the fallback when HidePatronName is on, so members can be told apart without showing names. - Add id="pickup_library_mismatch" and classes pickup-library-mismatch, patron-identifier and patron-home-library. Test plan: 1. Create a patron whose home library differs from your logged in library, and set a hold fee (Administration > Circulation and fine rules: Hold fee = 1.30). Set HoldFeeMode to "any time a hold is collected" 2. Set HidePatronName to "Don't show" 3. Go to reserve/request.pl?biblionumber=<biblio with items> and search for that patron's card number Before: "A patron from library X will be charged a hold fee..." After: "This patron will be charged a hold fee..." 4. Set HidePatronName to "Show": names are shown as before 5. Use a patron from your own library: no pickup alert. Set the fee to 0: no fee note 6. As a staff user without view_borrower_infos_from_any_libraries and IndependentBranches on, names are not shown even with HidePatronName on "Show" 7. Place a club hold for a club with several members from the same library with HidePatronName on: members are listed by card number 8. Inspect the page for the new id and classes -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.