Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 670: Line 670:
 
                         } else {
 
                         } else {
 
                             for (const [cat, subs] of filter.type.functions) {
 
                             for (const [cat, subs] of filter.type.functions) {
                                 summaryHtml += cat + ' <small>(' + subs.join(', ') + ')</small>, ';
+
                                 summaryHtml += cat;
 +
                                summaryHtml += subs.length > 0 ? ' <small>(' + subs.join(', ') + ')</small>' : '';
 +
                                summaryHtml += ', ';
 
                             }
 
                             }
 
                             summaryHtml = summaryHtml.substring(0, summaryHtml.length - 2);
 
                             summaryHtml = summaryHtml.substring(0, summaryHtml.length - 2);

Revision as of 16:46, 21 November 2022

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