Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
ACQ Sprint 73, ACQ Sprint 74
-
2
-
Thunderjet
Description
Overview
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
Example:
<datafield tag="020" ind1=" " ind2=" "> <subfield code="a">9780817913465 (electronic bk.)</subfield> </datafield> OR <datafield tag="020" ind1=" " ind2=" "> <subfield code="a">9780817913465</subfield> <subfield code="q">(electronic bk.)</subfield> </datafield>
Should both produce:
{ ... "productIds": [ { "value": "9780817913465", "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422", "qualifier": "(electronic bk.)" } ], ... }
(Where 8261054f-be78-422d-bd51-4ed9f33c3422 is the UUID of the ISBN productIdType)
Approach
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).
Acceptance Criteria
- 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
TestRail: Results
Attachments
Issue Links
- relates to
-
MODORDSTOR-108 Add qualifier field to poLine->details->productIds[]
-
- Closed
-
-
UIOR-332 Add validation to POL product id field if product id type is isbn
-
- Closed
-
-
UIOR-392 Move ISBN Qualifier to separate field in UI Create/Edit screen
-
- Closed
-
-
UIOR-393 Change UI for POL Contributor and Product ID fields to grid format and add Qualifier
-
- Closed
-