[Koha-bugs] [Bug 28691] Quick spine label should split the same way the label creator does / use splitting rules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 1 21:59:28 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28691

Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |caroline.cyr-la-rose at inlibr
                   |                            |o.com

--- Comment #4 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
We've just had someone on IRC ask about this.
https://irc.koha-community.org/koha/2023-08-01#i_2501434

They had a label printer and wanted to use the quick spine label creator to
print the spine labels with a specific splitting rule.

Test plan :
1. Create a splitting rule that splits on periods and spaces
   1.1. Go to Administration > Classification configuration
   1.2. Click 'New splitting rule'
   1.3. Fill out the form
        - Splitting rule code: TEST
        - Description: Split on period and spaces
        - Splitting routine: RegEx
        - Regular expression: s/\s/\n/g (click 'New' to add a second regex) 
                              s/\./\n\./g
   1.4. Optionally, test the regex by entering a call number, e.g. 822.33 H521
        It should be split as follows

        822
        .33
        H521

   1.5. Click 'Save'

2. Add this splitting rule to the Other/Generic Classification Scheme
   2.1. In Classification sources, click 'Edit' next to Other/Generic
Classification Scheme
   2.2. Edit as follows
        - Source in use: Check
        - Splitting rule: Split on period and spaces (TEST)
   2.3. Click 'Save'

3. Create or edit an item to add a call number
   3.1. Find or create a record
   3.2. Edit or create an item
   3.3. Edit/Create the item as follows
        - 2 - Source of classification or shelving scheme: Other/Generic
Classification Scheme
        - o - Full call number: 822.33 H521
        - p - Barcode: enter a barcode, note this down, you'll need it later
        - y - Koha item type: fill this out if it's not already
   3.4. Click 'Add item' or 'Save changes'

4. Print a quick label
   4.1. Go to Cataloging > Quick spine label creator
   4.2. Enter the barcode of the item and press Enter
        --> The call number is not split according to the rule

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list