Skip to content

Commit 208b0e6

Browse files
committed
fix logic as to when to use parent displayformat w.r.t. cvoc
1 parent cb3c8f2 commit 208b0e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/webapp/metadataFragment.xhtml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<c:set var="cvocOnDsfApplies" value="#{compoundValue.hasChildOfType(cvocConf.get(dsf.datasetFieldType.id).getString('term-uri-field'))}"/>
142142
<ui:repeat value="#{compoundValue.getDisplayValueMap(mdLangCode).entrySet().toArray()}" var="cvPart" varStatus="partStatus">
143143
<c:set var="cvocOnCvPart" value="#{cvocConf.containsKey(cvPart.key.datasetFieldType.id)}"/>
144-
<h:outputText value="#{dsf.datasetFieldType.displayFormat} " rendered="${!partStatus.first and !settingsWrapper.isCvocField(cvPart.key.datasetFieldType.id)}"/>
144+
<h:outputText value="#{dsf.datasetFieldType.displayFormat} " rendered="${!partStatus.first and !settingsWrapper.isCvocField(compoundValue.getDisplayValueMap(mdLangCode).entrySet().toArray()[partStatus.index-1].key.datasetFieldType.id)}"/>
145145
<ui:remove>
146146
<!--
147147
this fragment is supposed to show when no script will be changing it, which occurs when:

0 commit comments

Comments
 (0)