diff -r -u chrome.orig/content/zotero/xpcom/csl.js chrome/content/zotero/xpcom/csl.js
|
old
|
new
|
|
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | /* |
| | 24 | * PATCHES: fbennett |
| | 25 | * |
| | 26 | * This version of cls.js reflects the following modification: |
| | 27 | * |
| | 28 | * (1) Fix bug in handling of label pluralizations with et al.: |
| | 29 | * Currently, the pluralization of labels used with names is |
| | 30 | * determined by the number of names in the formatted string. |
| | 31 | * For styles that call for showing only one name with et al., |
| | 32 | * this causes a singular label to be used in this case |
| | 33 | * (i.e. "John Doe et al. ed." rather than "John Doe et al. eds."). |
| | 34 | * |
| | 35 | * The fbennett (1) change below addresses this issue. |
| | 36 | */ |
| | 37 | |
| | 38 | |
| | 39 | /* |
| 24 | 40 | * CSL: a class for creating bibliographies from CSL files |
| 25 | 41 | * this is abstracted as a separate class for the benefit of anyone who doesn't |
| 26 | 42 | * want to use the Scholar data model, but does want to use CSL in JavaScript |
| … |
… |
|
| 694 | 710 | } |
| 695 | 711 | } else if(formattedString.format != "Sort" && |
| 696 | 712 | name == "label" && variables[j] != "author") { |
| 697 | | newString.append(this._getTerm(variables[j], (maxCreators != 1), child["@form"].toString(), child["@include-period"] == "true"), child); |
| | 713 | /* |
| | 714 | * fbennett (1): Force names with et al. to plural |
| | 715 | */ |
| | 716 | newString.append(this._getTerm(variables[j], (maxCreators != 1 || useEtAl), child["@form"].toString(), child["@include-period"] == "true"), child); |
| | 717 | /* |
| | 718 | * fbennett: end |
| | 719 | */ |
| 698 | 720 | } |
| 699 | 721 | } |
| 700 | 722 | success = true; |