Module: Worthwhile::CatalogController::ClassMethods
- Defined in:
- app/controllers/concerns/worthwhile/catalog_controller.rb
Instance Method Summary collapse
Instance Method Details
#modified_field ⇒ Object
282 283 284 |
# File 'app/controllers/concerns/worthwhile/catalog_controller.rb', line 282 def modified_field solr_name('desc_metadata__date_modified', :stored_sortable , type: :date) end |
#search_config ⇒ Object
286 287 288 |
# File 'app/controllers/concerns/worthwhile/catalog_controller.rb', line 286 def search_config {'qf' => ['desc_metadata__title_tesim','desc_metadata__name_tesim'], 'qt' => 'search', 'rows' => 10} end |
#t(*args) ⇒ Object
273 274 275 |
# File 'app/controllers/concerns/worthwhile/catalog_controller.rb', line 273 def t *args I18n.translate *args end |
#uploaded_field ⇒ Object
277 278 279 280 |
# File 'app/controllers/concerns/worthwhile/catalog_controller.rb', line 277 def uploaded_field # system_create_dtsi solr_name('desc_metadata__date_uploaded', :stored_sortable, type: :date) end |