https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42943 --- Comment #7 from David Cook <dcook@prosentient.com.au> --- Created attachment 201627 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201627&action=edit Bug 42943: wrap long call number fields on labels This change uses Text::Wrap to wrap long call number fields on labels in the same way that other non-call number fields get wrapped. Test plan: __BEFORE APPLYING PATCH__ 1. Create item with long call number 1a. In KTD, log into the staff interface 1b. Click "Search catalog" on the top nav 1c. Type in "test" and hit the search button at the end of the input box 1d. Click on Gairm 1e. Click "Edit" next to the item at the bottom of the screen 1f. Input "610.73089915 YAT 2026" into "o - Full call number" and click "Save changes" 2. Create label layout 2a. From the home page, go to "Cataloging" 2b. Click "Label creator" 2c. Click "New" then choose "Label layout" 2d. Fill in the following fields: Layout name: SPINE Choose barcode type: Code 39 Choose layout type: Only the bibliographic data is printed List fields: itemcallnumber, homebranch Draw guide boxes: <checked> Split call numbers: <checked> Font size: 9 Barcode width: 0.8000 Barcode height: 0.0100 Oblique title: <checked> 2e. Click Save 3. Create label template 3a. From "Label creator" page, click "New" then choose "Label template" 3b. Fill in the following fields: Template code: Standard Raeco 12603 Template description: Spine labels 11x12 Units: SI Centimeters Page height: 29.6 Page width: 21.1 Label width: 1.9 Label height: 2.4 Top page margin: 0.4 Left page margin: 0.1 Top text margin: 0.4 Left text margin: 0.3 Number of columns: 11 Number of rows: 12 3c. Click "Save" 4. Create label batch 4a. From the "Label creator" page, click "New" then choose "Label batch" 4b. Choose "Enter by barode" 4c. In the "Add by barcode(s) or itemnumbers(s):" box, paste the following: 39999000001310 39999000001310 39999000001310 39999000001310 39999000001310 39999000001310 4d. Click "Add item(s) 5. Export label batch 5a. Click "Export full batch" For "Select a template to be applied", choose "Standard Raeco 12603" For "Select a layout to be applied", choose "SPINE" 5b. Click "Export" 5c. Click "Download as PDF" 6. Note that the call numbers overrun the edge of the guideboxes 7. Apply the patch 8. restart_all 9. Click "Download as PDF" again 10. Note that the call numbers are now wrapped to fit within the guideboxes -- You are receiving this mail because: You are watching all bug changes.