addresses #463, ibid and repeat citation support in footnotes. still need to deal with page numbers on ibid; does this need to be handled in the CSL, or is it the same for all styles?.

This commit is contained in:
Simon Kornblith 2007-03-21 19:04:29 +00:00
parent fa78056ec6
commit c831357c36
2 changed files with 4 additions and 3 deletions

View File

@ -419,8 +419,9 @@ Zotero.CSL.prototype.preprocessItems = function(items) {
*/
Zotero.CSL.prototype.createCitation = function(citation, format) {
if(citation.citationType == 2) {
var string = this._getTerm("ibid");
string = string[0].toUpperCase()+string.substr(1);
var string = new Zotero.CSL.FormattedString(this, format);
var term = this._getTerm("ibid");
string.append(term[0].toUpperCase()+term.substr(1));
} else {
var lasti = citation.itemIDs.length-1;
for(var i in citation.itemIDs) {

View File

@ -666,7 +666,7 @@ Zotero.Integration.CitationSet.prototype.addCitation = function(citation) {
}
}
this.lastItemID = (citation.itemIDs.length == 1 ? citation.itemIDString : null);
this.lastItemIDString = (citation.itemIDs.length == 1 ? citation.itemIDString : null);
this.citationsByIndex[citation.index] = citation;
return isDuplicate;