diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index 1a4994f81..07ae3383e 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -228,7 +228,7 @@ Scholar.Item.prototype.setCreator = function(orderIndex, firstName, lastName, cr this._loadCreators(); } - if (!firstName){ + if (isInstitution || !firstName){ firstName = ''; } @@ -287,11 +287,23 @@ Scholar.Item.prototype.removeCreator = function(orderIndex){ } +// Currently unused Scholar.Item.prototype.creatorExists = function(firstName, lastName, creatorTypeID, isInstitution, skipIndex){ + if (isInstitution || !firstName){ + firstName = ''; + } + + if (!lastName){ + lastName = ''; + } + + isInstitution = !!isInstitution; + for (var j=0, len=this.numCreators(); j