From 0cc2275fc2fae335628696fd625848880d09e1d0 Mon Sep 17 00:00:00 2001
From: John Kitchin <jkitchin@andrew.cmu.edu>
Date: Wed, 25 Mar 2015 13:49:27 -0400
Subject: [PATCH] remove empty links and doi

---
 org-ref.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/org-ref.el b/org-ref.el
index 4ad23bd..cf27958 100644
--- a/org-ref.el
+++ b/org-ref.el
@@ -551,6 +551,9 @@ Format according to the type in `org-ref-bibliography-entry-format'."
     (setq output (replace-regexp-in-string " {\\(.*\\)} " " \\1 " output))
     ;; get rid of empty parens
     (setq output (replace-regexp-in-string "()" "" output))
+    ;; get rid of empty link and doi
+    (setq output (replace-regexp-in-string " <a href=\"\">link</a>\\." "" output))
+    (setq output (replace-regexp-in-string " <a href=\"http://dx\\.doi\\.org/\">doi</a>\\." "" output))
     (format "<li><a id=\"%s\">[%s] %s</a></li>"
 	    key key output)))
 
-- 
2.39.5