Sha256: e27bbdbd3d0c39584c36d1f3671e96abe8f3dd132e39ee4beebd123cba792966

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

module Spotlight
  class BrowseController < Spotlight::ApplicationController
    include Blacklight::Base
    copy_blacklight_config_from ::CatalogController

    load_resource :exhibit, class: "Spotlight::Exhibit", only: [:index]
    
    def index
      @searches = @exhibit.searches.published
    end

    def show
      @search = Spotlight::Search.published.find(params[:id])
      (@response, @document_list) = get_search_results @search.query_params
    end
    
    def _prefixes
      @_prefixes ||= super + ['catalog']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.2 app/controllers/spotlight/browse_controller.rb
blacklight-spotlight-0.0.1 app/controllers/spotlight/browse_controller.rb