-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotation tool related update #19
Annotation tool related update #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.evidence.forEach((evi) => { | ||
let eviObject = {} | ||
if (evi.includes("DOI:")) { | ||
eviObject[evi] = evi.replace("DOI:", "https://doi.org/"); | ||
} else if (evi.includes("PMID:")) { | ||
eviObject[evi] = evi.replace( | ||
"PMID:", | ||
"https://pubmed.ncbi.nlm.nih.gov/" | ||
); | ||
evidenceURLs.push(new URL(link)); | ||
} | ||
if (evi in eviObject) { | ||
evidenceURLs.push(eviObject); | ||
} else { | ||
evidenceURLs.push(evidence); | ||
evidenceURLs.push(evi); | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change here has broken my script as evidenceURLs has been modified to contain mixed type (string / object) and they are pushed onto the server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Some style changes and added the copy feature.