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 207: Line 207:
                         '|?Image' +
                         '|?Image' +
                         '|?Data Sources' +
                         '|?Data Sources' +
                         searchFunctions.map(func => '|?' + func).join('') +
                         '|?' + searchFunctions.join('|?') +
                         postFunctions.map(func => '|?' + func).join('') +
                         '|?' + postFunctions.join('|?') +
                         analysisFunctions.map(func => '|?' + func).join('') +
                         '|?' + analysisFunctions.join('|?') +
                         metricsFunctions.map(func => '|?' + func).join('') +
                         '|?' + metricsFunctions.join('|?') +
                         reportFunctions.map(func => '|?' + func).join('') +
                         '|?' + reportFunctions.join('|?') +
                         collaborationFunctions.map(func => '|?' + func).join('') +
                         '|?' + collaborationFunctions.join('|?') +
                         interoperabilityFunctions.map(func => '|?' + func).join('') +
                         '|?' + interoperabilityFunctions.join('|?') +
                         metaFunctions.map(func => '|?' + func).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());
        // console.log(dctResponse);


         const results = dctResponse.query.results;
         const results = dctResponse.query.results;

Revision as of 12:00, 20 June 2022

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