https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30328
Emmi Takkinen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187902|0 |1 is obsolete| | --- Comment #28 from Emmi Takkinen <[email protected]> --- Created attachment 191775 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191775&action=edit Bug 30328: Add ability to generate barcode with branch specific prefix We should add more flexibility to generating barcodes by letting libraries define branch specific prefix for their barcodes. This patch adds new option "preyymmddts" in systempreference "autoBarcode" and new systempreference "BarcodePrefix" to define branch specific prefix. Test plan: 1. Apply patch and update database 2. Set syspref "autoBarcode" as "preyymmddts" 3. Add some values to syspref "Barcodeprefix" e.g.: Default: DEF CPL: CPL FFL: FFL 4. Now change your library to CPL (if needed) and add an item 5. Click barcode input field => barcode should be CPL<current_year><current_month><current_day><timestamp> 6. Add another item and click barcode field => barcode should be CPL<current_year><current_month><current_day><timestamp> 7. Change your library to FFL and add an item => barcode should now be FFL<current_year><current_month><current_day><timestamp> 8. Change your library to e.g. FPL (or another as long as it doesn't have prefix value in "Barcodeprefix"), add an item and click barcode field => barcode should now be DEF<current_year><current_month><current_day><timestamp> 9. Try to add multiple items => barcodes timestamp value should change based on time barcode was generated. Also prove t/db_dependent/Barcodes_ValueBuilder.t and t/Barcodes_preyymmddts.t Sponsored-by: Koha-Suomi Oy -- 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/
