From cd87dbc7bf7f282350bafeaa618586fc9a2a1548 Mon Sep 17 00:00:00 2001 From: Tobie Date: Thu, 24 Apr 2014 19:06:06 +0200 Subject: [PATCH] Allow references that are missing href. --- js/core/biblio.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/core/biblio.js b/js/core/biblio.js index b60947ef6b..5f7acfc2fc 100644 --- a/js/core/biblio.js +++ b/js/core/biblio.js @@ -44,10 +44,11 @@ define( if (ref.etAl) output += " et al"; output += ". "; } - output += '' + ref.title + ". "; + if (ref.href) output += '' + ref.title + ". "; + else output += '' + ref.title + '. '; if (ref.date) output += ref.date + ". "; if (ref.status) output += (REF_STATUSES[ref.status] || ref.status) + ". "; - output += 'URL: ' + ref.href + ""; + if (ref.href) output += 'URL: ' + ref.href + ""; return output; }; var bibref = function (conf, msg) {