 (defn get-embedded-doi-from-string
   "Get valid DOI that's embedded in a URL (or an arbitrary string) by a number of methods."
   [url]
+  (info "Attempt get-embedded-doi-from-string")
   ; First see if cleanly represented it's in the GET params.
   (if-let [doi (-> url extract-doi-from-get-params validate-doi)]
     doi

(defn resolve-doi-from-url
  "Take a URL and try to resolve it to find what valid DOI it corresponds to."
  [url]
  (info "Try to resolve:" url)

  ; Check if we want to bother with this URL.
  


              ; Now take the first one that we could validate.
              doi (first-valid distinct-candidates)]
          doi))))) 

(defn cleanup-doi
  "Take a URL or DOI or something that could be a DOI, return the valid DOI if it is one."
  [potential-doi]
  (info "Attempt cleanup-doi")
  (when (or 
    (re-matches whole-doi-re potential-doi)
    (re-find doi-re potential-doi)
