commit f51e6dd84a47567cc6638ca10870257c2fa375e9
parent a63684a785cf7d5b504306a3b28424b00218429e
Author: Simon Kornblith <simon@simonster.com>
Date: Fri, 27 May 2011 14:22:10 +0000
Fix handling of CSL 1.0 dependent styles
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js
@@ -398,7 +398,7 @@ Zotero.Style = function(arg) {
this.source = null;
for each(var link in xml.info.link) {
- if(link.@rel == "source") {
+ if(link.@rel == "source" || link.@rel == "independent-parent") {
this.source = link.@href.toString();
if(this.source == this.styleID) {
throw "Style with ID "+this.styleID+" references itself as source";