Hello,
My name is Willian and the institution I work for in Brazil has adopted the import of digital objects via csv.
When we import remote digital objects we get the following error: "Could not read the file". Analyzing the code I noticed that in digitalObjectLoadTask.class.php there are path validations for local digital objects. Thus, any and all remote digital objects are barred.
To resolve this, I replaced importFromFile with importFromURI for creating the digital object.
With these changes, the code allows sending local and remote digital objects in the same csv, validating the URI by the presence of the host. If the host does not exist, import the object with the local path.
We are using Atom version 2.7.1 - 192
Linux - Ubuntu 20.04.
Elasticsearch 5.6.
I opened a pull request on the github repository with a proposed code modification.
Cheers,
Willian
Technical Advisor
Arquivo Público do Estado de São Paulo