Difference between revisions of "Widget:DCTList"
From LINKS Community Center
Line 92: | Line 92: | ||
const FN_COLLAB = 'Collaboration'; | const FN_COLLAB = 'Collaboration'; | ||
const FN_INTEROP = 'Interoperability'; | const FN_INTEROP = 'Interoperability'; | ||
+ | const FN_META = 'Meta'; | ||
const fnImages = {}; | const fnImages = {}; | ||
Line 101: | Line 102: | ||
fnImages[FN_COLLAB] = '/index.php/Special:FilePath/File:Func_collaboration.svg'; | fnImages[FN_COLLAB] = '/index.php/Special:FilePath/File:Func_collaboration.svg'; | ||
fnImages[FN_INTEROP] = '/index.php/Special:FilePath/File:Func_interoperability.svg'; | fnImages[FN_INTEROP] = '/index.php/Special:FilePath/File:Func_interoperability.svg'; | ||
+ | fnImages[FN_META] = '/index.php/Special:FilePath/File:Func_meta.svg'; | ||
const sourcesLayout = [ | const sourcesLayout = [ | ||
Line 183: | Line 185: | ||
'Third party tool integration', | 'Third party tool integration', | ||
'API support' | 'API support' | ||
+ | ]; | ||
+ | const metaFunctions = [ | ||
+ | 'White Label', | ||
+ | 'GDPR compliant', | ||
+ | 'Historical data access', | ||
+ | 'Multiple accounts per platform' | ||
]; | ]; | ||
Line 196: | Line 204: | ||
reportFunctions.map(func => '|?' + func).join('') + | reportFunctions.map(func => '|?' + func).join('') + | ||
collaborationFunctions.map(func => '|?' + func).join('') + | collaborationFunctions.map(func => '|?' + func).join('') + | ||
− | interoperabilityFunctions.map(func => '|?' + func).join('') | + | interoperabilityFunctions.map(func => '|?' + func).join('') + |
− | ; | + | metaFunctions.map(func => '|?' + func).join(''); |
const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | ||
Line 223: | Line 231: | ||
if (hasFunction(dctResult, collaborationFunctions)) dct.functions.push(FN_COLLAB); | if (hasFunction(dctResult, collaborationFunctions)) dct.functions.push(FN_COLLAB); | ||
if (hasFunction(dctResult, interoperabilityFunctions)) dct.functions.push(FN_INTEROP); | if (hasFunction(dctResult, interoperabilityFunctions)) dct.functions.push(FN_INTEROP); | ||
+ | if (hasFunction(dctResult, metaFunctions)) dct.functions.push(FN_META); | ||
return dct; | return dct; |
Revision as of 16:59, 15 June 2022
Development verstion of the DCT List.
Not ready for production!