\r\n';
@@ -513,19 +513,19 @@ Zotero.CSL.prototype.createBibliography = function(items, format) {
string += '
';
}
- if(this.class == "note") {
+ if(this.class == "note" && this._bib == this._cit) {
output += "
"+string+"\r\n";
} else {
output += "
"+string+"
\r\n";
}
} else if(format == "RTF") {
- if(this.class == "note") {
+ if(this.class == "note" && this._bib == this._cit) {
index++;
output += index+". ";
}
output += string+"\\\r\n\\\r\n";
} else {
- if(format == "Text" && this.class == "note") {
+ if(format == "Text" && this.class == "note" && this._bib == this._cit) {
index++;
output += index+". ";
}
@@ -536,7 +536,7 @@ Zotero.CSL.prototype.createBibliography = function(items, format) {
}
if(format == "HTML") {
- if(this.class == "note") {
+ if(this.class == "note" && this._bib == this._cit) {
output += '';
} else if(this._bib.hangingIndent) {
output += '
';
@@ -1273,11 +1273,12 @@ Zotero.CSL.prototype._getFieldValue = function(name, element, item, formattedStr
if(condition.name == "if" || condition.name == "else-if") {
// evaluate condition for if/else if
if(condition.type) {
- if(typeName == condition.type) {
- status = true;
- } else if(Zotero.CSL.Global.typeInheritance[typeName] &&
- Zotero.CSL.Global.typeInheritance[typeName] == condition.type) {
- status = true;
+ var typeNames = this._getTypeFromItem(item);
+ for each(var typeName in typeNames) {
+ if(typeName == condition.type) {
+ status = true;
+ break;
+ }
}
} else if(condition.field) {
var testString = new Zotero.CSL.FormattedString(this, "Text");
diff --git a/scrapers.sql b/scrapers.sql
index c2706e3618..f154c4dbb6 100644
--- a/scrapers.sql
+++ b/scrapers.sql
@@ -1,4 +1,4 @@
--- 150
+-- 151
-- ***** BEGIN LICENSE BLOCK *****
--
@@ -22,7 +22,7 @@
-- Set the following timestamp to the most recent scraper update date
-REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-12-19 23:51:00'));
+REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-12-20 03:57:00'));
REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b3.r1', '', '2006-12-15 03:40:00', 1, 100, 4, 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon',
'function detectWeb(doc, url) {
@@ -9677,7 +9677,7 @@ REPLACE INTO "csl" VALUES('http://purl.org/net/xbiblio/csl/styles/apa.csl', '200
');
-REPLACE INTO "csl" VALUES('http://www.zotero.org/namespaces/CSL/chicago-author-date.csl', '2006-12-19 23:51:00', 'Chicago Manual of Style (Author-Date)',
+REPLACE INTO "csl" VALUES('http://www.zotero.org/namespaces/CSL/chicago-author-date.csl', '2006-12-20 03:33:00', 'Chicago Manual of Style (Author-Date)',
'
');
-REPLACE INTO "csl" VALUES('http://purl.org/net/xbiblio/csl/styles/chicago-note.csl', '2006-10-02 17:00:00', 'Chicago Manual of Style (Note)',
+REPLACE INTO "csl" VALUES('http://purl.org/net/xbiblio/csl/styles/chicago-note.csl', '2006-12-20 04:20:00', 'Chicago Manual of Style (Note without Bibliography)',
'
');
+REPLACE INTO "csl" VALUES('http://www.zotero.org/namespaces/CSL/chicago-note-bibliography.csl', '2006-12-20 03:57:00', 'Chicago Manual of Style (Note with Bibliography)',
+'
+');
+
REPLACE INTO "csl" VALUES('http://purl.org/net/xbiblio/csl/styles/mla.csl', '2006-10-23 00:21:00', 'Modern Language Association',
'