Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/gov/osti/doecode/entity/SearchFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/search/biblio-sidebar.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="biblio-sidebar-secondary-subtitle">New {{#if biblio_sidebar.more_than_one_new}}Versions{{else}}Version{{/if}}</span>
<br />
{{#each biblio_sidebar.new_version}}
<a title='Previous Version #{{biblio_sidebar.code_id}}' href='https://dx.doi.org/{{.}}'>{{.}}</a>
<a title='Previous Version #{{biblio_sidebar.code_id}}' href='https://doi.org/{{.}}'>{{.}}</a>
<br />
{{/each}}
</div>
Expand All @@ -45,7 +45,7 @@
<span class="biblio-sidebar-secondary-subtitle">Previous {{#if biblio_sidebar.more_than_one_previous}}Versions{{else}}Version{{/if}}</span>
<br />
{{#each biblio_sidebar.prev_version}}
<a title='New Version #{{biblio_sidebar.code_id}}' href='https://dx.doi.org/{{.}}'>{{.}}</a>
<a title='New Version #{{biblio_sidebar.code_id}}' href='https://doi.org/{{.}}'>{{.}}</a>
<br />
{{/each}}
</div>
Expand Down Expand Up @@ -143,4 +143,4 @@
</div>
</div>
</div>
</div>
</div>