Skip to content

Commit

Permalink
Merge pull request #6083 from samvera/i5796-valkyrie-file-details-pag…
Browse files Browse the repository at this point in the history
…e-not-accessible

add Hyrax::FileSet to FileSetSearchBuilder model search filter
  • Loading branch information
alishaevn authored Jun 1, 2023
2 parents 815e0ab + f0a9cc4 commit 24f0a4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/search_builders/hyrax/file_set_search_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class FileSetSearchBuilder < ::SearchBuilder

# This overrides the models in FilterByType
def models
[::FileSet]
[::FileSet, ::Hyrax::FileSet]
end
end
end
2 changes: 1 addition & 1 deletion spec/search_builders/hyrax/file_set_search_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
before { subject.filter_models(solr_params) }

it 'adds FileSet to query' do
expect(solr_params[:fq].first).to include('{!terms f=has_model_ssim}FileSet')
expect(solr_params[:fq].first).to include('{!terms f=has_model_ssim}FileSet,Hyrax::FileSet')
end
end

Expand Down

0 comments on commit 24f0a4f

Please sign in to comment.