You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the JSON created when exporting a complete exhibition fails to link the metadata object in solr_document_sidecars with the IIIF manifest in the "resources" array further down the file.
Steps to reproduce:
Create a new exhibition, giving it a name and a slug.
Go to "Items" and "Add items" and choose the "IIIF URL" option.
Paste in a manifest URL to import a single item.
In the General section, use the "Export data" facility to produce the JSON file.
The "resources" object contains the unique IIIF manifest, but no other unique values that could link it to the main metadata object.
The document in Solr itself looks like this, and has all the information you would expect in a single object:
{
"spotlight_resource_id_ssim":["gid://dur-spotlight/Spotlight::Resources::IiifHarvester/298"],
"spotlight_resource_type_ssim":["spotlight/resources/iiif_harvesters"],
"id":"156ca8ee331bda9ff474bac5a529e9e9",
"exhibit_matthew-small_public_bsi":true,
"exhibit_matthew-small_readonly_published_tesim":["1800 - 1900; late Qing dynasty"],
"exhibit_matthew-small_readonly_dimensions_tesim":["diameter 57 mm; circumference 185 mm"],
"exhibit_matthew-small_readonly_description_tesim":["Ivory ball of 'Devil's Work', contains nine layers including the surface layer. The inner balls are decorated with openwork star patterns, while the outer ball is decorated with three four-claw dragons amidst swirling clouds. Made for export."],
"spotlight_exhibit_slug_matthew-small_bsi":true,
"spotlight_exhibit_slugs_ssim":["matthew-small"],
"full_title_tesim":["Ball (Ivory carving, decorated with carve-in-relief and openwork design.) 牙雕穿花龙纹鬼工球; 鬼工球; Guigong qiu - DUROM.2001.97"],
"full_image_url_ssm":["https://iiif.durham.ac.uk/iiif/trifle/8d/1b/ae/8d1bae24c15004a0c63945f53e64ed82/a3b5372b7d7e3613653abdf906ef9f51.jp2/full/full/0/default.jpg"],
"iiif_manifest_url_ssi":"https://iiif.durham.ac.uk/manifests/trifle/museum/object/19/60/19606/manifest",
"content_metadata_image_iiif_info_ssm":["https://iiif.durham.ac.uk/iiif/trifle/8d/1b/ae/8d1bae24c15004a0c63945f53e64ed82/a3b5372b7d7e3613653abdf906ef9f51.jp2/info.json","https://iiif.durham.ac.uk/iiif/trifle/8d/1b/ae/8d1bae24c15004a0c63945f53e64ed82/baa4e79d9883a9035c304243da10d86a.jp2/info.json","https://iiif.durham.ac.uk/iiif/trifle/8d/1b/ae/8d1bae24c15004a0c63945f53e64ed82/76e9457a3ce6656950e0c4f13c374c42.jp2/info.json"],
"readonly_published_tesim":["1800 - 1900; late Qing dynasty"],
"readonly_dimensions_tesim":["diameter 57 mm; circumference 185 mm"],
"readonly_description_tesim":["Ivory ball of 'Devil's Work', contains nine layers including the surface layer. The inner balls are decorated with openwork star patterns, while the outer ball is decorated with three four-claw dragons amidst swirling clouds. Made for export."],
"_version_":1780018841720455168,
"timestamp":"2023-10-17T15:57:32.067Z",
"score":2.9375608
}
It looks very much like the Export process does not export sufficient information to allow the item to be recreated properly.
The text was updated successfully, but these errors were encountered:
It seems that the JSON created when exporting a complete exhibition fails to link the metadata object in solr_document_sidecars with the IIIF manifest in the "resources" array further down the file.
Steps to reproduce:
Example of export.
matthew-small-export.json
The indexing fails with an error "undefined method `downcase' for nil:NilClass" with details:
In the JSON file there is a solr_document_sidecars array containing a single object. It contains the metadata for the object:
Further down the file there is "resources":
Note that the solr_document_sidecars contains two values that could be used as unique IDs, document_id and resource_id:
The "resources" object contains the unique IIIF manifest, but no other unique values that could link it to the main metadata object.
The document in Solr itself looks like this, and has all the information you would expect in a single object:
It looks very much like the Export process does not export sufficient information to allow the item to be recreated properly.
The text was updated successfully, but these errors were encountered: