Installation went smoothly. We were able to generate nice-looking PDFs for single pages, create “books” with chapters and subsections, and save the books. After we'd gone to all the trouble of organizing the books, the reader might understand our frustration in seeing no obvious way to load our books later.
After much Googling and prodding around the source, I noticed a passage at the bottom of the README:
The Wikipedia template has lots of nice chrome, but for a quick fix, edit Template:Saved_book to have the following contents:
- Add a template [[Template:saved_book]] which is transcluded on top of saved collection pages. An example for such a template can be found on the English Wikipedia: http://en.wikipedia.org/wiki/Template:Saved_book
<div align="center">
<span class="plainlinks">
[ [{{fullurl:Special:Book/load_collection/|colltitle={{FULLPAGENAMEE}}}} load book] ]
[ [{{fullurl:Special:Book/render_collection/|colltitle={{FULLPAGENAMEE}}&writer=rl}} PDF] ]
[ [{{fullurl:Special:Book/render_collection/|colltitle={{FULLPAGENAMEE}}&writer=odf}} OpenOffice] ]
[ [[:Category:Books|bookshelf]] ]
</span>
</div>
This will be transcluded into your saved book pages (via {{saved_book}}
at the very top) and produce handy links for loading, generating PDF, generating ODT, or browsing the rest of your saved books, as in
[ load book ] [ PDF ] [ OpenOffice ] [ bookshelf ]
Note that to enable ODT option, you'll need to modify LocalSettings.php
along the lines of
$wgCollectionFormats = array(
'rl' => 'PDF',
'odf' => 'ODT',
);
No comments:
Post a Comment