PubMed and DOI numbers?
How do I get Zotero to also import the DOI numbers from a PubMed entry? The DOI number are available in the PubMed XLM format, but I can't get Zotero to import DOI numbers? And without DOI numbers are all citations worthless, since there's no link to the full text article.
If it's possible, please improve the PubMed translator to record the DOI in Zotero's DOI field, and not the PMID.
<ArticleIdList>
<ArticleId IdType="pii">S8756-3282(07)00062-2</ArticleId>
<ArticleId IdType="doi">10.1016/j.bone.2007.02.013</ArticleId>
<ArticleId IdType="pubmed">17400044</ArticleId>
</ArticleIdList>
Sometimes the translator saves the PII, sometimes the PMID but never the DOI to Zotero's DOI field. I have installed Scaffold but it shows an empty list of translators, so I can't hack this one myself, unfortunately.
newItem.DOI = xml.PubmedArticle[i].PubmedData.ArticleIdList.ArticleId[0].text().toString();
Which looks to me as though it is picking up the zeroth item in the <ArticleIdList> which isn't reliably picking up the DOI. How do we change this line to pick up the ArticleId with IdType="doi" ?
newItem.DOI = xml.PubmedArticle[i].PubmedData.ArticleIdList.ArticleId.(@IdType == "doi").text().toString();