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 85: Line 85:


         const results = sourceResponse.query.results;
         const results = sourceResponse.query.results;
        const sourceNames = Object.getOwnPropertyNames(results)
        console.log(sourceNames)
         const sources = Object.getOwnPropertyNames(results).map(platformName => ({
         const sources = Object.getOwnPropertyNames(results).map(platformName => ({
             name: platformName,
             name: platformName,
Line 147: Line 145:
         const dataSources = data[0];
         const dataSources = data[0];
         const dcts = data[1];
         const dcts = data[1];
        dataSources.unshift(dataSources.splice(dataSources.findIndex(src => src.name === 'Web'), 1)[0]);


         // Set up filters.
         // Set up filters.

Revision as of 11:00, 9 June 2022

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