Skip to content

Commit

Permalink
Retrieve the compact identifier resolved URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ntung committed Jan 23, 2025
1 parent a2fa98f commit 98b3520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/js/detail/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ var Metadata = (function (_self) {
const ebiResources = data.payload.resolvedResources.filter(function(o){return o?.providerCode==='ebi'});
let id_org_url = "https://identifiers.org/" + (embedded ? name : type+":"+name);
// fallback: id_org_url = (data.payload.resolvedResources)[0].compactIdentifierResolvedUrl;
const url = ebiResources.length ? ebiResources : id_org_url;
url = ebiResources.length ? ebiResources[0]["compactIdentifierResolvedUrl"] : id_org_url;
$($('td',row)[0]).wrapInner('<a href="'+ url +'" target="_blank">');
}
}).done(() => {
Expand Down

0 comments on commit 98b3520

Please sign in to comment.