Last modified: 2014-10-19 17:57:16 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 T53257, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51257 - Improve UX in chapter dropdown menu for books with lots of chapters
Improve UX in chapter dropdown menu for books with lots of chapters
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
BookManagerv2 (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Deepali Jain
:
Depends on: 50670 51384 51386
Blocks: 50386
  Show dependency treegraph
 
Reported: 2013-07-12 19:32 UTC by Helder
Modified: 2014-10-19 17:57 UTC (History)
2 users (show)

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


Attachments

Description Helder 2013-07-12 19:32:26 UTC
If a book has e. g. 100 chapters, the menu may be a little inconvenient for the user.

Open e.g.
http://tools.wmflabs.org/bookmanagerv2/wiki/Juggling/Basic_Tricks
and execute the following in the console:
--------------------------------------------
for(i=1;i<100;i++)
  $('div.mw-bookmanagerv2-nav-toc')
    .find('ol')
    .append('<li>Extra chapter '+i+'</li>');
--------------------------------------------
you'll have to scroll the page to get to the last chapter, and I don't know if this is the better approach.

One alternative I can think of is to add just a few (10?) chapters to the list and insert an input box after that,
------------------------------------------------------------------
$('div.mw-bookmanagerv2-nav-toc')
  .find('ol')
  .after('<input type="search" placeholder="Search chapter...">');
------------------------------------------------------------------
which the user could use to type the name of another chapter, and get suggestions as in Vector's search menu, which seems to use this module:
https://www.mediawiki.org/wiki/ResourceLoader/Default_modules#jquery.suggestions
Comment 1 Raylton P. Sousa 2013-07-12 19:58:40 UTC
Note: it also needs a vertical-scrollbar when the menu reach a certain size limit
Comment 2 Raylton P. Sousa 2013-07-17 21:24:16 UTC
Another option, for Helder's idea, is the 'infinite scrolling'(I love that): 

Generic exemples, here: http://www.jquery4u.com/tutorials/jquery-infinite-scrolling-demos/

And mediawiki exemple in extension 'Page Curation', here: https://en.wikipedia.org/wiki/Special:NewPagesFeed
Comment 3 Gerrit Notification Bot 2013-07-19 18:20:32 UTC
Change 74658 had a related patch set uploaded by Mollywhite:
Bug 51257: Improve chapter dropdown for books with many chapters.

https://gerrit.wikimedia.org/r/74658
Comment 4 Gerrit Notification Bot 2013-07-22 19:09:23 UTC
Change 74658 merged by Mollywhite:
Bug 51257: Improve chapter dropdown for books with many chapters.

https://gerrit.wikimedia.org/r/74658

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


Navigation
Links