Class: Hyrax::ActiveWorksSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Includes:
FilterByType
Defined in:
app/search_builders/hyrax/active_works_search_builder.rb

Overview

Finds a list of works. It returns no result if you don’t have access to the requested work. If the work is suppressed (due to being in a workflow), then it checks to see if the current_user has any workflow role on the given work.

Direct Known Subclasses

MyWorksSearchBuilder, WorksSearchBuilder

Instance Method Summary collapse

Methods included from FilterByType

#filter_models

Methods inherited from SearchBuilder

#show_only_resources_deposited_by_current_user

Methods included from SearchFilters

#discovery_permissions, #gated_discovery_filters

Methods included from FilterSuppressed

#only_active_works

Instance Method Details

#only_works?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/search_builders/hyrax/active_works_search_builder.rb', line 9

def only_works?
  true
end