I have a huge .bib file that contains all my references. Very few of them currently have a doi field. Given access to an online database that includes many of the same references, is capable of generating .bib entries, and includes dois, is there any more or less automatic way of using the database to add dois to as many of the references in the .bib file as possible? Note that the citation keys in my .bib file and those generated by the database are not identical, so matching would have to be done by e.g. title and author.
Answers using e.g. Jabref or Zotero are fine. It feels like one of those tools ought to be able to do this. I just don't know how.