Skip to content

Import browser ​

Pick a folder on a network drive and start importing it.

components-importbrowser--folder-selectedOpen in Storybook ↗

When to use ​

  • Importing a folder that already sits on a mounted network drive, such as a scanned batch or a magazine with its CSV or METS file.

When not to use ​

  • Files on the user's own computer: use upload.

Anatomy ​

  1. Folder list: the drive's top-level folders as a folder tree. It scrolls when it is taller than three quarters of the window.
  2. Footer: a full-width Start import button that sticks to the bottom of the list. It stays disabled until a folder is selected.

The import browser is a field of a form: it sits in the form's dialog, under any other fields that form has.

Variants ​

VariantListsOn Start import
Folder importfolders on the driveimports the selected folder
Magazine with CSVmagazine foldersimports the folder with its CSV file
Magazine with METSmagazine folderschecks the form's other fields first, then imports the folder with its METS file

Which variant shows depends on the form's field type.

States ​

StateWhat you seeTrigger
Loadinga spinner instead of the listopening
Foldersthe folder tree; Start import disabledfolders loaded
Folder selectedthe folder's row highlighted; Start import enabledclicking a folder
No foldersNo import directories availablethe drive has no folders
Starteda notification, then the import's job pagethe import starts
Failedan error notification with the reasonthe import cannot start
components-importbrowser--loadingOpen in Storybook ↗
components-importbrowser--no-foldersOpen in Storybook ↗

When the import starts, the form closes and the job page opens, so people can follow the import there. If there is no job to open, the jobs list opens.

Keyboard & accessibility ​

  • Start import is a native button: Tab reaches it, Enter or Space starts the import, and it is disabled until a folder is selected.
  • Folders are selected and opened with the pointer; see the folder tree.

Content ​

  • Error messages name the folder and what is wrong: Expected exactly 1 CSV file in {folder}, found {count}.
  • Translation keys: import.start-import, import.no-directories, import.error-csv-count.

Folder tree · Upload · Modal

Powered by Elody - Open Source Semantic Data Platform