https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41180
--- Comment #3 from Andrew Fuerste-Henry <[email protected]> --- Created attachment 212479 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212479&action=edit Bug 41180: Add library autocomplete to SIP2 institution name The 'Name' field when adding/editing a SIP2 institution is now a searchable select listing the libraries ("Library name (CODE)"). Picking a library stores its branchcode. Since the institution name may also legitimately be something other than a branchcode (e.g. a library group title), a custom value can still be typed in and saved. To support this, FormRelationshipSelect gains two optional props: - allowCustomValues: allow free-text values not in the option list - relationshipOptionLabelFormatter: function to build the option label Existing users of FormRelationshipSelect are unaffected. Test plan: 1. Apply patch, run yarn js:build, restart_all 2. Go to Administration > SIP2 > Institutions > New institution 3. Click the Name field and type part of a library name or branchcode (e.g. "cen" or "CPL") 4. Confirm matching libraries are listed as "Centerville (CPL)" 5. Select one, fill in the rest of the form and save 6. Confirm the institution is listed with the branchcode as its name 7. Edit it, confirm the Name field shows "Centerville (CPL)" 8. Type a custom value not matching any library (e.g. "MYGROUP"), press Enter, save 9. Confirm the custom value is saved and shown when editing again 10. Go to SIP2 > Accounts > New account and confirm the Institution select behaves as before (no custom values accepted) 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/
