//= require spotlight/admin/blocks/resources_block SirTrevor.Blocks.SolrDocumentsBase = (function(){ return Spotlight.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() { return '
{{#if thumbnail}}
{{/if}}{{title}}
  {{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 $('