update the values of fos/sdg vocabulary

This commit is contained in:
argirok 2022-03-24 12:57:33 +02:00
parent 95b56039e4
commit 74c6b529d9
1 changed files with 13 additions and 9 deletions

View File

@ -146,7 +146,7 @@ export class ISVocabulariesService {
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
var value: AutoCompleteValue = new AutoCompleteValue(); var value: AutoCompleteValue = new AutoCompleteValue();
value.id = data[i].id;//data[i].code; value.id = data[i].id;//data[i].code;
value.label = data[i].label; value.label = data[i].id;
array.push(value); array.push(value);
} }
return array; return array;
@ -159,16 +159,20 @@ export class ISVocabulariesService {
value.id = fos.id;//data[i].code; value.id = fos.id;//data[i].code;
value.label = fos.label; value.label = fos.label;
array.push(value); array.push(value);
for (let fos2 of fos.children) { if(fos.children) {
let value: AutoCompleteValue = new AutoCompleteValue(); for (let fos2 of fos.children) {
value.id = fos2.id;//data[i].code;
value.label = fos2.label;
array.push(value);
for (let fos3 of fos2.children) {
let value: AutoCompleteValue = new AutoCompleteValue(); let value: AutoCompleteValue = new AutoCompleteValue();
value.id = fos3.id;//data[i].code; value.id = fos2.id;//data[i].code;
value.label = fos3.label; value.label = fos2.label;
array.push(value); array.push(value);
if(fos2.children) {
for (let fos3 of fos2.children) {
let value: AutoCompleteValue = new AutoCompleteValue();
value.id = fos3.id;//data[i].code;
value.label = fos3.label;
array.push(value);
}
}
} }
} }
} }