Uploaded image for project: 'mod-inventory'
  1. mod-inventory
  2. MODINV-483

Generate Holdings from Marc Holdings

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 123
    • Story Points:
      3
    • Development Team:
      Spitfire
    • Release:
      R3 2021

      Description

      Purpose

       In this story we need to make mod-inventory to generate Holdings from incoming SRS Marc Holdings

      Approach

       Create a new handler CreateMarcHoldingsEventHandler that handles the event DI_SRS_MARC_HOLDINGS_RECORD_CREATED. The new handler should be written in the same principle as CreateInstanceEventHandler.

      What the CreateMarcHoldingsEventHandler receives in event payload:

      • default mapping rules
      • SRS Holdings record

      What the CreateMarcHoldingsEventHandler does:
       - generates Holdings using the corresponding Processor from data-import-processing-core
       - retrieves Inventory Instance by the given HRID, takes instance.id and sets instanceId to generated Holdings
       - saves Holdings to the DB
       - throws DI_INVENTORY_HOLDINGS_CREATED_READY_FOR_POST_PROCESSING, prepare event payload for post-processing.

      Acceptance criteria

      • The mod-inventory accepts DI_SRS_MARC_HOLDINGS_RECORD_CREATED event generating Holdings
      • The functionality is covered by unit tests
      • The created Holdings are available from mod-inventory UI application to view

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Oleksandr Dekin Oleksandr Dekin
                Reporter:
                Igor_Gorchakov Igor Gorchakov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases