Skip to content

Commit

Permalink
Merge pull request #1303 from OpenTreeOfLife/allow-reusing-taxon-names
Browse files Browse the repository at this point in the history
Allow reusing taxon names
  • Loading branch information
mtholder authored Feb 28, 2023
2 parents dafb269 + 3685a14 commit 5aa3602
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions curator/static/js/study-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11124,10 +11124,14 @@ function taxonCondidateIsValid( candidate, options ) {
}
return false;
case 'FOUND IN TAXONOMY':
// we want to allow existing taxon names, and we already show a warning
/*
if (options.REPORT_ERRORS) {
showErrorMessage('There is already a taxon with this name! Homonyms are not currently allowed.');
showInfoMessage('There is already a taxon with this name! Proceed with caution.');
}
return false;
// return false;
*/
break;
case 'NOT FOUND':
// it's a unique name! no problem here
break;
Expand Down Expand Up @@ -11305,7 +11309,7 @@ function proposedTaxonNameStatusMessage(candidate) {
case 'NOT FOUND':
return "No duplicates found.";
case 'FOUND IN TAXONOMY':
return "Already in OT taxonomy!";
return "Already in OT taxonomy! Are you sure?";
case 'FOUND IN CANDIDATES':
return "Already in proposed taxa!";
default:
Expand Down

0 comments on commit 5aa3602

Please sign in to comment.