app/models/spotlight/page_configurations.rb in blacklight-spotlight-3.0.0.rc2 vs app/models/spotlight/page_configurations.rb in blacklight-spotlight-3.0.0.rc3
- old
+ new
@@ -38,10 +38,11 @@
'blacklight-configuration-index-fields': available_index_fields,
'blacklight-configuration-search-views': available_view_configs,
'attachment-endpoint': attachment_endpoint,
'autocomplete-exhibit-catalog-path': exhibit_autocomplete_endpoint,
'autocomplete-exhibit-pages-path': page_autocomplete_endpoint,
+ 'autocomplete-exhibit-browse-groups-path': browse_groups_autocomplete_endpoint,
'autocomplete-exhibit-searches-path': search_autocomplete_endpoint,
'preview-url': page_preview_url
}.merge(downstream_parameters)
end
@@ -58,9 +59,13 @@
available_view_fields.map { |k, _| { key: k, label: view_label(k) } }
end
def attachment_endpoint
spotlight.exhibit_attachments_path(current_exhibit)
+ end
+
+ def browse_groups_autocomplete_endpoint
+ spotlight.exhibit_groups_path(current_exhibit)
end
def exhibit_autocomplete_endpoint
spotlight.autocomplete_exhibit_catalog_path(current_exhibit, q: '%QUERY', format: 'json')
end