Class: CatalogController

Inherits:
ApplicationController
  • Object
show all
Includes:
Hydra::Catalog, Hydra::Controller::ControllerBehavior
Defined in:
lib/generators/hyrax/templates/catalog_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.modified_fieldObject


12
13
14
# File 'lib/generators/hyrax/templates/catalog_controller.rb', line 12

def self.modified_field
  solr_name('system_modified', :stored_sortable, type: :date)
end

.uploaded_fieldObject


8
9
10
# File 'lib/generators/hyrax/templates/catalog_controller.rb', line 8

def self.uploaded_field
  solr_name('system_create', :stored_sortable, type: :date)
end

Instance Method Details

#render_bookmarks_control?Boolean

disable the bookmark control from displaying in gallery view Hyrax doesn't show any of the default controls on the list view, so this method is not called in that context.

Returns:

  • (Boolean)

288
289
290
# File 'lib/generators/hyrax/templates/catalog_controller.rb', line 288

def render_bookmarks_control?
  false
end