Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# frozen_string_literal: true

# OVERRIDE Hyrax 5.0 to force POST for nested collection queries
# @todo - remove when Hyrax supports POST for nested collection queries
module Hyrax
module Collections
##
# A query service handling nested collection queries.
module NestedCollectionQueryServiceDecorator
extend ActiveSupport::Concern

class_methods do
private

def query_solr(collection:, access:, scope:, limit_to_id:, nest_direction:)
scope.blacklight_config.http_method = :post
super
end
end
end
end
end

Hyrax::Collections::NestedCollectionQueryService.prepend(Hyrax::Collections::NestedCollectionQueryServiceDecorator)
Loading