This story addresses exporting multiple record types when the user wants to export only selected fields and each field has provided transformation. The combination may include any combination of instance, holdings and item record types.
Given: the mapping profile contains selected fields and for each selected field the transformation is provided
When: all the record is generated on the fly during the export
- Only fields selected in the mapping profile are part of the exported record
- The fields are populated with the data coming inventory instance record according to transformations specified in the mapping profile
- If the file contains Instance record the LDR is re-generated based on the selected fields
- .mrc file is generated
- Unit and API tests are written