[Koha-bugs] [Bug 31152] New: EasyAnalyticalRecord - trim leading whitespace from barcode when linking to host record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 13 22:54:19 CEST 2022


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

            Bug ID: 31152
           Summary: EasyAnalyticalRecord - trim leading whitespace from
                    barcode when linking to host record
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Cataloging
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: david at davidnind.com
        QA Contact: testopia at bugs.koha-community.org
                CC: m.de.rooy at rijksmuseum.nl

When adding analytical record relationships the easy way with the
EasyAnalyticalRecords system preference enabled, any leading whitespace in the
barcode is not trimmed.

To reproduce:
1. Enable the EasyAnalyticalRecord system preference - change to 'Show'.
2. Copy a barcode from any item, for example: 39999000000498
3. For any record with item, select Edit > Link to host record.
4. Enter item barcode:
   - paste the barcode into the input field
   - put spaces before the barcode
   - press 'Select'.
5. Note error message: "ERROR: Unable to get the item number from this
barcode.".

Notes:
- Only leading whitespace causes the error, trailing whitespace does not cause
the error.
- Recent bug 30409 did some work on consolidating barcode checking.

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


More information about the Koha-bugs mailing list