digitalobject:load task not working with identifier column
|Assignee:||Jesús García Crespo||% Done:|
|Target version:||Release 2.1.0|
|Google Code Legacy ID:||Tested version:||2.0.1, 2.1|
Based on the code it looks like you should be able to use either information_object_id or identifier as the key for the digitalobject:load task.
But when the csv file has an identifier column, I get (in 2.x):
Invalid information_object id
The good news is that this functionality isn't currently documented. But it would be very useful :)
#8 Updated by Dan Gillean almost 8 years ago
- File digi-object-sample-csv.png added
- File digital-object-load-options.png added
- File digi-object-load-success.png added
- Status changed from QA/Review to Verified
- Tested version 2.0.1, 2.1 added
Tested in qa/2.1.x.
Since this has not yet been well documented in AtoM 2 documentation, I will add simple notes here so we can refer to this when updating the docs, and for any public users coming across this issue.
Previous documentation for the digitalobject:load task could be found here: https://www.qubit-toolkit.org/wiki/CSV_import#Digital_object_load_task
This task allows a user to use a CSV to associate 1 digital object per 1 information object in AtoM. In the past the user had to know the information_object_id of the description to which they wanted to attach a digital object - which meant finding this information out through AtoM's GUI was not possible.
Now, instead of information_object_id, a user can use the identifier associated with the description instead (note: NOT the full reference code, even if reference code inheritance is turned on). You must ensure that the identifier is unique in your AtoM instance to ensure results - otherwise, we recommend using the information_object_id.
Works with a CSV formatted with 2 columns - identifer, and filename. Filename must include full path to the digital object. An image of a sample CSV file is attached, and appended visibly here:
By default in the task, indexing is turned OFF, so the user must re-index afterwards (php symfony search:populate)