Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 307: Line 307:
             const IMG_PROP = 'Image';
             const IMG_PROP = 'Image';
             const BUSINESS_PROP = 'Business model';
             const BUSINESS_PROP = 'Business model';
            const DMO_PROP = 'Used by DMO';
             const dctQuery = '[[Category:Disaster Community Technology]]'
             const dctQuery = '[[Category:Disaster Community Technology]]'
                           + '[[Is Archived::No]]'
                           + '[[Is Archived::No]]'
Line 313: Line 314:
                           + '|?' + DATASRC_PROP
                           + '|?' + DATASRC_PROP
                           + '|?' + BUSINESS_PROP
                           + '|?' + BUSINESS_PROP
                          + '|?' + DMO_PROP
                           + '|?' + allFunctions.join('|?');
                           + '|?' + allFunctions.join('|?');


             const dctResponse = await fetch(getQueryUrl(dctQuery)).then(response => response.json());
             const dctResponse = await fetch(getQueryUrl(dctQuery)).then(response => response.json());
            console.log(dctResponse)
             const dctList = Object.keys(dctResponse.query.results).map(dctName => {
             const dctList = Object.keys(dctResponse.query.results).map(dctName => {
                 const dctResult = dctResponse.query.results[dctName];
                 const dctResult = dctResponse.query.results[dctName];

Revision as of 10:26, 13 September 2022

Development verstion of the DCT List.
Not ready for production!