Last modified: 2012-08-06 11:56:04 UTC
## Description Add a navigation widget (class SRFListWidget) which extends the list printer (SMWListResultPrinter). SRFListWidget does not interfere with the non-JavaScript list output of SMWListResultPrinter but it will retrieve results from SMWListResultPrinter in order to wrap them into separated classes used by different display widgets. This printer can be useful for larger list sets such as directories, category list etc. ## Implementation Results are fetch from the parent (SMWListResultPrinter) and extended with a RL module that uses two JavaScript plug-ins enhancing the UL / OL list display. [1] An alphabet-based navigation widget (as list or menu) to any UL or OL list [2] A simple pagination navigation widget to any UL or OL list (mainly for large lists) ## Parameters [format] = either ( 'listwidget', 'list widget', 'listnav', 'listpage' ) [listtype] = ( 'unordered', 'ordered' ) (default = unordered) [widget] = alphabet, menu, pagination (default = alphabet) [itemlimit] = used for pagination and determines how many elements should be displayed per page unit (default = 5) ## Test Changes have been tested with MW 1.20alpha (a99056e) / Semantic Result Formats (Version 1.8 alpha) (fc01a02)/ Semantic MediaWiki (Version 1.8 alpha) (1e3a1ae) / Validator (Version 0.5 alpha (59e2013) ## Note [1] http://www.ihwy.com/labs/jquery-listnav-plugin.aspx which is dual licensed under the MIT and GPL [2] https://github.com/wesnolte/Pajinate which is licensed under the MIT License
See https://gerrit.wikimedia.org/r/#/c/12128/
Now on a topic branch https://gerrit.wikimedia.org/r/#/c/17178/