Skip to content

Commit

Permalink
fix formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 30, 2019
1 parent 6256f2c commit da465fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/concerns/indexable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def query(query, options={})
must << { range: { created: { gte: "#{options[:year].split(",").min}||/y", lte: "#{options[:year].split(",").max}||/y", format: "yyyy" }}} if options[:year].present?
must << { terms: { "software.raw" => options[:software].split(",") }} if options[:software].present?
must << { terms: { certificate: options[:certificate].split(",") }} if options[:certificate].present?
must << { terms: { repository_type: options[:repository_type].split(",") }} if options[:repository_type].present?must << { term: { re3data_id: options[:re3data_id].gsub("/", '\/') }} if options[:re3data_id].present?
must << { terms: { repository_type: options[:repository_type].split(",") }} if options[:repository_type].present?
must << { term: { re3data_id: options[:re3data_id].gsub("/", '\/') }} if options[:re3data_id].present?
must << { term: { opendoar_id: options[:opendoar_id] }} if options[:opendoar_id].present?
must << { term: { client_type: options[:client_type] }} if options[:client_type].present?
must_not << { exists: { field: "deleted_at" }} unless options[:include_deleted]
Expand Down

0 comments on commit da465fb

Please sign in to comment.