Skip to content

Commit

Permalink
Logging the exceptional cases: not use the attribute namesapceEmbedde…
Browse files Browse the repository at this point in the history
…dInLui

Some resources in identifiers.org registry do not use this attribute, for example, EFO.
Although EFO returns false for this attribute, the URL https://idenitifers.org/efo/EFO:0000616
is not resolved. We log such cases here for further treatment or add it as one of the exceptional cases.
  • Loading branch information
ntung committed Jan 23, 2025
1 parent df318b6 commit a2fa98f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/webapp/js/detail/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ var Metadata = (function (_self) {
const url = ebiResources.length ? ebiResources : id_org_url;
$($('td',row)[0]).wrapInner('<a href="'+ url +'" target="_blank">');
}
}).done(() => {
console.log(`Fetched successfully: ${url}`);
}).fail(() => {
console.log("namespaceEmbeddedInLui: ", embedded, "URL: ", url, ". This resource might not" +
" use the attribute namespaceEmbeddedInLui");
})
});
}
Expand Down

0 comments on commit a2fa98f

Please sign in to comment.