uclibs / scholar_uc_legacy

Source code for Scholar@UC up to version 3.x. Replaced by ucrate
Other
5 stars 1 forks source link

Batch load - adjust to maintain order of files #1928

Closed newmanld closed 5 years ago

newmanld commented 6 years ago

Descriptive summary

The order of files belonging to works matters for works we will export from the DRC. It would be highly desirable if the batch load can maintain an order indicated by either: a) the default filename (ascending) sort order in a directory of files and/or b) the order of files as listed in the csv file.

It appears (more testing not a bad idea) that the folder upload now possible when uploading individual works in the GUI, does maintain filename order - at least in one case with 19 files, and using folder upload, this order was maintained.

Expected behavior

File order on individual works loaded via batch is predictable and can be controlled.

Actual behavior

File order may be arbitrary.

newmanld commented 6 years ago

Side comment about GUI behavior with Folder Upload on individual works: It appears that in the GUI folder upload may pay attention to the order of files by date modified, and that in the examples I tested earlier, filename and date modified were coincidentally the same order. But this is still predictable, and better than an arbitrary order.

Instead of Folder Upload, in the GUI one can choose File Upload and sort by name and still load a folder of files in name order, if date modified order would be different.

jamesvanmil commented 6 years ago

I think this is working - need to test on QA. Blocked, pending security scanning to complete.

hortongn commented 5 years ago

Moved to https://github.com/uclibs/ucrate/issues/729