Skip to content

Commit 37388cc

Browse files
authored
Merge pull request #11954 from GlobalDataverseCommunityConsortium/Textbox_CVoC
Enable CVoC managed-field for TEXTBOX type
2 parents c88a1d0 + 74429f6 commit 37388cc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### External Vocabulary Mechanism enhancement
2+
3+
- The external vocabulary mechanism (see https://github.com/gdcc/dataverse-external-vocab-support/) now supports
4+
assigning metadatablock dataset field types of fieldType textbox (multiline inputs) as managed fields. This new functionality is
5+
being leveraged to support automated generation of citation text for Related Publications entries. (a url could be added once the work in the external vocabulary repo is done).

src/main/webapp/datasetFieldForEditFragment.xhtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
<c:if test="#{dsfvIndex!=0}">
7878
<f:passThroughAttribute name="aria-label" value="#{bundle['dataset.additionalEntry']}" />
7979
</c:if>
80-
</p:inputTextarea>
80+
<f:passThroughAttribute rendered="#{cvoc!=null and !cvoc.getString('term-uri-field').equals(dsfv.datasetField.datasetFieldType.name)}" name="data-cvoc-managed-field" value="#{dsfv.datasetField.datasetFieldType.name}"/>
81+
</p:inputTextarea>
8182
<p:watermark for="description" value="#{dsfv.datasetField.datasetFieldType.localeWatermark}"></p:watermark>
8283

8384
<div class="ui-message ui-message-error ui-widget ui-corner-all" aria-live="polite" jsf:rendered="#{dsfvIndex eq 0 and !empty dsfv.datasetField.validationMessage}">

0 commit comments

Comments
 (0)