Bug 41785 - Add stocknumber plugin with spacing values
Summary: Add stocknumber plugin with spacing values
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-06 08:09 UTC by Thibaud Guillot (thibaud_g)
Modified: 2026-02-06 08:25 UTC (History)
1 user (show)

See Also:
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 (5.45 KB, patch)
2026-02-06 08:25 UTC, Thibaud Guillot (thibaud_g)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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