Skip to content

Commit

Permalink
Merge pull request #310 from tobie/fix-refs
Browse files Browse the repository at this point in the history
Allow references that are missing href.
  • Loading branch information
darobin committed Jul 3, 2014
2 parents 7032df8 + cd87dbc commit c14f263
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/core/biblio.js
Expand Up @@ -44,10 +44,11 @@ define(
if (ref.etAl) output += " et al";
output += ". ";
}
output += '<a href="' + ref.href + '"><cite>' + ref.title + "</cite></a>. ";
if (ref.href) output += '<a href="' + ref.href + '"><cite>' + ref.title + "</cite></a>. ";
else output += '<cite>' + ref.title + '</cite>. ';
if (ref.date) output += ref.date + ". ";
if (ref.status) output += (REF_STATUSES[ref.status] || ref.status) + ". ";
output += 'URL: <a href="' + ref.href + '">' + ref.href + "</a>";
if (ref.href) output += 'URL: <a href="' + ref.href + '">' + ref.href + "</a>";
return output;
};
var bibref = function (conf, msg) {
Expand Down

0 comments on commit c14f263

Please sign in to comment.