Sha256: ff6441c23a1fe988889abe67992a54cd3d44437f782db4dc10ca87a481d0d0f9
Contents?: true
Size: 946 Bytes
Versions: 5
Compression:
Stored size: 946 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 t(*args) I18n.translate(*args) end 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 { 'qf' => %w(title_tesim name_tesim), 'qt' => 'search', 'rows' => 10 } end end end
Version data entries
5 entries across 5 versions & 1 rubygems