https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22707
--- Comment #8 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 199829 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199829&action=edit Bug 22707: Add system preferences for cardnumber generation strategy autoMemberNumFormat — 'sequential' (default) or 'ean13' The EAN-13 option appears in the Patrons section of System Preferences immediately below the existing autoMemberNum toggle, with a note directing staff to seed autoMemberNumValue with their institutional prefix barcode. Test plan: 1. Apply patch and run the database update. 2. Confirm the sequential strategy is unchanged: a. Ensure autoMemberNum is enabled and autoMemberNumFormat is 'sequential' (the default). b. Create a new patron without entering a card number. c. Confirm the card number is auto-assigned as the next integer after the current maximum. 3. Test the EAN-13 strategy: a. Go to Administration > System preferences > Patrons. b. Set autoMemberNumFormat to 'EAN-13'. c. Set autoMemberNumValue to a valid 13-digit EAN-13 barcode that represents the start of your institutional range, for example a GS1-prefixed number with a zero sequential part and the correct check digit (e.g. use an online EAN-13 check-digit calculator to construct a starting value). d. Create a new patron without entering a card number. e. Confirm the assigned card number is 13 digits and passes EAN-13 check-digit validation. f. Create a second patron. Confirm the card number is the next valid EAN-13 in sequence. 4. Verify that legacy short card numbers do not inflate the EAN-13 sequence: a. Manually assign a short numeric card number (e.g. '12345') to a patron while autoMemberNumFormat is 'ean13'. b. Create another patron without a card number. c. Confirm the auto-assigned value is still a valid 13-digit EAN-13, not a number derived from '12345'. 5. Switch autoMemberNumFormat back to 'sequential' and confirm that sequential generation resumes correctly. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
