Bug 37718 - MarcFieldsToOrder cannot process repeated fields
Summary: MarcFieldsToOrder cannot process repeated fields
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Matt Blenkinsop
QA Contact: Testopia
URL:
Keywords:
Depends on: 35026
Blocks:
  Show dependency treegraph
 
Reported: 2024-08-23 16:29 UTC by Nick Clemens (kidclamp)
Modified: 2024-09-13 16:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2024-08-23 16:29:03 UTC
Before bug 35026 the MarcFieldsToOrder system preference would simply take the first value from a field if there were multiple - it now throws an error when trying to pull price from 020$c if there are two isbns.

To test:
1 - Find a marc file with 2 isbn fields, each including price
2 - Add to MarcFieldsToOrder:
    price: 020$c
3 - Stage file
4 - Add to basket from staged file
5 - Error:
    Invalid number of fields detected on field 020, please check this file at /kohadevbox/koha/Koha/MarcOrder.pm line 156