From 0b846980a94ef6e4f9c230cccc548a39763e99b7 Mon Sep 17 00:00:00 2001
From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com>
Date: Sun, 11 Nov 2018 08:51:35 +0100
Subject: [PATCH] Hyperlink DOIs to preferred resolver
---
src/main/java/gov/osti/doecode/entity/SearchFunctions.java | 4 ++--
src/main/resources/templates/search/biblio-sidebar.mustache | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/gov/osti/doecode/entity/SearchFunctions.java b/src/main/java/gov/osti/doecode/entity/SearchFunctions.java
index e8fff61b..de0d1946 100644
--- a/src/main/java/gov/osti/doecode/entity/SearchFunctions.java
+++ b/src/main/java/gov/osti/doecode/entity/SearchFunctions.java
@@ -1170,9 +1170,9 @@ private static ObjectNode getBibtexFormat(ObjectNode biblio_data) {
if (StringUtils.isNotBlank(JsonUtils.getString(biblio_data, "doi", ""))
&& StringUtils.isNotBlank(JsonUtils.getString(biblio_data, "release_date", ""))) {
String doi = JsonUtils.getString(biblio_data, "doi", "");
- optional_data.add(getOptionalBibtexObj("url", "{https://dx.doi.org/" + doi + "}"));
+ optional_data.add(getOptionalBibtexObj("url", "{https://doi.org/" + doi + "}"));
optional_data.add(getOptionalBibtexObj("howpublished",
- "{[Computer Software] \\url{https://dx.doi.org/" + doi + "}}"));
+ "{[Computer Software] \\url{https://doi.org/" + doi + "}}"));
}
// Release Date
diff --git a/src/main/resources/templates/search/biblio-sidebar.mustache b/src/main/resources/templates/search/biblio-sidebar.mustache
index 34ff64ce..4f389fa2 100644
--- a/src/main/resources/templates/search/biblio-sidebar.mustache
+++ b/src/main/resources/templates/search/biblio-sidebar.mustache
@@ -34,7 +34,7 @@
{{#each biblio_sidebar.new_version}}
- {{.}}
+ {{.}}
{{/each}}
@@ -45,7 +45,7 @@
{{#each biblio_sidebar.prev_version}}
- {{.}}
+ {{.}}
{{/each}}
@@ -143,4 +143,4 @@
-
\ No newline at end of file
+