really fix dates this time

This commit is contained in:
Simon Kornblith 2006-12-20 06:14:57 +00:00
parent b79e798ef4
commit e5575d0643

View File

@ -371,12 +371,12 @@ Zotero.CSL.prototype.preprocessItems = function(items) {
if(lastAuthor == author) {
item._csl.subsequentAuthorSubstitute = true;
}
lastAuthor = author;
// handle (2006a) disambiguation for author-date styles
if(this.class == "author-date") {
var year = item._csl.date.year;
if(lastAuthor == author) {
if(usedCitations[year]) {
if(!usedCitations[year]._csl.date.disambiguation) {
usedCitations[year]._csl.date.disambiguation = "a";
@ -400,10 +400,15 @@ Zotero.CSL.prototype.preprocessItems = function(items) {
}
}
}
} else {
usedCitations = new Array();
}
usedCitations[year] = item;
}
lastAuthor = author;
// add numbers to each
item._csl.number = i;
}