Widget: DevGuidelines: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
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 guideline = guidelinesResponse.query.results[title];
             const guidelineResult = guidelinesResponse.query.results[title];
            const guideline = {};
             guideline.title = title;
             guideline.title = title;
             guideline[PHASE_PROP] = guideline.printouts[PHASE_PROP].map(value => value.fulltext);
             guideline[PHASE_PROP] = guidelineResult.printouts[PHASE_PROP].map(value => value.fulltext);
             guideline[THEME_PROP] = guideline.printouts[THEME_PROP].map(value => value.fulltext);
             guideline[THEME_PROP] = guidelineResult.printouts[THEME_PROP].map(value => value.fulltext);
             guideline[LANG_PROP] = guideline.printouts[LANG_PROP].map(value => value.fulltext);
             guideline[LANG_PROP] = guidelineResult.printouts[LANG_PROP].map(value => value.fulltext);
             guideline[TA_PROP] = guideline.printouts[TA_PROP].map(value => value.fulltext);
             guideline[TA_PROP] = guidelineResult.printouts[TA_PROP].map(value => value.fulltext);
             guideline[EX_PROP] = guideline.printouts[EX_PROP].map(value => value.fulltext);
             guideline[EX_PROP] = guidelineResult.printouts[EX_PROP].map(value => value.fulltext);
             guideline[YEAR_PROP] = guideline.printouts[YEAR_PROP][0] && guideline.printouts[YEAR_PROP][0].raw;
             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!