Widget: CrisisCommunicationList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 282: | Line 282: | ||
crisisComm.url = result.fullurl; | crisisComm.url = result.fullurl; | ||
crisisComm[TYPE_PROP] = result.printouts[TYPE_PROP][0]; | |||
crisisComm[PHASE_PROP] = result.printouts[PHASE_PROP].map(value => value.fulltext); | crisisComm[PHASE_PROP] = result.printouts[PHASE_PROP].map(value => value.fulltext); | ||
crisisComm[SCENARIO_PROP] = result.printouts[SCENARIO_PROP].map(value => value.fulltext); | crisisComm[SCENARIO_PROP] = result.printouts[SCENARIO_PROP].map(value => value.fulltext); | ||
crisisComm[LANG_PROP] = result.printouts[LANG_PROP].map(value => value.fulltext); | crisisComm[LANG_PROP] = result.printouts[LANG_PROP].map(value => value.fulltext); | ||
Line 390: | Line 390: | ||
}, ''); | }, ''); | ||
document.getElementById('phases-filter').innerHTML = phaseHtml; | document.getElementById('phases-filter').innerHTML = phaseHtml; | ||
let langHtml = languageOptions.reduce((acc, curr) => { | |||
const identifier = escapeAttr(curr); | |||
return acc | |||
+ '<div><input type="checkbox" id="language-filter-' + identifier | |||
+ '" value="' + curr + '">' | |||
+ '<label for="language-filter-' + identifier + '">' + curr + '</label></div>' | |||
}, ''); | |||
document.getElementById('language-filter').innerHTML = langHtml; | |||
const tabulator = new Tabulator('#tabulator-table', { | const tabulator = new Tabulator('#tabulator-table', { |
Revision as of 14:59, 8 September 2023
Current version of the Crisis Communication Library.
Currently in use – do not modify!