SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

Highlight search results in new datatables format #776

Closed Seb35 closed 5 months ago

Seb35 commented 1 year ago

This improves the recent work on the datatables format, it highlights the search results by using the library mark.js and its datatables plugin, both under MIT license.

See this blog post in datatables.net for an overview of this library mark.js and its integration.

thomas-topway-it commented 1 year ago

it would be good to manage it through a parameter, for instance

        $params['datatables-mark'] = [
            'type' => 'boolean',
            'message' => 'srf-paramdesc-datatables-library-option',
            'default' => false,
        ];

and

        $params['datatables-mark.diacritics'] = [
            'type' => 'boolean',
            'message' => 'srf-paramdesc-datatables-library-option',
            'default' => false,
        ];

etc. for the most relevant options available here https://markjs.io/#mark so we keep the current design

thomas-topway-it commented 1 year ago

hello @Seb35 can you resync the fork so we can merge it ? thank you

jaideraf commented 5 months ago

Since https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/801 was merged, this PR should be closed.