Skip to content

Commit 9f92349

Browse files
changed heading for fields
Signed-off-by: Sachin Panayil <sachinpanayil01@gmail.com>
1 parent 2c4c04a commit 9f92349

File tree

2 files changed

+474
-538
lines changed

2 files changed

+474
-538
lines changed

js/buildSchema.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ async function buildSchemaFromSDGData(sdgData) {
6767

6868
const fieldKey = `sdg_${indicator.code.replace(/\./g, '_')}`;
6969

70-
properties[fieldKey] = {
70+
properties[`Does your project address: ${indicator.description}`] = {
7171
"type": "boolean",
72-
"description": `Does your project pertain to: ${indicator.description}? (Goal ${indicator.goal}, Target ${indicator.target})`
72+
"description": `Goal ${indicator.goal}, Target ${indicator.target}`
7373
};
7474

7575
if (indicator.series && indicator.series.length > 0) {
@@ -80,9 +80,9 @@ async function buildSchemaFromSDGData(sdgData) {
8080
seriesData.forEach((series, index) => {
8181
const seriesKey = `${fieldKey}_series_${index + 1}`;
8282

83-
properties[seriesKey] = {
83+
properties[`Does your project address: ${series.description}`] = {
8484
"type": "boolean",
85-
"description": `Does your project address: ${series.description || `Series ${index + 1} of indicator ${indicator.code}`}?`
85+
"description": `Series ${index + 1} of indicator ${indicator.code}?`
8686
};
8787
});
8888
}

0 commit comments

Comments
 (0)