Fix handling of CSL 1.0 dependent styles

This commit is contained in:
Simon Kornblith 2011-05-27 14:22:10 +00:00
parent a63684a785
commit f51e6dd84a

View file

@ -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";