Only in zotero-trunk/chrome/content/zotero: addCitationDialog.js.orig
Only in zotero-trunk/chrome/content/zotero: addCitationDialog.js.rej
diff -r -u zotero-trunk.orig/chrome/content/zotero/xpcom/csl.js zotero-trunk/chrome/content/zotero/xpcom/csl.js
|
old
|
new
|
|
| 622 | 622 | var firstName, lastName; |
| 623 | 623 | // parse authors into strings |
| 624 | 624 | for(var i=0; i<maxCreators; i++) { |
| | 625 | // fetch first names early, for use in condition statement |
| | 626 | // should work out how to minimize assignments to first and |
| | 627 | // last name vars |
| | 628 | var lastName = creators[i].getNameVariable("lastName"); |
| 625 | 629 | if(formattedString.format == "Sort") { |
| 626 | 630 | // for sort, we use the plain names |
| 627 | 631 | var name = creators[i].getNameVariable("lastName"); |
| … |
… |
|
| 645 | 649 | name += firstName; |
| 646 | 650 | |
| 647 | 651 | newString.append(name); |
| | 652 | } else if ( lastName.match(/^[^\0-\u007f].*/) ) { |
| | 653 | var firstName = creators[i].getNameVariable("firstName"); |
| | 654 | authorStrings.push(lastName+firstName); |
| 648 | 655 | } else { |
| 649 | 656 | var firstName = ""; |
| 650 | 657 | |