From dcb62b2dc7abf5a05f92b6c0ca88e2b6f50dfe77 Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Tue, 15 Oct 2024 12:35:23 -0400 Subject: [PATCH] Fix Contributor Dupe --- .../components/collections/collections.jsx | 26 ++++++++++++------- .../components/collections/epicollections.jsx | 12 +++++++-- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/src/components/collections/collections.jsx b/src/src/components/collections/collections.jsx index 9967b2c2..ad221a24 100644 --- a/src/src/components/collections/collections.jsx +++ b/src/src/components/collections/collections.jsx @@ -525,7 +525,7 @@ export function CollectionForm (props){ }else if (row.is_contact && (row.is_contact === "TRUE"|| row.is_contact.toLowerCase()==="yes") ){ contacts.push(row) } - contributors.push(row) + // contributors.push(row) } setFormValues ({ @@ -548,10 +548,14 @@ export function CollectionForm (props){ key={("rowName_" + index)} className="row-selection" > - {row.display_name} - {row.affiliation} - {row.orcid} - { (row.is_contact && (row.is_contact==="TRUE" || row.is_contact.toLowerCase()==="yes")) ? : ""} + {row.display_name} + {row.affiliation} + {row.orcid} + {row.email } + { (row.is_contact && (row.is_contact==="TRUE" || row.is_contact.toLowerCase()==="yes")) ? : ""} + {row.is_principal_investigator } + {row.is_operator } + {row.metadata_schema_id} ); }); @@ -566,10 +570,14 @@ export function CollectionForm (props){ - Name - Affiliation - Orcid - Is Contact + Name + Affiliation + Orcid + Email + Is Contact + Is Principal Investigator + Is Operator + Metadata Schema ID diff --git a/src/src/components/collections/epicollections.jsx b/src/src/components/collections/epicollections.jsx index 7a506422..35410642 100644 --- a/src/src/components/collections/epicollections.jsx +++ b/src/src/components/collections/epicollections.jsx @@ -533,7 +533,7 @@ export function EPICollectionForm (props){ }else if(row.is_contact && (row.is_contact === "TRUE"|| row.is_contact.toLowerCase()==="yes") ){ contacts.push(row) } - contributors.push(row) + // contributors.push(row) } setFormValues ({ ...formValues, @@ -557,8 +557,12 @@ export function EPICollectionForm (props){ > {row.display_name} {row.affiliation} - {row.orcid} + {row.orcid} + {row.email } { (row.is_contact && (row.is_contact==="TRUE" || row.is_contact.toLowerCase()==="yes")) ? : ""} + {row.is_principal_investigator } + {row.is_operator } + {row.metadata_schema_id} ); }); @@ -577,7 +581,11 @@ export function EPICollectionForm (props){ Name Affiliation Orcid + Email Is Contact + Is Principal Investigator + Is Operator + Metadata Schema ID