import Iiif from 'spotlight/admin/iiif' import Core from 'spotlight/core' SirTrevor.Blocks.SolrDocumentsBase = (function(){ return Core.Block.Resources.extend({ plustextable: true, autocomplete_url: function() { return this.$instance().closest('form[data-autocomplete-exhibit-catalog-path]').data('autocomplete-exhibit-catalog-path').replace("%25QUERY", "%QUERY"); }, autocomplete_template: function(obj) { const thumbnail = obj.thumbnail ? `
` : '' return `
${thumbnail} ${obj.title}
  ${obj.description}
` }, transform_autocomplete_results: function(response) { return $.map(response['docs'], function(doc) { return doc; }) }, caption_option_values: function() { var fields = $('[data-blacklight-configuration-index-fields]').data('blacklight-configuration-index-fields'); return $.map(fields, function(field) { return $('