Uploaded image for project: 'mod-gobi'
  1. mod-gobi
  2. MODGOBI-86

Separate ISBN and qualifier

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.8.0
    • 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

            Activity

              People

                aliaksandr_pautau Aliaksandr Pautau
                cmcnally Craig McNally
                Aliaksandr Pautau Aliaksandr Pautau
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases