Skip to content

Commit

Permalink
Remove dev code
Browse files Browse the repository at this point in the history
Issue #2542
  • Loading branch information
robyngit committed Nov 4, 2024
1 parent 8368b09 commit 4fd8ec0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/js/collections/metadata/eml/EMLAnnotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ define(["underscore", "backbone", "models/metadata/eml211/EMLAnnotation"], (
*/
addCanonicalDatasetAnnotation(sourceId) {
if (!sourceId) return null;
// TODO: Check that sourceId is a valid DOI or URL

// TODO: Check that there is not already a canonical dataset annotation
// before adding a new one, since there should only be one.
return this.add([
{
propertyLabel: "derivedFrom",
Expand Down Expand Up @@ -159,7 +155,6 @@ define(["underscore", "backbone", "models/metadata/eml211/EMLAnnotation"], (
derivedFrom.forEach((derived) => {
sameAs.forEach((same) => {
if (derived.get("valueURI") === same.get("valueURI")) {
// TODO? Check that the URI is a valid DOI or URL
pairs.push({ derived, same, uri: derived.get("valueURI") });
}
});
Expand Down

0 comments on commit 4fd8ec0

Please sign in to comment.