Sha256: e40b8860a3a138d5abab8a8905ee9c85c4e4b3a49f2b40b6edec83e14600aee2

Contents?: true

Size: 1019 Bytes

Versions: 23

Compression:

Stored size: 1019 Bytes

Contents

module CurationConcerns::CatalogController
  extend ActiveSupport::Concern
  include Hydra::Catalog
  # Extend Blacklight::Catalog with Hydra behaviors (primarily editing).
  include Hydra::Controller::ControllerBehavior
  include BreadcrumbsOnRails::ActionController
  include CurationConcerns::ThemedLayoutController

  included do
    with_themed_layout 'catalog'
    helper CurationConcerns::CatalogHelper
    # These before_filters apply the hydra access controls
    before_action :enforce_show_permissions, only: :show
  end

  module ClassMethods
    def uploaded_field
      #  system_create_dtsi
      solr_name('date_uploaded', :stored_sortable, type: :date)
    end

    def modified_field
      solr_name('date_modified', :stored_sortable, type: :date)
    end

    def search_config
      ActiveSupport::Deprecation.warn("#{self.class}.search_config is deprecated and will be removed in CurationConcerns 1.0")
      { 'qf' => %w(title_tesim name_tesim), 'qt' => 'search', 'rows' => 10 }
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre1 app/controllers/concerns/curation_concerns/catalog_controller.rb
curation_concerns-0.11.0 app/controllers/concerns/curation_concerns/catalog_controller.rb
curation_concerns-0.11.0.rc1 app/controllers/concerns/curation_concerns/catalog_controller.rb