export metadata formatted for aspace digital objects
Descriptive summary
Sample digital object below. For GUI management, place launcher on bulkrax importer show page, i.e. once an import is complete, the process will use the importer's pids to generate an export json, ignoring any item without an archival_object_id. If a work failed to persist, a warning will be added to errors. both the export json and the errors will be rendered.
Expected behavior
Related work
Link to related tickets or prior related work here.
Accessibility Concerns
Add any information here to indicate any known or suspected accessibility issues for this ticket
{"jsonmodel_type":"digital_object","is_slug_auto":false,"extents":[],"dates":[{"label":"creation","jsonmodel_type":"date","date_type":"inclusive","expression":"1897/1912","begin":"1897","end":"1912"}],"title":"U'Ren, William S. [b013] [f008]","lang_materials":[{"jsonmodel_type":"lang_material","language_and_script":{"language":"eng","jsonmodel_type":"language_and_script"}}],"file_versions":[{"publish":true,"is_representative":true,"use_statement":"image-thumbnail","xlink_actuate_attribute":"onLoad","xlink_show_attribute":"embed","file_uri":"https://iiif.oregondigital.org/iiif/f0/h4/15/pb/66/6-jp2-0000.jp2/full/430,/0/default.jpg"},{"publish":true,"is_representative":false,"use_statement":"image-service","xlink_actuate_attribute":"onRequest","xlink_show_attribute":"new","file_uri":"https://oregondigital.org/concern/generics/79407z008"}],"digital_object_type":"Mixed Materials","linked_instances":[{"ref":"/repositories/2/archival_objects/17801"}],"digital_object_id":"Ax019_b013_f008","publish":true,"restrictions":false,"suppressed":false}]}
Typo prevents importers with no eligible items from borking the process.
Rendering results directly to browser is proving to be impractical with an importer of any real size. Redo delivery with method used for the collection members export (see #3157)
Also, fix linked_instance so that if the work's archival_object_id value has anything other than the numerical id, it is cleaned first. Eg. "["123456"]" or "archival_objects/123456"
QA Fail.
This might be an edge case but this Importer has a Generic work that is giving a bad file_uri.
https://staging.oregondigital.org/importers/136/show_do_export?locale=en
"file_uri\":\"https://oregondigital.org/concern/solrdocuments/vq27zn474\"}"
Might be good to not hard-code the OD domain as well so this could work from the staging site, here: https://github.com/OregonDigital/OD2/blob/master/app/models/concerns/oregon_digital/uri_methods.rb#L19
QA: Here are a couple of importers to try: https://staging.oregondigital.org/importers/80 (generic with children) https://staging.oregondigital.org/importers/73 (an image) only items with archival object ids will be processed for 73, the image has an archival_object_id, the file version with representative=true should have the iiif uri; the file version with representative=false should have the showpage uri for 80, only the generic has an archival_object_id, the file version with representative=true should have the iiif uri of a child, the file version with representative=false should have the showpage uri
Closed by #3336
QA Pass. Metadata looks good. IIIF URLs work and show when relevant. Errors show if no archival_object_id.