https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41932
--- Comment #11 from Marcel de Rooy <[email protected]> --- (In reply to Katrin Fischer from comment #10) > I have also been wondering if instead of Generic it would be easier to tie > this to a new option to avoid any risk of behavior change. There is no behavior change whatsoever when the preference is empty. There is no pressing reason to duplicate code here (just one new subroutine). > Also an idea: To make this more flexible, could it make sense to be able to > use a regex based approach to define the "sections" you want to have padded? > Almost all of our libraries use their "own" classification scheme. A lot > have some form of sequential counter. Did you look at the code? This is very flexible already. The pref contains a list of callnumber 'formats'. Each format has an optional regex for filtering (as you mention) and a list of number pairs that control zero-padding digit groups (with a minimum length for each digit group and a padding length). See also the POD in the module and the examples in the test script. -- 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/
