|
90 | 90 | <f:passThroughAttribute name="data-cvoc-service-url" value="#{cvocConf.get(dsf.datasetFieldType.id).getString('cvoc-url','')}" /> |
91 | 91 | <f:passThroughAttribute name="data-cvoc-headers" value="#{cvocConf.get(dsf.datasetFieldType.id).containsKey('headers') ? cvocConf.get(dsf.datasetFieldType.id).get('headers').toString() : '{}'}"/> |
92 | 92 | <f:passThroughAttribute name="data-cvoc-protocol" value="#{cvocConf.get(dsf.datasetFieldType.id).getString('protocol','')}" /> |
93 | | - <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(dsf.datasetFieldType.id).get('managedfields').toString()}" /> |
| 93 | + <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(dsf.datasetFieldType.id).get('managed-fields').toString()}" /> |
94 | 94 | </h:outputText> |
95 | 95 | <h:outputText value="#{dsf.getDisplayValue(mdLangCode)}" |
96 | 96 | rendered="#{!dsf.datasetFieldType.allowMultiples and !cvocOnDsf}" |
|
103 | 103 | <f:passThroughAttribute name="data-cvoc-service-url" value="#{cvocConf.get(dsf.datasetFieldType.id).getString('cvoc-url','')}" /> |
104 | 104 | <f:passThroughAttribute name="data-cvoc-headers" value="#{cvocConf.get(dsf.datasetFieldType.id).containsKey('headers') ? cvocConf.get(dsf.datasetFieldType.id).get('headers').toString() : '{}'}"/> |
105 | 105 | <f:passThroughAttribute name="data-cvoc-protocol" value="#{cvocConf.get(dsf.datasetFieldType.id).getString('protocol','')}" /> |
106 | | - <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(dsf.datasetFieldType.id).get('managedfields').toString()}" /> |
| 106 | + <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(dsf.datasetFieldType.id).get('managed-fields').toString()}" /> |
107 | 107 | </h:outputText> |
108 | 108 | </ui:repeat> |
109 | 109 | <ui:repeat value="#{dsf.getValues(mdLangCode)}" var="value" varStatus="loop" rendered="#{dsf.datasetFieldType.allowMultiples and !cvocOnDsf}"> |
|
125 | 125 | </div> |
126 | 126 | </ui:fragment> |
127 | 127 |
|
128 | | - <ui:repeat value="#{dsf.datasetFieldCompoundValues}" var="compoundValue" varStatus="compoundValuesstatus"> |
| 128 | + <ui:repeat value="#{dsf.datasetFieldCompoundValues}" var="compoundValue" varStatus="compoundValuesStatus"> |
129 | 129 |
|
130 | 130 | <ui:repeat value="#{compoundValue.displayValueMap.entrySet().toArray()}" var="cvPart" varStatus="partStatus"> |
131 | 131 | <c:set var="cvocOnCvPart" value="#{cvocConf.containsKey(cvPart.key.datasetFieldType.id)}"/> |
|
151 | 151 | <f:passThroughAttribute name="data-cvoc-headers" value="#{cvocConf.get(cvPart.key.datasetFieldType.id).containsKey('headers') ? cvocConf.get(cvPart.key.datasetFieldType.id).get('headers').toString() : '{}'}"/> |
152 | 152 | <f:passThroughAttribute name="data-cvoc-protocol" value="#{cvocConf.get(cvPart.key.datasetFieldType.id).getString('protocol','')}" /> |
153 | 153 | <!-- unlikely to be used in this case --> |
154 | | - <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(cvPart.key.datasetFieldType.id).get('managedfields').toString()}" /> |
| 154 | + <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(cvPart.key.datasetFieldType.id).get('managed-fields').toString()}" /> |
| 155 | + <f:passThroughAttribute name="data-cvoc-index" value="#{compoundValuesStatus.index}" /> |
155 | 156 | </h:outputText> |
156 | 157 | <!-- Cvoc on parent field --> |
157 | 158 | <h:outputText value="#{cvPart.key.value}" |
|
161 | 162 | <f:passThroughAttribute name="data-cvoc-service-url" value="#{cvocConf.get(dsf.datasetFieldType.id).getString('cvoc-url','')}" /> |
162 | 163 | <f:passThroughAttribute name="data-cvoc-headers" value="#{cvocConf.get(dsf.datasetFieldType.id).containsKey('headers') ? cvocConf.get(dsf.datasetFieldType.id).get('headers').toString() : '{}'}"/> |
163 | 164 | <f:passThroughAttribute name="data-cvoc-protocol" value="#{cvocConf.get(dsf.datasetFieldType.id).getString('protocol','')}" /> |
164 | | - <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(dsf.datasetFieldType.id).get('managedfields').toString()}" /> |
| 165 | + <f:passThroughAttribute name="data-cvoc-managedfields" value="#{cvocConf.get(dsf.datasetFieldType.id).get('managed-fields').toString()}" /> |
| 166 | + <f:passThroughAttribute name="data-cvoc-index" value="#{compoundValuesStatus.index}" /> |
| 167 | + </h:outputText> |
| 168 | + <!-- Cvoc for others fields --> |
| 169 | + <h:outputText value="#{cvPart.key.value}" |
| 170 | + escape="#{cvPart.key.datasetFieldType.isEscapeOutputText()}" |
| 171 | + rendered="#{(cvocOnDsf or cvocOnCvPart) and not ( |
| 172 | + cvPart.key.datasetFieldType.name.equals(cvocConf.get(cvPart.key.datasetFieldType.id).getString('term-uri-field')) |
| 173 | + or cvPart.key.datasetFieldType.name.equals(cvocConf.get(dsf.datasetFieldType.id).getString('term-uri-field')))}" |
| 174 | + styleClass="hidden"> |
| 175 | + <f:passThroughAttribute name="hidden" value="hidden" /> |
| 176 | + <f:passThroughAttribute name="data-cvoc-metadata-name" value="#{cvPart.key.datasetFieldType.name}" /> |
| 177 | + <f:passThroughAttribute name="data-cvoc-index" value="#{compoundValuesStatus.index}" /> |
165 | 178 | </h:outputText> |
166 | 179 | </ui:repeat> |
167 | | - <ui:fragment rendered="#{not compoundValuesstatus.last}"> |
| 180 | + <ui:fragment rendered="#{not compoundValuesStatus.last}"> |
168 | 181 | <br/> |
169 | 182 | </ui:fragment> |
170 | 183 | </ui:repeat> |
|
0 commit comments