diff --git a/scripts/people.js b/scripts/people.js index 70a42f0..743ea60 100644 --- a/scripts/people.js +++ b/scripts/people.js @@ -31,6 +31,7 @@ function expandPeople() { //If found, construct the HTML for display var name = person.name['family-name'].value + ", " + person.name['given-names'].value; var displayElement = $('').attr('href', 'https://orcid.org/' + id).attr('target', '_blank').attr('rel', 'noopener').html(name + ' ORCID logo'); + $(personElement).hide(); let sibs = $(personElement).siblings("[data-cvoc-index='" + $(personElement).attr('data-cvoc-index') + "']"); if(sibs.length==0) { displayElement.prependTo($(personElement).parent());