We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46a7e33 commit 83f6c29Copy full SHA for 83f6c29
2 files changed
app/models/reference_repository.rb
@@ -355,6 +355,11 @@ def filter(options)
355
"repository_type": options[:repository_type].split(",")
356
} }
357
end
358
+ if options[:provider_id].present?
359
+ retval << { term: {
360
+ "provider_id": { value: options[:provider_id], case_insensitive: true }
361
+ } }
362
+ end
363
if options[:is_open] == "true"
364
retval << { term: {
365
"data_access.type": "open"
spec/requests/repositories_spec.rb
@@ -16,6 +16,8 @@ def reset_indices
16
clear_index(DataciteDoi)
17
clear_index(Client)
18
clear_index(Provider)
19
+ clear_index(ReferenceRepository)
20
+ import_index(ReferenceRepository)
21
import_index(Provider)
22
import_index(Client)
23
import_index(DataciteDoi)
0 commit comments