6. Create MARC Authority
Description
Save MARC_Authority + create Inventory Authority
NB: Save MARC_AUTHORITY action is implicit
Flow
- JobDefinition (UUID, profile - defines job type: insert/update) for import created in mod-srm
- MARC file + JobDefinition ID are uploaded from WEB client to mod-data-import
- MARC records are packed into batches and put to Kafka queue DI_RAW_RECORDS_CHUNK_READ
- mod-srm reads batches from the queue, validates, generates a UUID for Inventory record, and sets it to '999ff i' field and passes to mod-srs via Kafka queue DI_RAW_RECORDS_CHUNK_PARSED. Job starts on the first chunk received.
- mod-srs stores records into PostgreSQL database and returns the result back via Kafka queue (broken records are also stored as 'error record') - DI_PARSED_RECORDS_CHUNK_SAVED
- mod-srm reads the profile and creates JSON payload (containing parsed MARC, profile, mapping parameters) for processing. exports it to an appropriate Kafka queue (one message per MARC entry) - DI_SRS_MARC_AUTHORITY_RECORD_CREATED,
- mod-inventory reads the message, map Authority from MARC with mapping rules. Stores (via OKAPI HTTP) in mod-inventory-storage. Exports message DI_COMPLETED