Module: Hyrax::Works::ManagedWorksService
- Defined in:
- app/services/hyrax/works/managed_works_service.rb
Class Method Summary collapse
-
.managed_works_count(scope:) ⇒ Array<SolrDocument>
Count of works the current user can manage.
Class Method Details
.managed_works_count(scope:) ⇒ Array<SolrDocument>
Count of works the current user can manage.
10 11 12 13 |
# File 'app/services/hyrax/works/managed_works_service.rb', line 10 def self.managed_works_count(scope:) query_builder = Hyrax::Dashboard::WorksSearchBuilder.new(scope).rows(0) scope.repository.search(query_builder.query).response["numFound"] end |