   (if (:deleted concept)
     (get-elastic-doc-for-tombstone-collection context concept)
     (get-elastic-doc-for-full-collection context concept collection)))
-

  nil if none exists."
  [personnel]
  (first (filter person->email-contact personnel)))

(defn- get-elastic-doc-for-full-collection
  "Get all the fields for a normal collection index operation."

        insert-time (get-in collection [:data-provider-timestamps :insert-time])
        insert-time (f/unparse (f/formatters :date-time) insert-time)
        spatial-representation (get-in collection [:spatial-coverage :spatial-representation])
        permitted-group-ids (acl/get-coll-permitted-group-ids context provider-id collection)
        tag-associations (get-tag-associations-for-collection context concept)
        elastic-version-id (apply max (:transaction-id concept) (map :transaction-id tag-associations))]
    (merge {:elastic-version-id elastic-version-id
            :concept-id concept-id
            :revision-id revision-id
            :concept-seq-id (:sequence-number (concepts/parse-concept-id concept-id))
            :native-id native-id
