Last modified: 2014-10-19 17:57:16 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
Note: it also needs a vertical-scrollbar when the menu reach a certain size limit
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
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
Change 74658 merged by Mollywhite: Bug 51257: Improve chapter dropdown for books with many chapters. https://gerrit.wikimedia.org/r/74658