[Bug 41785] New: Add stocknumber plugin with spacing values
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 Bug ID: 41785 Summary: Add stocknumber plugin with spacing values Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: thibaud.guillot@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl 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. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 --- Comment #1 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 192586 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192586&action=edit 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 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192586|0 |1 is obsolete| | --- Comment #2 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 199177 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199177&action=edit 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 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #199177|0 |1 is obsolete| | --- Comment #3 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 199192 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199192&action=edit 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 Please note that AV code can contains number(s) or/and space(s) Sponsored-by: BibLibre fix -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #199192|0 |1 is obsolete| | --- Comment #4 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 199193 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199193&action=edit 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 Please note that AV code can contains number(s) or/and space(s) Sponsored-by: BibLibre -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #199193|0 |1 is obsolete| | --- Comment #5 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 199473 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199473&action=edit 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 Please note that AV code can contains number(s) or/and space(s) Sponsored-by: BibLibre -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off Comma delimited| |BibLibre list of Sponsors| | Sponsorship status|--- |Sponsored -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #199473|0 |1 is obsolete| | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 --- Comment #6 from David Nind <david@davidnind.com> --- Created attachment 199497 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199497&action=edit 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 Please note that AV code can contains number(s) or/and space(s) Sponsored-by: BibLibre Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 --- Comment #7 from David Nind <david@davidnind.com> --- Created attachment 199498 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199498&action=edit Bug 41785: (follow-up) Update description in plugin file To use this cataloging plugin/value builder you need to create an authorized value category called INVENTORY_SPACING. Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This enhancement adds a new release notes| |cataloging plugin/value | |builder: | |stocknumberAV_spacing.pl | |(for use in 952$i (MARC21) | |or 995$j(UNIMARC)). | | | |This is similar to the | |existing stocknumberAV.pl | |cataloging plugin, but with | |these changes: | |1. Requires creating an | |INVENTORY_SPACING | |authorized value category. | |2. It generates an | |inventory number with the | |prefix from the authorized | |value category without the | |leading zeros, for example: | |ABC 1 | |2. It lets you chose the | |prefix from a dropdown list | |of authorized values. | | | |(The existing | |stocknumberAV.pl adds a 10 | |digit number with leading | |zeros, for example: ABC | |0000000001. There is no | |dropdown list to choose the | |authorized value from, you | |need to enter this | |manually.) CC| |david@davidnind.com Assignee|koha-bugs@lists.koha-commun |thibaud.guillot@biblibre.co |ity.org |m --- Comment #8 from David Nind <david@davidnind.com> --- Added assignee 8-) I've tested, and signed off, but just wanted to clarify my understanding of what the new plugin/value builder does. The difference between the existing stocknumberAV.pl and the stocknumberAV_spacing.pl is: 1. stocknumberAV.pl = ABC 0000000001 (leading 0s after the authorized value code) 2. stocknumberAV_spacing.pl = ABC 1 (no leading 0s after the authorized value code) 3. An enhancement with the new stocknumberAV_spacing.pl cataloging plugin is that it gives you a dropdown list of the authorized category values to choose from, instead of you having to know what code to use. Also, I've added a follow-up to amend the description in the plugin to reflect that you need to create an INVENTORY_SPACING authorized value category (not INVENTORY). Testing notes (using KTD and a MARC21 instance): 1. Apply the patch. 2. Restart everything: restart_all 3. Update a framework to use the new stocknumberAV_spacing.pl cataloging plugin/value builder: - BKS (Books, Booklets, Workbooks) - 952$i - Set the Plugins value to stocknumberAV_spacing.pl - Save changes 4. Add a new authorized value category: - Administration > Basic parameters > Authorized values > New category - Category: INVENTORY_SPACING - Add some authorized values: . ABC . XYZ - Create an additional authorized value that will start at a specific number: . Authorized value: MNO . Description 500 5. Edit or add an item for a record. 6. For i - Inventory number: - Click on the icon to the right of the input box - Select ABC Result: populates the field with ABC 1 7. Repeat step 6 for a new item, inventory number is ABC 2 8. Repeat step 6 for a new item using the MNO authorized value, inventory number is 501 Details for current inventory/stocknumber cataloging plugins/value builders: https://koha-community.org/manual/latest/en/html/valuebuilder.html#stocknumb... - stocknumber.pl (library code and sequential number, for example: CPL_1 - stocknumberam123.pl (manually entered prefix, space and a 10-digit number, for example: ABC 0000000001) - stocknumberAV.pl (prefix from authorized value category INVENTORY (need to create) - need to enter manually (not chosen from a dropdown list), space, and a 10-digit number, for example: XYZ 0000000001) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41785 --- Comment #9 from David Nind <david@davidnind.com> --- Created attachment 199499 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199499&action=edit Bug 41785: (follow-up) Fix qa errors Fixes these items flagged by the qa script: - http -> https for URL - submited -> submitted for spelling Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org