Sha256: cb4be7b06eaa3cc5aaafa6eccf14f264a324b74eebb31471d478f13213b48d66

Contents?: true

Size: 699 Bytes

Versions: 29

Compression:

Stored size: 699 Bytes

Contents

module Hyrax
  # Added to allow for the Hyrax::My::WorksController to show only things I have deposited
  # If the work went through mediated deposit, I may no longer have edit access to it.
  class My::WorksSearchBuilder < My::SearchBuilder
    include Hyrax::FilterByType

    # We remove the access controls filter, because some of the works a user has
    # deposited may have gone through a workflow which has removed their ability
    # to edit the work.
    # We remove the active works filter, so a depositor can see submitted works in any state.
    self.default_processor_chain -= [:only_active_works, :add_access_controls_to_solr_params]

    def only_works?
      true
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-2.3.3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.3.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.3.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.3.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.2.4 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.2.3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.2.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.2.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.2.0 app/search_builders/hyrax/my/works_search_builder.rb