Skip to content

Suppress hidden datasetContactEmail field when using CVoc#12420

Open
qqmyers wants to merge 1 commit into
IQSS:developfrom
GlobalDataverseCommunityConsortium:SuppressContactEmailWithCVoc
Open

Suppress hidden datasetContactEmail field when using CVoc#12420
qqmyers wants to merge 1 commit into
IQSS:developfrom
GlobalDataverseCommunityConsortium:SuppressContactEmailWithCVoc

Conversation

@qqmyers
Copy link
Copy Markdown
Member

@qqmyers qqmyers commented Jun 1, 2026

What this PR does / why we need it: #10503 added the raw values of CVoc managed fields as hidden DOM elements to allow CVoc scripts to use those values in constructing the display. This is needed for some use cases (see #10503 and related issue), harmless in most, but a problem for one use case - the datasetContactEmail field. Because it (and only it right now as far as I can see) is give the #EMAIL format, the display value is set to '' (actually to the value of the dataset.email.hiddenMessage string which is '') when the field is not managed by CVoc. When it is managed (i.e. to allow an ORCID or ROR entry for the contact), #10503 added the real value (i.e. the private email) as a hidden field, which means it is accessible via the page source. This PR suppresses adding a hidden field if the format is #EMAIL.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer: One could argue that the :ExcludeEmailFromExport setting should govern the display for this field instead of the one-off #EMAIL format, but that's a bigger change.

Suggestions on how to test this: Configure CVoc on the contact field with the email as a managed field and check the page source to see if the email is a hidden field or not.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: probably not?

Additional documentation:

@qqmyers qqmyers added the GDCC:ORCID Priority for the ORCID Global Participation Fund Grant label Jun 1, 2026
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Jun 1, 2026
@pdurbin pdurbin moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Jun 2, 2026
@pdurbin pdurbin added the Size: 10 A percentage of a sprint. 7 hours. label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GDCC:ORCID Priority for the ORCID Global Participation Fund Grant Size: 10 A percentage of a sprint. 7 hours.

Projects

Status: Ready for Review ⏩

Development

Successfully merging this pull request may close these issues.

2 participants