 (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)
+  (info "Attempt resolve-doi-from-url: " url)
 
   ; Check if we want to bother with this URL.
   

      [:embedded embedded-valid-doi]

    ; Try to treat it as a Publisher URL that must be fetched to extract its DOI.
    (if-let [resolved-valid-doi (resolve-doi-from-url input)]
      [:resolved resolved-valid-doi]
      nil))))


(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
