Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 82: | Line 82: | ||
const escapeAttr = text => text ? text.replace(/\s/g, '-') : text; | const escapeAttr = text => text ? text.replace(/\s/g, '-') : text; | ||
const hasFunction = (dctResult, subfunctions) => subfunctions.some( | const hasFunction = (dctResult, subfunctions) => subfunctions.some(func => { | ||
const printoutResult = dctResult.printouts[func]; | |||
); | return printoutResult[0] && printoutResult[0].fulltext.toLowerCase() === 'yes' | ||
}); | |||
async function getSources() { | async function getSources() { |
Revision as of 16:02, 9 June 2022
Development verstion of the DCT List.
Not ready for production!