Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
Spitfire Sprint 138, Spitfire Sprint 139
-
3
-
Spitfire
-
Morning Glory (R2 2022)
-
TBD
Description
Context: Update Results List Actions menu to include the option to export a csv of authority records UUIDs to load to the Data export app to create the .mrc file of selected authority records
Requirement 1: Show a disabled Export selected records (CSV/MARC) option when no record has been selected.
Given I have not selected an authority record
When I open the Results List Actions menu
Then before the Show columns section
Display 1.) Actions header and 2.) Below the Actions header show the following as disabled on the same line
- Icon: Export icon (See https://ux.folio.org/storybook/?path=/story/icon--available-icons)
- Label: Export selected records (CSV/MARC)
Requirement 2: Show a enabled Export selected records (CSV/MARC-) option when a record has been selected.
Given I have selected an authority record
When I open the Results List Actions menu
Then before the Show columns section
Display 1.) Actions header and 2.) Below the Actions header show the following as enabled on the same line
- Icon: Export icon (See https://ux.folio.org/storybook/?path=/story/icon--available-icons)
- Label: Export selected records (CSV/MARC)
Requirement 4: Retain All export selections
- Unsuccessful csv export job
- When updating search/filter/facets
Requirement 5: Clear All export selections
- Successful csv export job
- Search pane > Click Reset all
- Switch Browse/Search toggle
Requirement 6: Export a csv file to upload to Data Import to generate .mrc file
Given I select an authority record(s)
When I choose the Export selected records (CSV/MARC) option under the Results List Actions menu
Then export .csv file is successfully downloaded and should include a list of de-duplicated authority record UUIDs stored in SRS
AND show successful toast notification: <<export job name>> is complete. The .csv downloaded contains selected records' UIIDs. To retrieve the .mrc file, please go to the Data export app.
Requirement 7: Export file should only include unique UUIDs
Given I select several records including with a variety of reference types: Authorized, Reference, Auth/Ref
AND several of the selections are on the same record therefore share the same UUID
When I chose Export selected records (CSV/MARC)
Then export file should NOT include duplicates
Requirement 8: Generate export file name
IF I chose Export selected records (CSV/MARC)
THEN generate an export file name that follows this format: QuickAuthorityExport<<Request date completed YYYY-MM-DD>>T<<Request time completed hh_mm_ss-<<unsure of what the logic is on for the last 5 characters / will need to ask Firebird+Magda>>.csv
Requirement 9: Export a csv file is in progress. Taking longer than expected.
Given generating csv file and showing the file on the browser is taking more than 5 seconds
Then display the following toast notification: Request to export selections has been received. File download may take a few minutes.
AND selections should be retained until export is successful
AND paneheader should retain total number of selections
Requirement 10: Export a csv file fails
If generating a csv file fails then display a toast notification message - > Unable to complete request, please try again.
AND selections should be retained
AND paneheader should retain total number of selections
Requirement 11: Once export is successful then display a disabled Export authorities UUIDs (CSV) option in the Action menu
Given the export is successful
When I click the Results list Actions menu
Then display the option Export selected records (CSV/MARC) disabled
TestRail: Results
Attachments
Issue Links
- defines
-
UIMARCAUTH-146 Export ".csv" file failed because of missing permission
-
- Closed
-
- has to be done after
-
UIMARCAUTH-120 Allow user to select MARC authority record(s) to export
-
- Closed
-
- is required by
-
UIMARCAUTH-130 Add a Select all/Un-select all on Results List
-
- Closed
-
- relates to
-
UXPROD-3673 Export - MARC authority records
-
- Closed
-