Skip to content

Commit

Permalink
Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
pcooksey committed Jun 21, 2017
1 parent e789697 commit f2457a4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/bibtex_js.js
Expand Up @@ -423,14 +423,17 @@ function BibtexDisplay() {
if(key=="BIBTEXRAW") {
tpl.find("." + key.toLowerCase()).html(value);
} else if(key=="AUTHOR") {
tpl.find("span:not(a)." + key.toLowerCase()).html(this.displayAuthor(this.fixValue(value)));
tpl.find("span:not(a)." + key.toLowerCase()).html(this.displayAuthor(this.fixValue(value)));
} else if(key=="PAGES") {
value = value.replace("--", "-")
tpl.find("." + key.toLowerCase()).html(value);
} else {
tpl.find("span:not(a)." + key.toLowerCase()).html(this.fixValue(value));
var link = tpl.find("a." + key.toLowerCase()).each(function() {
if(this.attributes["href"] == "") {
this.attributes["href"].value = this.fixValue(value);
}
});
this.attributes["href"].value = this.fixValue(value);
}
});
}
}
tpl.addClass("bibtexentry");
Expand Down

0 comments on commit f2457a4

Please sign in to comment.