update the values of fos/sdg vocabulary
This commit is contained in:
parent
95b56039e4
commit
74c6b529d9
|
@ -146,7 +146,7 @@ export class ISVocabulariesService {
|
|||
for (var i = 0; i < data.length; i++) {
|
||||
var value: AutoCompleteValue = new AutoCompleteValue();
|
||||
value.id = data[i].id;//data[i].code;
|
||||
value.label = data[i].label;
|
||||
value.label = data[i].id;
|
||||
array.push(value);
|
||||
}
|
||||
return array;
|
||||
|
@ -159,11 +159,13 @@ export class ISVocabulariesService {
|
|||
value.id = fos.id;//data[i].code;
|
||||
value.label = fos.label;
|
||||
array.push(value);
|
||||
if(fos.children) {
|
||||
for (let fos2 of fos.children) {
|
||||
let value: AutoCompleteValue = new AutoCompleteValue();
|
||||
value.id = fos2.id;//data[i].code;
|
||||
value.label = fos2.label;
|
||||
array.push(value);
|
||||
if(fos2.children) {
|
||||
for (let fos3 of fos2.children) {
|
||||
let value: AutoCompleteValue = new AutoCompleteValue();
|
||||
value.id = fos3.id;//data[i].code;
|
||||
|
@ -172,6 +174,8 @@ export class ISVocabulariesService {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
parse(data: any, vocabularyName: string): AutoCompleteValue[] {
|
||||
|
|
Loading…
Reference in New Issue