Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


ui-eholdings will be able to create and send the export jobs from UI
      What should be done in this module:
     -
when a user clicks on the 'Actions' button, the modal window appears and shows multi-select controls filled with title & package fields
     - when a user clicks on the 'Export' button, UI creates a Job sending a request to mod-data-export-spring:
        "methods": [ "POST" ], "pathPattern": "/data-export-spring/jobs", "permissionsRequired": [ "data-export.job.item.post" ], "modulePermissions": []
        Request payload follows this schema: https://github.com/folio-org/folio-export-common/blob/master/schemas/job.json
        Only "type" and "exportTypeSpecificParameters" are enough to fill in, for example:
        Example:{
           "type": "E_HOLDINGS",  (required)
           "exportTypeSpecificParameters": {
             "recordId": "a95bc506-c706-11ec-9d64-0242ac120002", (required)
             "recordType": "RESOURCE",   (required)
             "titleSearchFilters": "",
             "packageFields": [ ],
             "titleFields": [ ]
       }
    }
         
      - store the fields available to export (see attached user story);
      - when the export has started, a modal window disapears and the green toast message appears, it shows a name of generating file, and an approximate duration of export. Duration is defined based on the number of records for export;

...