www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f973897d76deb37f601057ae0cdc2bcec7f9317c
parent 5857368131f4f4508e8174aeaed74217090db675
Author: adam3smith <karcher@u.northwestern.edu>
Date:   Mon,  1 Sep 2014 14:31:51 -0500

test for presence of author's firstName before using it

Diffstat:
Mchrome/content/zotero/xpcom/openurl.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/openurl.js b/chrome/content/zotero/xpcom/openurl.js @@ -480,6 +480,7 @@ Zotero.OpenURL = new function() { // same last name, and the same first name up to a point), keep // the plain author, since it might have a middle initial if(item.creators[j].lastName == complexAu[i].lastName && + item.creators[j].firstName && (item.creators[j].firstName == complexAu[i].firstName == "" || (item.creators[j].firstName.length >= complexAu[i].firstName.length && item.creators[j].firstName.substr(0, complexAu[i].firstName.length) == complexAu[i].firstName))) {