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 183: Line 183:
         const fRes = await fetch(qUrl).then(response => response.json());
         const fRes = await fetch(qUrl).then(response => response.json());


         const data = fRes.query.results
         const data = fRes.query.results;
        const xxx = new Map();


         Object.keys(data).forEach(key => {
         Object.keys(data).forEach(key => {
             console.log(key)
             let obj = data[key]
            xxx.set(obj.fulltext.split(':')[1], obj.printouts[CKEY].map(func => func.fulltext.split(':')[1]))
         })
         })
         console.log('Func result', fRes);
         console.log('Func result', xxx);


         const re = /^.+:(.+)$/;
         const re = /^.+:(.+)$/;

Revision as of 12:39, 30 August 2022

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