https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44228 --- Comment #4 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212443 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212443&action=edit Bug 44228: Add option on patron account page to create SIP account This patch adds a "Create SIP account" option to the More menu on the patron account toolbar. It links to the SIP2 module's new account form with the staff userid field pre-populated with the patron's userid. The option is disabled (with a tooltip) when the logged-in user lacks the manage_sip2 permission, or when the patron has no username. The SIP2 account form now accepts a login_id query parameter as the default value for the staff userid field. Test plan: 1. Apply patch, run yarn js:build, restart_all. You may also need to clear your browser cache. 2. As a superlibrarian, open a patron that has a username 3. Click More -> Create SIP account 4. Confirm you land on the SIP2 New account form with the staff userid field set to that patron 5. Fill in an institution, save, confirm the account is created with that login_id 6. Open a patron with no username, confirm the More menu option is disabled with the tooltip "Patron has no username" (the staff interface will auto-populate a username when creating or editing a patron, but the field is nullable in the database) 7. Log in as a staff user who has edit_borrowers but not manage_sip2, confirm the option is disabled with the tooltip "You are not authorized to manage SIP2 accounts" 8. Go to Administration -> SIP2 -> Accounts -> New account directly, confirm the staff userid field is empty as before Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mary Teal <mteal@greenvillelibrary.org> -- You are receiving this mail because: You are watching all bug changes.