From c831357c3669c6db07eee214c9fa0b831590925b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 21 Mar 2007 19:04:29 +0000 Subject: [PATCH] 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?. --- chrome/content/zotero/xpcom/cite.js | 5 +++-- chrome/content/zotero/xpcom/integration.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index 6ee428e98..54983cd18 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -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) { diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 46b36a973..610dfa354 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -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;