Ticket #1811: is-institution.patch

File is-institution.patch, 682 bytes (added by fbennett, 6 years ago)
  • chrome/content/zotero/xpcom/cite.js

    diff -r -u zotero-2.1/chrome/content/zotero/xpcom/cite.js z21/chrome/content/zotero/xpcom/cite.js
    old new  
    157157                var creatorType = Zotero.Cite.System._zoteroNameMap[creatorType]; 
    158158                if(!creatorType) continue; 
    159159                 
    160                 var nameObj = {'family':creator.ref.lastName, 'given':creator.ref.firstName}; 
     160                var nameObj = { 
     161                        'family':creator.ref.lastName,  
     162                        'given':creator.ref.firstName, 
     163                        'isInstitution':creator.ref.fieldMode 
     164                }; 
    161165                 
    162166                if(cslItem[creatorType]) { 
    163167                        cslItem[creatorType].push(nameObj);