Difference between revisions of "Widget:DCTList"
From LINKS Community Center
Line 242: | Line 242: | ||
'|?' + collaborationFunctions.join('|?') + | '|?' + collaborationFunctions.join('|?') + | ||
'|?' + interoperabilityFunctions.join('|?') + | '|?' + interoperabilityFunctions.join('|?') + | ||
− | '|?' + metaFunctions.join('|?') | + | '|?' + metaFunctions.join('|?'); |
− | |||
const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | ||
const dctResponse = await fetch(dctQueryUrl).then(response => response.json()); | const dctResponse = await fetch(dctQueryUrl).then(response => response.json()); | ||
− | |||
const results = dctResponse.query.results; | const results = dctResponse.query.results; | ||
− | |||
const dctList = Object.getOwnPropertyNames(results).map(dctKey => { | const dctList = Object.getOwnPropertyNames(results).map(dctKey => { | ||
Revision as of 16:51, 25 August 2022
Development verstion of the DCT List.
Not ready for production!