biigle / volumes

:m: BIIGLE module to create, edit and explore image volumes
0 stars 0 forks source link

Add optional directory browser for volume creation #48

Closed mzur closed 6 years ago

mzur commented 6 years ago

For BIIGLE OTS create a simple directory browser that can be used to create volumes. The browser is only enabled for the OTS configuration (or global admins?). It is displayed on the create volume page and can be used to select a directory from a storage disk. When a directory is selected, the directory URL and the filenames of all images in the directory are automatically inserted in the create volume form.

First, the user selects a storage disk to browse. These must be restrictable as not all storage disks are used to store images. Then the user can select directories in the storage disk and can move down and up in the directory tree. These requests are handled with AJAX. If a directory is selected for import, the AJAX request fetches the final URL and list of image files to populate the form fields.