Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 362: | Line 362: | ||
const dctResult = dctResponse.query.results[dctName]; | const dctResult = dctResponse.query.results[dctName]; | ||
/** @type {DCT} */ | /** @type {DCT} */ | ||
Line 375: | Line 375: | ||
dct.functions = new Map(); | dct.functions = new Map(); | ||
functionsData.forEach((categoryData, funcCategory) => { | functionsData.forEach((categoryData, funcCategory) => { | ||
console.log('checking', categoryData[FUNC_KEY]) | |||
const confirmedFunctions = categoryData[FUNC_KEY] | const confirmedFunctions = categoryData[FUNC_KEY] | ||
.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', confirmedFunctions) | |||
if (confirmedFunctions.length > 0) { | if (confirmedFunctions.length > 0) { |
Revision as of 15:56, 17 November 2022
Development verstion of the DCT List.
Not ready for production!