Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 157: | Line 157: | ||
const dctQuery = '[[Category:Disaster Community Technology]]' + | const dctQuery = '[[Category:Disaster Community Technology]]' + | ||
// '[[Is Archived::No]]' + | // '[[Is Archived::No]]' + | ||
// '|limit=500' + | |||
' |?Image' + | '|?Image' + | ||
' |?Data Sources' + | '|?Data Sources' + | ||
searchFunctions.map(func => ' |?' + func).join('') + | searchFunctions.map(func => '|?' + func).join('') + | ||
postFunctions.map(func => ' |?' + func).join('') + | postFunctions.map(func => '|?' + func).join('') + | ||
analysisFunctions.map(func => ' |?' + func).join('') + | analysisFunctions.map(func => '|?' + func).join('') + | ||
metricsFunctions.map(func => ' |?' + func).join('') + | metricsFunctions.map(func => '|?' + func).join('') + | ||
reportFunctions.map(func => ' |?' + func).join(''); | reportFunctions.map(func => '|?' + func).join(''); | ||
const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | ||
const dctResponse = await fetch(dctQueryUrl).then(response => response.json()); | const dctResponse = await fetch(dctQueryUrl).then(response => response.json()); |
Revision as of 12:20, 14 June 2022
Development verstion of the DCT List.
Not ready for production!