Bug 41785

Summary: Add stocknumber plugin with spacing values
Product: Koha Reporter: Thibaud Guillot (thibaud_g) <thibaud.guillot>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41785: Add stocknumber with incremental value with space

Description Thibaud Guillot (thibaud_g) 2026-02-06 08:09:39 UTC
Hello

Some customers want to use a cataloging plugin slightly different from stocknumber_AV offered by default. In this case with spaces rather than with 0000.. added and stuck to the other characters.

Faced with this growing demand we said to ourselves that it could perhaps interest more people and I am therefore submitting this patch.
Comment 1 Thibaud Guillot (thibaud_g) 2026-02-06 08:25:10 UTC
Created attachment 192586 [details] [review]
Bug 41785: Add stocknumber with incremental value with space

Test plan:
1) Add authorised values with "INVENTORY_SPACING" code
2) Link the plugin to a field/subfield in your framework
3) Use it during biblio or item edition
4) See that the plugin increment your value correctly

Sponsored-by: BibLibre