             [cmr.indexer.data.concepts.organization :as org]
             [cmr.acl.core :as acl]
             [cmr.common.concepts :as concepts]
+            [cmr.transmit.metadata-db :as mdb]
             [cmr.umm.collection :as umm-c]
             [cmr.umm.collection.entry-id :as eid]
             [cmr.common-app.services.kms-fetcher :as kf])

  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
