Last modified: 2012-08-06 11:56:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39721, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37721 - [SRF] 1.8; Add a list navigation widget (extends SMWListResultPrinter)
[SRF] 1.8; Add a list navigation widget (extends SMWListResultPrinter)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks: 37723 37899
  Show dependency treegraph
 
Reported: 2012-06-19 21:23 UTC by MWJames
Modified: 2012-08-06 11:56 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MWJames 2012-06-19 21:23:25 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
Comment 1 MWJames 2012-06-19 23:52:24 UTC
See https://gerrit.wikimedia.org/r/#/c/12128/
Comment 2 MWJames 2012-08-06 11:56:04 UTC
Now on a topic branch https://gerrit.wikimedia.org/r/#/c/17178/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links