refactory for metadata and collection params

This commit is contained in:
Danilo Di Nuzzo
2020-08-12 14:01:29 +02:00
parent 4a30e5d7d5
commit 66cabcb342
20 changed files with 23 additions and 101 deletions

View File

@@ -109,12 +109,10 @@ export abstract class FieldParser {
}
}
public setVocabularyOptions(controlModel, scope) {
public setVocabularyOptions(controlModel) {
if (isNotEmpty(this.configData.selectableMetadata) && isNotEmpty(this.configData.selectableMetadata[0].controlledVocabulary)) {
controlModel.vocabularyOptions = new VocabularyOptions(
this.configData.selectableMetadata[0].controlledVocabulary,
this.configData.selectableMetadata[0].metadata,
scope,
this.configData.selectableMetadata[0].closed
)
}