MODORDSTOR-108 introduces a new "qualifier" field to poLine->details->productIds.item. We need to pull in the new schema and start splitting out the qualifier (if present) into this field.
The qualifier can appear in two different places... As part of the same subfield 20$a, or in a separate subfield 20$q
Should both produce:
(Where 8261054f-be78-422d-bd51-4ed9f33c3422 is the UUID of the ISBN productIdType)
1. Create a mapping that looks for the qualifier in "20$q". If found this is used in the qualifier field as-is.
2. Parse the "20$a" field - this might be tricky but I think for now we can assume that the qualifier is wrapped in parenthesis, so a simple string split on whitespace should suffice. The qualifier should be used as is - i.e. Do not strip the parenthesis
The qualifier found in in the subfield should take precedence if in the off chance a qualifier is specified in both places (Not sure if this is even valid).
- Qualifiers are separated and provided in the new productId qualifier field
- Unit tests are updated - test data should be updated to cover qualifiers appearing in either 20$a or 20$q
- API tests are updated