Skip to content

Commit

Permalink
Always show URL for canonical dataset citation
Browse files Browse the repository at this point in the history
Even if we can't fetch DOI info

Issue #2541
  • Loading branch information
robyngit committed Nov 4, 2024
1 parent 0587969 commit fb532b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/views/CanonicalDatasetHandlerView.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ define([
*/
getCitationInfo() {
const view = this;
// Set the URL as the url for now, incase it is not a DOI or we fail to
// fetch the citation information.
this.citationModel.set({
pid: this.canonicalUri,
pid_url: this.canonicalUri,
});

this.crossRef = new CrossRefModel({
doi: this.canonicalUri,
});
Expand Down

0 comments on commit fb532b4

Please sign in to comment.