lib/queries/source/filter.rb
# TODO: likely move to model (replicated in Source too)
# Params exists for all CollectingEvent attributes except these
likely move to model (replicated in Source too)
Params exists for all CollectingEvent attributes except these
likely move to model ( replicated in Source too ) Params exists for all CollectingEvent attributes except these
def merge_clauses
        clauses = [
          ancestors_facet,
          author_ids_facet,
          topic_ids_facet,
          citation_facet,
          citation_object_type_facet,
          document_facet,
          in_project_facet,
          nomenclature_facet,
          role_facet,
          with_doi_facet,
          keyword_id_facet,
          tag_facet,
          note_facet,
          identifier_between_facet,
          identifier_facet,
          identifier_namespace_facet,
          created_updated_facet, 
          empty_fields_facet,    
          not_empty_fields_facet,
        ].compact
        return nil if clauses.empty?
        a = clauses.shift
        clauses.each do |b|
          a = a.merge(b)
        end
        a
      end
def merge_clauses clauses = [ ancestors_facet , author_ids_facet , topic_ids_facet , citation_facet , citation_object_type_facet , document_facet , in_project_facet , nomenclature_facet , role_facet , with_doi_facet , keyword_id_facet , tag_facet , note_facet , identifier_between_facet , identifier_facet , identifier_namespace_facet , created_updated_facet , empty_fields_facet , not_empty_fields_facet , ] . compact return nil if clauses . empty? a = clauses . shift clauses . each do | b | a = a . merge ( b ) end a end
TODO: likely move to model (replicated in Source too)
Params exists for all CollectingEvent attributes except these
TODO : likely move to model ( replicated in Source too ) Params exists for all CollectingEvent attributes except these
# See Queries::Concerns::Users # See Queries::Concerns::Empty