Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 320: | Line 320: | ||
+ '|?Has_description=' + DESC_KEY; | + '|?Has_description=' + DESC_KEY; | ||
const functionsQueryResponse = await fetch(getQueryUrl(functionsQuery)).then(response => response.json()); | const functionsQueryResponse = await fetch(getQueryUrl(functionsQuery)).then(response => response.json()); | ||
const sortOrder = Object.keys(fnImages); | const sortOrder = Object.keys(fnImages); | ||
Line 338: | Line 336: | ||
}); | }); | ||
// console.log('BLA', x) | |||
Object.keys(functionsQueryResponse.query.results) | // Object.keys(functionsQueryResponse.query.results) | ||
// .forEach(key => { | |||
// const functionCategory = functionsQueryResponse.query.results[key]; | |||
// functionsData.set( | |||
// removePrefix(functionCategory.fulltext), | |||
// { | |||
// [DESC_KEY]: functionCategory.printouts[DESC_KEY][0], | |||
// [FUNC_KEY]: functionCategory.printouts[FUNC_KEY].map(func => removePrefix(func.fulltext)) | |||
// } | |||
// ); | |||
// }); | |||
// TODO: Remove properties that are not relevant for the filter? (e.g. 'Supported content types') | // TODO: Remove properties that are not relevant for the filter? (e.g. 'Supported content types') |
Revision as of 15:54, 16 November 2022
Development verstion of the DCT List.
Not ready for production!