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
The "Add items" function includes a tab "Upload multiple items" which allows you to load in a CSV file. If there are exhibit-specific fields, these are given as column headings in the CSV template provided by that function, but any data provided in those columns does not get stored or indexed in Solr.
Steps to reproduce
On a minimally-customised Spotlight application based on the latest Spotlight engine, create an exhibit, and in the Metadata area of the dashboard create a new field. For example, you might use the Label "Subject". Depending on whether you tick the "Controlled vocabulary" option, the field subject_tesim or subject_ssim will be created.
You can then go to "Upload multiple items" and download the template, which will include the new field.
If you load the CSV file with data in that column, the data appears in the spotlight_resources record, serialised in the "data" field, but it does not appear in spotlight_solr_document_sidecars, and is not stored or indexed in Solr. This means it is not available to be shown in the results.
If we find one of the records uploaded in this way, and click Edit, we get a form with the Subject field available. If we enter data in there and save it, the information is correctly stored in spotlight_solr_document_sidecars and Solr, and will appear in the results.
Fields which have been configured globally across all exhibits by defining them in config/initializers/spotlight_initializer.rb are not affected in this way: you can load those via the CSV loader without any trouble.
The text was updated successfully, but these errors were encountered:
Summary
The "Add items" function includes a tab "Upload multiple items" which allows you to load in a CSV file. If there are exhibit-specific fields, these are given as column headings in the CSV template provided by that function, but any data provided in those columns does not get stored or indexed in Solr.
Steps to reproduce
On a minimally-customised Spotlight application based on the latest Spotlight engine, create an exhibit, and in the Metadata area of the dashboard create a new field. For example, you might use the Label "Subject". Depending on whether you tick the "Controlled vocabulary" option, the field subject_tesim or subject_ssim will be created.
You can then go to "Upload multiple items" and download the template, which will include the new field.
If you load the CSV file with data in that column, the data appears in the spotlight_resources record, serialised in the "data" field, but it does not appear in spotlight_solr_document_sidecars, and is not stored or indexed in Solr. This means it is not available to be shown in the results.
If we find one of the records uploaded in this way, and click Edit, we get a form with the Subject field available. If we enter data in there and save it, the information is correctly stored in spotlight_solr_document_sidecars and Solr, and will appear in the results.
Fields which have been configured globally across all exhibits by defining them in config/initializers/spotlight_initializer.rb are not affected in this way: you can load those via the CSV loader without any trouble.
The text was updated successfully, but these errors were encountered: