   meta.url = undefined if meta.url is meta.original
 
   if meta.doi
+    done = 0
+    suitable = false
     API.log 'Resolving for DOI', doi: meta.doi
-    for src in sources
+    _doi = (src) ->
       if src isnt 'oabutton' and (src isnt 'eupmc' or (not meta.pmid and not meta.pmc)) # because we try eupmc directly earlier if these are present, so don't run again
         try
           # will only work for use endpoints that provide a doi method



import request from 'request'
import unidecode from 'unidecode'


  meta.found = {}
  meta.checked = {identifiers:[],titles:[]}
  meta.original = meta.url
  meta.parallel = parallel

  if not meta.pmid
    lurl = meta.url.toLowerCase()
