Widget: DevGuidelines: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 50: | Line 50: | ||
const guidelines = Object.keys(guidelinesResponse.query.results).map(title => { | const guidelines = Object.keys(guidelinesResponse.query.results).map(title => { | ||
const | const guidelineResult = guidelinesResponse.query.results[title]; | ||
const guideline = {}; | |||
guideline.title = title; | guideline.title = title; | ||
guideline[PHASE_PROP] = | guideline[PHASE_PROP] = guidelineResult.printouts[PHASE_PROP].map(value => value.fulltext); | ||
guideline[THEME_PROP] = | guideline[THEME_PROP] = guidelineResult.printouts[THEME_PROP].map(value => value.fulltext); | ||
guideline[LANG_PROP] = | guideline[LANG_PROP] = guidelineResult.printouts[LANG_PROP].map(value => value.fulltext); | ||
guideline[TA_PROP] = | guideline[TA_PROP] = guidelineResult.printouts[TA_PROP].map(value => value.fulltext); | ||
guideline[EX_PROP] = | guideline[EX_PROP] = guidelineResult.printouts[EX_PROP].map(value => value.fulltext); | ||
guideline[YEAR_PROP] = | guideline[YEAR_PROP] = guidelineResult.printouts[YEAR_PROP][0] && guidelineResult.printouts[YEAR_PROP][0].raw; | ||
return guideline; | return guideline; | ||
}); | }); |
Revision as of 09:42, 1 September 2022
Development version of the List of Guidelines.
Not ready for production!