Skip to content

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Nov 4, 2025

What this PR does / why we need it:

The external vocabulary mechanism adds data-cvoc-* attributes to metadata inputs that allow external JavaScripts to find/alter relevant metadata fields. The existing code that identifies 'managed' fields (e.g. for the author field, the name and ID type fields that are controlled a script running on the author identifier field) handles all of our input types except TEXTBOX. That's nominally due to the fact that the TEXTBOX dataset field type is the only one rendered as a textarea (p:inputTextarea in the xhtml).

This PR adds the data-cvoc-managed-field attribute to TEXTBOX fields.

The specific use case requiring this functionality is for work related to the GDCC ORCID grant that leverages author's ORCID Profile works to populate the related publication fields, including the publicationCitation field, which is a TEXTBOX type.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this:
The simplest test would be to add the https://github.com/gdcc/dataverse-external-vocab-support/blob/PIDs/examples/config/demos/relatedPubs.json object to the overall :CVoCConf setting for a given instance and to then look in the browser console to confirm that the publicationCitation textarea has a data-cvoc-managed-field attribute.

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?:

Additional documentation:

@qqmyers qqmyers marked this pull request as ready for review November 4, 2025 20:28
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Nov 4, 2025
@qqmyers qqmyers added this to the 6.9 milestone Nov 4, 2025
@qqmyers qqmyers added Size: 0.5 A percentage of a sprint. 0.35 hours GDCC:ORCID Priority for the ORCID Global Participation Fund Grant labels Nov 4, 2025
@scolapasta scolapasta moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Nov 12, 2025
@stevenwinship stevenwinship self-assigned this Nov 12, 2025
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Nov 12, 2025
@stevenwinship
Copy link
Contributor

stevenwinship commented Nov 12, 2025

<textarea id="datasetForm:j_idt602:0:j_idt605:11:j_idt659:0:j_idt661:1:description" name="datasetForm:j_idt602:0:j_idt605:11:j_idt659:0:j_idt661:1:description" class="ui-inputfield ui-inputtextarea ui-widget ui-state-default ui-corner-all form-control ui-inputtextarea-resizable ui-state-filled" cols="60" rows="5" maxlength="2147483647" data-cvoc-managed-field="publicationCitation" role="textbox" aria-readonly="false" aria-disabled="false" aria-multiline="true" placeholder="" style="overflow-x: hidden; overflow-wrap: break-word; height: 114px;"></textarea>

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Nov 12, 2025
@stevenwinship stevenwinship removed their assignment Nov 12, 2025
@cmbz cmbz added FY26 Sprint 10 FY26 Sprint 10 (2025-11-05 - 2025-11-19) FY26 Sprint 11 FY26 Sprint 11 (2025-11-20 - 2025-12-03) labels Nov 20, 2025
@sekmiller sekmiller self-assigned this Dec 3, 2025
@sekmiller sekmiller moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Dec 3, 2025
@cmbz cmbz added the FY26 Sprint 12 FY26 Sprint 12 (2025-12-03 - 2025-12-17) label Dec 3, 2025
@sekmiller sekmiller merged commit 37388cc into IQSS:develop Dec 4, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Dec 4, 2025
@sekmiller sekmiller removed their assignment Dec 4, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 10 FY26 Sprint 10 (2025-11-05 - 2025-11-19) FY26 Sprint 11 FY26 Sprint 11 (2025-11-20 - 2025-12-03) FY26 Sprint 12 FY26 Sprint 12 (2025-12-03 - 2025-12-17) GDCC:ORCID Priority for the ORCID Global Participation Fund Grant Size: 0.5 A percentage of a sprint. 0.35 hours

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

4 participants