https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43465

--- Comment #3 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 212227
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212227&action=edit
Bug 43465: Add a badge for patrons linked to SIP2 accounts

This patch adds Koha::Patron->is_sip_account, which returns true when
the patron's userid is used as the login_id of a SIP2 account, and uses
it to show an up-down badge next to the patron's name in the staff
interface, alongside the existing staff/superlibrarian/self-check badges.

Test plan:
1. Go to Administration > SIP2 > Accounts and create (or edit) an
   account whose login is the userid of an existing patron
2. Open that patron in the staff interface (patron details or checkout)
3. Without the patch, there is no indication the patron is a SIP2 user
4. Apply the patch and reload
5. Note the new up-down icon next to the patron's name, with the hover
   text "SIP2 account patron"
6. View a patron not linked to a SIP2 account: no icon is shown
7. prove t/db_dependent/Koha/Patron.t

Co-Authored-By: Claude Opus 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/

Reply via email to