Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
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:
- All holding fields that are listed in Holdings to Simplified MFHD tab in https://docs.google.com/spreadsheets/d/1ac95azO1R41_PGkeLhc6uybAKcfpe6XLyd9-F4jqoTo/edit#gid=1117349574 have a representation in a separate default mapping rules file.
- As mapping rules for MFHD should not be allowed to be overridden using mod-configuration,
- Unit tests are updated
- The logic in RuleFactory is changed according to the above
TestRail: Results
Attachments
Issue Links
- defines
-
UXPROD-1396 Generating simple MARC Holdings from Inventory holdings record
-
- Closed
-
- has to be done before
-
MDEXP-303 Generate MFHD records on the fly
-
- Closed
-
- is defined by
-
GMU-3 Fix class cast exception during fields mapping
-
- Closed
-