really fix dates this time
This commit is contained in:
parent
b79e798ef4
commit
e5575d0643
|
@ -371,12 +371,12 @@ Zotero.CSL.prototype.preprocessItems = function(items) {
|
||||||
if(lastAuthor == author) {
|
if(lastAuthor == author) {
|
||||||
item._csl.subsequentAuthorSubstitute = true;
|
item._csl.subsequentAuthorSubstitute = true;
|
||||||
}
|
}
|
||||||
lastAuthor = author;
|
|
||||||
|
|
||||||
// handle (2006a) disambiguation for author-date styles
|
// handle (2006a) disambiguation for author-date styles
|
||||||
if(this.class == "author-date") {
|
if(this.class == "author-date") {
|
||||||
var year = item._csl.date.year;
|
var year = item._csl.date.year;
|
||||||
|
|
||||||
|
if(lastAuthor == author) {
|
||||||
if(usedCitations[year]) {
|
if(usedCitations[year]) {
|
||||||
if(!usedCitations[year]._csl.date.disambiguation) {
|
if(!usedCitations[year]._csl.date.disambiguation) {
|
||||||
usedCitations[year]._csl.date.disambiguation = "a";
|
usedCitations[year]._csl.date.disambiguation = "a";
|
||||||
|
@ -400,10 +400,15 @@ Zotero.CSL.prototype.preprocessItems = function(items) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
usedCitations = new Array();
|
||||||
|
}
|
||||||
|
|
||||||
usedCitations[year] = item;
|
usedCitations[year] = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lastAuthor = author;
|
||||||
|
|
||||||
// add numbers to each
|
// add numbers to each
|
||||||
item._csl.number = i;
|
item._csl.number = i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user