Spike: MODSOURCE-274 Store MARC Holdings record
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
Jira Legacy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Description
This page is created to describe a flow when the FOLIO Holdings records are getting created while importing MARC Holdings records using the data-import system.
...
Action profile: Field Mapping profile:
...
Flow
The user uploads the MARC file, chooses an Action profile & Mapping profile on the UI application, starts the import process
Step№ | Module | Task | Event produced on task completion |
---|---|---|---|
1 | mod-data-import | Sends a batch of records to Kafka queue | DI_RAW_RECORDS_CHUNK_READ |
2 | mod-source-record-manager | Receives a chunk of records, |
Performs validation: if the Holdings record has a corresponding SRS Marc Bib record with the same Hrid (004 Holdings field) then the record is valid, |
Logs invalid records without storing in SRS | DI_RAW_RECORDS_CHUNK_PARSED | ||
3 | mod-source-record-storage | Receives the event from SRM, Stores Marc && Json Holdings records into the database and returns the result back via Kafka queue | DI_PARSED_RECORDS_CHUNK_SAVED |
4 | mod-source-record-manager | Receives the event from SRS, creates JSON payload (containing parsed MARC, profile, mapping parameters) for further processing, and sends it to the queue | DI_SRS_MARC_ |
HOLDING_RECORD_CREATED | |||
5 | mod-inventory | Generate Holdings FOLIO record from Json SRS record using default mapping rules, Sends FOLIO record to mod-inv-storage | DI_ERROR |
6 | mod-source-record-storage | Holdings HRID is set to '001' MARC_BIB field, The value from '001' is moved to '035', Holdings ID is set to '999 ff i' field | DI_SRS_MARC_HOLDINGS_HRID_SET |
7 | mod-inventory | Updates the existing Folio record (Hrid only) | DI_COMPLETE |