diff --git a/chrome/content/zotero/tools/csledit.xul b/chrome/content/zotero/tools/csledit.xul
index 9f785c226..4385ff5cc 100644
--- a/chrome/content/zotero/tools/csledit.xul
+++ b/chrome/content/zotero/tools/csledit.xul
@@ -20,12 +20,14 @@
***** END LICENSE BLOCK *****
-->
+
+ onload="Zotero_CSL_Editor.init();"
+ title="Zotero Reference Test pane">
@@ -43,6 +45,7 @@
this.handleKeyPress = handleKeyPress;
this.loadCSL = loadCSL;
this.generateBibliography = generateBibliography;
+ this.refresh = refresh;
function init() {
var cslList = document.getElementById('zotero-csl-list');
@@ -51,14 +54,25 @@
}
var csls = Zotero.DB.query("SELECT title, cslID FROM csl ORDER BY title");
-
for (var i=0; i';
}
-
+ var multCitations = '
Multi Citations
' +
+ csl.formatCitation(citation, "HTML");
+
// Generate bibliography
- var bibliography = csl.formatBibliography(itemSet, "HTML");
+ var bibliography = '
Bibliography
' +
+ csl.formatBibliography(itemSet, "HTML");
iframe.contentDocument.documentElement.innerHTML =
- citations + '
' + multCitations + '
' + bibliography;
+ citations +
+ multCitations + bibliography;
}
@@ -129,13 +155,21 @@
-
+
+
+
+
+
+
+
+
+
-
+
diff --git a/chrome/content/zotero/tools/cslpreview.xul b/chrome/content/zotero/tools/cslpreview.xul
new file mode 100644
index 000000000..e62f2cd08
--- /dev/null
+++ b/chrome/content/zotero/tools/cslpreview.xul
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+