Uploaded image for project: 'mod-data-export'
  1. mod-data-export
  2. MDEXP-12

Create Inventory Holdings to MFHD record mapping rules

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 4.0.0
    • None
    • Concorde - Sprint 104
    • 2
    • Concorde

    Description

      Purpose:

      While creating MFHD record on the fly for an inventory holdings record the holdings data will need to be mapped to the specific MARC for Holdings record fields. The mapping is currently tracked in Holdings to Simplified MFHD tab in https://docs.google.com/spreadsheets/d/1ac95azO1R41_PGkeLhc6uybAKcfpe6XLyd9-F4jqoTo/edit#gid=1117349574. As a result of this user story, there will be a mapping file similar to https://github.com/folio-org/mod-source-record-manager/blob/a23fe7e9ed5e10178fbf9822a8b11d4551218eb9/mod-source-record-manager-server/src/main/resources/rules/rules.json

      Scenario:

      • Given: An inventory holdings record
      • When: Mapping it to MARC for Holdings record
      • Then: For each inventory holding field listed in the mapping spreadsheet there the existing mapping to an appropriate MFHD field

      Approach:

      In Rules Factory if the Mapping profile doesn't have any transformations(i.e selected and no transformations values are provided or individual fields not selected but just Record type is selected),
                                   -  then try to get the overridden rules only if on Record Type contains "Instance" . If it has holdings, then always use the default MFHD rules
                                   - If no overriden rules get the correct default file for instances/holdings based on the record type
             - If there are transformations use them.
      

      Acceptance criteria:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrii Andrii Novytskyi
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases