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 359: Line 359:


             const dctResponse = await fetch(getQueryUrl(dctQuery)).then(response => response.json());
             const dctResponse = await fetch(getQueryUrl(dctQuery)).then(response => response.json());
            console.log('functions', functionsData)
             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];
Line 379: Line 381:
                         .filter(func => dctResult.printouts[func][0] && dctResult.printouts[func][0].fulltext.toLowerCase() === 'yes');
                         .filter(func => dctResult.printouts[func][0] && dctResult.printouts[func][0].fulltext.toLowerCase() === 'yes');


                        console.log('result',  {[DESC_KEY]: categoryData[DESC_KEY],  [FUNC_KEY]: confirmedFunctions })
           


                     if (confirmedFunctions.length > 0) {
                     if (confirmedFunctions.length > 0) {

Revision as of 16:03, 17 November 2022

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