Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 500: | Line 500: | ||
// Construct filter summary | // Construct filter summary | ||
let summaryHtml = ''; | let summaryHtml = '<table>'; | ||
if (filter.type.functions) { | if (filter.type.functions) { | ||
summaryHtml += '< | summaryHtml += '<tr><td><strong>Functions</strong></td><td>' | ||
+ (filter.type.functions.length > 0 ? filter.type.functions.join(', ') : 'none') | + (filter.type.functions.length > 0 ? filter.type.functions.join(', ') : 'none') | ||
+ '</ | + '</td></tr>'; | ||
} | } | ||
if (filter.type.dataSources) { | if (filter.type.dataSources) { | ||
summaryHtml += '< | summaryHtml += '<tr><td><strong>Platforms</strong></td><td>' | ||
+ (filter.type.dataSources.length > 0 ? filter.type.dataSources.join(', ') : 'none') | + (filter.type.dataSources.length > 0 ? filter.type.dataSources.join(', ') : 'none') | ||
+ '</ | + '</td></tr>'; | ||
} | } | ||
summaryHtml += '</table>'; | |||
summary.innerHTML = summaryHtml; | summary.innerHTML = summaryHtml; | ||
Revision as of 12:08, 7 September 2022
Development verstion of the DCT List.
Not ready for production!