Module: CommonwealthVlrEngine::CollectionsControllerBehavior
- Extended by:
- ActiveSupport::Concern
- Includes:
- Blacklight::Configurable, Blacklight::SearchHelper
- Included in:
- CollectionsController
- Defined in:
- app/controllers/concerns/commonwealth_vlr_engine/collections_controller_behavior.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/concerns/commonwealth_vlr_engine/collections_controller_behavior.rb', line 23 def index @nav_li_active = 'explore' (@response, @document_list) = search_results(params) params[:view] = 'list' params[:sort] = 'title_info_primary_ssort asc' respond_to do |format| format.html end end |
#range_limit ⇒ Object
58 59 60 |
# File 'app/controllers/concerns/commonwealth_vlr_engine/collections_controller_behavior.rb', line 58 def range_limit redirect_to range_limit_catalog_path(params.except('controller', 'action')) and return end |
#show ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'app/controllers/concerns/commonwealth_vlr_engine/collections_controller_behavior.rb', line 34 def show @nav_li_active = 'explore' @show_response, @document = fetch(params[:id]) @collection_title = @document[blacklight_config.index.title_field.to_sym] # add params[:f] for proper facet links params[:f] = set_collection_facet_params(@collection_title, @document) # get the response for the facets representing items in collection (@response, @document_list) = search_results({:f => params[:f]}) # get an image for the collection if @document[:exemplary_image_ssi] @collection_image_pid = @document[:exemplary_image_ssi] @collection_image_info = get_collection_image_info(@collection_image_pid, @document[:id]) end respond_to do |format| format.html end end |