adding abbriviation patch from Rintze

This commit is contained in:
Matt Burton 2009-04-07 00:53:46 +00:00
parent aa380262e0
commit 5a7f3b1500

View file

@ -93,13 +93,15 @@ function lookupPMIDs(ids, doc) {
newItem.ISSN = issn; newItem.ISSN = issn;
} }
if(citation.MedlineJournalInfo.MedlineTA.length()) { if(citation.Article.Journal.ISOAbbreviation.length()) {
newItem.journalAbbreviation = Zotero.Utilities.superCleanString(citation.Article.Journal.ISOAbbreviation.text().toString());
} else if(citation.MedlineJournalInfo.MedlineTA.length()) {
newItem.journalAbbreviation = Zotero.Utilities.superCleanString(citation.MedlineJournalInfo.MedlineTA.text().toString()); newItem.journalAbbreviation = Zotero.Utilities.superCleanString(citation.MedlineJournalInfo.MedlineTA.text().toString());
} }
// newItem.journalAbbreviation = Zotero.Utilities.superCleanString(citation.Article.Journal.ISOAbbreviation.text().toString());
if(article.Journal.Title.length()) { if(article.Journal.Title.length()) {
newItem.publicationTitle = Zotero.Utilities.superCleanString(article.Journal.Title.text().toString()); newItem.publicationTitle = Zotero.Utilities.superCleanString(article.Journal.Title.text().toString());
} else if(citation.MedlineJournalInfo.MedlineTA.length()) { } else if(newItem.journalAbbreviation.length()) {
newItem.publicationTitle = newItem.journalAbbreviation; newItem.publicationTitle = newItem.journalAbbreviation;
} }