From c9a3d49a5ed6f9848011fedb0d6deffdcc374868 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 15 Sep 2008 20:13:33 +0000 Subject: [PATCH] - Add 'styles' directory with symlinks to actual styles for default styles - Change schema.js to use 'styles' directory --- chrome/content/zotero/xpcom/schema.js | 3 +-- styles/ama.csl | 1 + styles/apa.csl | 1 + styles/apsa.csl | 1 + styles/chicago-author-date.csl | 1 + styles/chicago-fullnote-bibliography.csl | 1 + styles/chicago-note-bibliography.csl | 1 + styles/chicago-note.csl | 1 + styles/harvard1.csl | 1 + styles/ieee.csl | 1 + styles/mhra.csl | 1 + styles/mhra_note_without_bibliography.csl | 1 + styles/mla.csl | 1 + styles/nature.csl | 1 + styles/nlm.csl | 1 + 15 files changed, 15 insertions(+), 2 deletions(-) create mode 120000 styles/ama.csl create mode 120000 styles/apa.csl create mode 120000 styles/apsa.csl create mode 120000 styles/chicago-author-date.csl create mode 120000 styles/chicago-fullnote-bibliography.csl create mode 120000 styles/chicago-note-bibliography.csl create mode 120000 styles/chicago-note.csl create mode 120000 styles/harvard1.csl create mode 120000 styles/ieee.csl create mode 120000 styles/mhra.csl create mode 120000 styles/mhra_note_without_bibliography.csl create mode 120000 styles/mla.csl create mode 120000 styles/nature.csl create mode 120000 styles/nlm.csl diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 34586de9f..98a106839 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -290,8 +290,7 @@ Zotero.Schema = new function(){ } else { var sourceDir = extDir.clone(); - // TODO: rename 'csl' to 'styles' - sourceDir.append(modes == "translators" ? modes : "csl"); + sourceDir.append(modes); if (!sourceDir.exists()) { Components.utils.reportError("No " + modes + " ZIP file or directory " + " in Zotero.Schema.updateBundledFiles()"); diff --git a/styles/ama.csl b/styles/ama.csl new file mode 120000 index 000000000..50c9aa901 --- /dev/null +++ b/styles/ama.csl @@ -0,0 +1 @@ +../../../csl/ama.csl \ No newline at end of file diff --git a/styles/apa.csl b/styles/apa.csl new file mode 120000 index 000000000..3b48c7d41 --- /dev/null +++ b/styles/apa.csl @@ -0,0 +1 @@ +../../../csl/apa.csl \ No newline at end of file diff --git a/styles/apsa.csl b/styles/apsa.csl new file mode 120000 index 000000000..ffd787139 --- /dev/null +++ b/styles/apsa.csl @@ -0,0 +1 @@ +../../../csl/apsa.csl \ No newline at end of file diff --git a/styles/chicago-author-date.csl b/styles/chicago-author-date.csl new file mode 120000 index 000000000..a382c3d73 --- /dev/null +++ b/styles/chicago-author-date.csl @@ -0,0 +1 @@ +../../../csl/chicago-author-date.csl \ No newline at end of file diff --git a/styles/chicago-fullnote-bibliography.csl b/styles/chicago-fullnote-bibliography.csl new file mode 120000 index 000000000..60329b3ac --- /dev/null +++ b/styles/chicago-fullnote-bibliography.csl @@ -0,0 +1 @@ +../../../csl/chicago-fullnote-bibliography.csl \ No newline at end of file diff --git a/styles/chicago-note-bibliography.csl b/styles/chicago-note-bibliography.csl new file mode 120000 index 000000000..a7b3c7dd3 --- /dev/null +++ b/styles/chicago-note-bibliography.csl @@ -0,0 +1 @@ +../../../csl/chicago-note-bibliography.csl \ No newline at end of file diff --git a/styles/chicago-note.csl b/styles/chicago-note.csl new file mode 120000 index 000000000..688da48da --- /dev/null +++ b/styles/chicago-note.csl @@ -0,0 +1 @@ +../../../csl/chicago-note.csl \ No newline at end of file diff --git a/styles/harvard1.csl b/styles/harvard1.csl new file mode 120000 index 000000000..e21c225a0 --- /dev/null +++ b/styles/harvard1.csl @@ -0,0 +1 @@ +../../../csl/harvard1.csl \ No newline at end of file diff --git a/styles/ieee.csl b/styles/ieee.csl new file mode 120000 index 000000000..075a4d5c8 --- /dev/null +++ b/styles/ieee.csl @@ -0,0 +1 @@ +../../../csl/ieee.csl \ No newline at end of file diff --git a/styles/mhra.csl b/styles/mhra.csl new file mode 120000 index 000000000..c3a115e4a --- /dev/null +++ b/styles/mhra.csl @@ -0,0 +1 @@ +../../../csl/mhra.csl \ No newline at end of file diff --git a/styles/mhra_note_without_bibliography.csl b/styles/mhra_note_without_bibliography.csl new file mode 120000 index 000000000..13b1cbda2 --- /dev/null +++ b/styles/mhra_note_without_bibliography.csl @@ -0,0 +1 @@ +../../../csl/mhra_note_without_bibliography.csl \ No newline at end of file diff --git a/styles/mla.csl b/styles/mla.csl new file mode 120000 index 000000000..1d756bdc6 --- /dev/null +++ b/styles/mla.csl @@ -0,0 +1 @@ +../../../csl/mla.csl \ No newline at end of file diff --git a/styles/nature.csl b/styles/nature.csl new file mode 120000 index 000000000..93b29a0d5 --- /dev/null +++ b/styles/nature.csl @@ -0,0 +1 @@ +../../../csl/nature.csl \ No newline at end of file diff --git a/styles/nlm.csl b/styles/nlm.csl new file mode 120000 index 000000000..8dec18bdc --- /dev/null +++ b/styles/nlm.csl @@ -0,0 +1 @@ +../../../csl/nlm.csl \ No newline at end of file