The Book Guide documents use of hidden Page Text Variables to set metadata values on a book’s trail page. It is useful to make these visible, without having to edit the page. This recipe provides (:bookmetadata TrailPage :) markup, which lists all metadata options and their values. An enhanced version of this recipe, which supports form-based metadata editing, is included in the Publish PDF library version 2.2.34.
Download bookmetadata.php Δ, place it in the cookbook/ directory and add the following line to local/config.php after loading the Cookbook:PublishPDF library:
To use this markup, write:
Metadata for How to Produce a Book
|title||How to Produce a Book|
|description||Edited with an introduction by John Rankin|
|blurb||Publisher Blurb “Praise for Wikipublisher and”|
|dedication||To the software giants on whose shoulders Wikipublisher stands|
|epigraph||The designer of a new system must not only be the implementor and the first large-scale user; the designer should also write the first user manual… If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. — Donald E. Knuth|
Note that the (:description:) directive sets the book’s publisher field.
Contributor: John Rankin, Friday, 17 December 2010
« Advanced Table Heads | Cookbook | Checkbox Lists »