7 Books

No edit summary
No edit summary
Line 25: Line 25:
#'''Click''' ''Done''. The book editor loads next.
#'''Click''' ''Done''. The book editor loads next.
===Editing a book===
===Editing a book===
You are now in the book editing mode.
To switch to the book edit mode, '''click''' ''Edit'' in the book preview on the Books page.  
[[File:Manual:bookshelf-schaltflächen.png|alt=Book edit buttons|center|thumb|220x220px|Book edit buttons]]
 
#'''Click''' the  ''Plus'' button (1).  A dialog window opens.
#'''Search''' for a page in the wiki and select it. If a different name is to be displayed in the book navigation, you can enter a display title (optional).
#'''Click''' ''Done''.
#'''Add''' additional pages.
 
#'''Click''' the arrow of the ''Save'' button and select ''Save and add chapter navigation.'' This process inserts the <code><nowiki><bookshelf /></nowiki></code> tag into the source code of all wiki pages in the book. This causes a revision of the pages.[[File:Manual:save chapternavigation.png|alt=Add chapter navigation|center|thumb|350x350px|Add chapter navigation]]


This opens the book editor.
=== Adding elements ===
To add a wikipage to a book:


=== Adding elements ===
# '''Click''' ''Add element.''
# '''Select''' the node type ''Wiki page chapter.''
# '''Enter''' the name of the wikipage you want to add in the field ''Target''.
# '''Enter''' the label you want show for the page in the field ''Text''.
# '''Click''' ''Done''. The page is added to the end of the book.
# Drag-and-drop the page to the desired section.


=== Editing meta data ===
=== Editing meta data ===

Revision as of 16:35, 3 June 2024

BlueSpice 4.5:This help page applies to the book functionality for BlueSpice 4.5+. For earlier versions, go to the previous documentation.


In BlueSpice pro, wiki pages can be displayed as a structured book with chapter navigation. A book can also be printed as a PDF file with a cover sheet.

Characteristics of books

Books have the following characteristics:

  • On book pages, the book navigation is displayed instead of the main navigation.
  • A wiki page can be in multiple books.
  • Books can be printed completely or partially as a PDF with a cover sheet.
  • Books can be grouped into individual bookshelves.

Creating a book

Books are created from the page Special:Books.

Page Special:Books with actions menu
"Create new book"

To create a book:

  1. Click Create new book in the actions menu of the page tools. This opens a dialog box.
  2. Enter a book title.
  3. Enter a subtitle (optional).
  4. Select a bookshelf (optional). This puts the book in a group of books. If you do not select a bookshelf, the book will be listed under the heading Various books.
  5. Upload or select a cover image (optional). If you do not upload or select a cover image, a random cover image will be applied.
  6. Click Save. The book is now shown in its bookshelf group and can be edited.
  7. Click Done. The book editor loads next.

Editing a book

To switch to the book edit mode, click Edit in the book preview on the Books page.

This opens the book editor.

Adding elements

To add a wikipage to a book:

  1. Click Add element.
  2. Select the node type Wiki page chapter.
  3. Enter the name of the wikipage you want to add in the field Target.
  4. Enter the label you want show for the page in the field Text.
  5. Click Done. The page is added to the end of the book.
  6. Drag-and-drop the page to the desired section.

Editing meta data

While editing a book (adding or removing pages), metadata for the book can be added. References to these metadata can be included in the PDF template. To edit metadata, select the top-most node of the book (first page) and click the wrench icon. A dialog with a drop-down selection of the following options is available:

  • Title
  • Subtitle
  • Author 1
  • Author 2
  • Document-ID
  • Document type
  • Department
  • Version
  • Bookshelf image
  • Template (PDF): If you maintain multiple PDF templates for books, you can select one of them here.
  • Table of Contents (Only article titles, or Embed article TOCs)

It is also possible to add your own met data for use in the <booklist>-tag, for example.

Mass adding pages

After clicking "Mass add", a dialog is opened. It contains different criteria for page selection:

  • All pages of a category
  • All subpages of a certain page
  • From a page collection - page collections are lists of pages located in the MediaWiki namespace. They are usually created from a Word import or from search results.

After adding your book pages click Save at the bottom of the page. Now you have created a page in the namespace Book. It simply contains the list of pages that have been added to the book.

Exporting a book

Books, individual chapters or even individual book pages can be exported as PDF files:

  1. Open the book in the book manager.
  2. Select each of the pages or chapters to export by clicking the appropriate check boxes. Sub-chapters are selected automatically.
  3. Click the Export Selections drop-down menu to open a list of the available formats.

More actions

Delete

When you delete a book, you only remove the book page of the book (that is, the table of contents) in the "Book" namespace. However, the wiki pages in the book are not deleted.

Edit metadata

This provides the same functionalityas the button Edit meta data in the menu editor.

Assign

A book page can be assigned to individual users or usergroups like any other wiki page. The book will then show up under the user's assignments in the user menu.

Configuration

Display options

Book

  • Show book chapter pager after content: Displays previous/next book page navigation at the end of each book page. (1)
  • Show book chapter pager before content: Displays previous/next book page navigation at the beginning of each book page. (2)
    Book navigation
    Book navigation

  • Use display title from book source on article: Shows the title from the book navigation as page title instead of the page name.
book display title
book display title
Note:If the page additionally contains a {{DISPLAYTITLE}} tag, the display title of the page is shown on the page and in the book navigation instead of the page label provided in the book page.


Content structuring

Prepend article table of contents and headlines with book numberation: The page TOC does not start with the main heading 1, but with the actual number from the book chapter (see screenshot). If users have activated in their user preferences to "auto-number headings", the numbering system is matched accordingly.

Prepended chapter numbers
Prepended chapter numbers

Export

  • Supress namespace prefix of book articles in output: The namespace prefix of an article is not shown in PDFs.

Skinning

  • Show entrypoint "Books": Adds a link to the page Special:Books to the main navigation entrypoints.


Export

Wiki administrators can make the following adjustments for the book export:

  • Show stabilization information in PDF export:
    Prints the timestamp for the last approved version below the page headings in the PDF (date of approval and date of last edit before approval).
    FlaggedRevs info under the heading


  • Supress namespace prefix of book articles in output: The namespace prefix of an article is not shown in PDFs.
  • Show watermark for expired pages in PDF: Shows the watermark for expired pages in PDFs.
  • Show watermark for expired pages in print version: Shows the watermark for expired pages when a page is printed.


Configuring the file size limits (server)

By default, the book export is limited to 50MB in file size. To adjust this value, complete the following steps:

  1. In Apache Tomcat, open the file web.xml:
    sudo -s
    nano /opt/tomcat/webapps/manager/WEB-INF/web.xml
    
  2. Look for the following lines and adjust the value (e.g. for 250MB=26214400)
    <max-file-size>262144000</max-file-size>
    <max-request-size>262144000</max-request-size>
    
  3. The web app BShtml2PDF also has a setting that needs to be adjusted:
    nano /opt/tomcat/webapps/BShtml2PDF/WEB-INF
    
  4. Enter your values in the following lines:
    <param-name>maxMemSize</param-name> <param-value>26214400</param-value>
    <param-name>maxFileize</param-name> <param-value>26214400</param-value>
    
  5. Restart Apache Tomcat
    service tomcat restart
    

Differences to previous versions

  • A page can now be in multiple books.
  • There are no more private or temporary books, since these were edge use cases.
  • There is no option to duplicate a book, since this was also an edge use case.
  • There is no more separate book manager. All books can now be managed directly from the Books page.

Including a book table of contents on a page   v4.4+

The Content droplet “Book table of contents” can be used to insert the an entire book TOC or an individual chapter navigation of a book on any wiki page.

Chapter from an admin manual
Content droplet "Book table of contents"

Adding a PDF-download link to a page

The Content droplet “Book PDF link” can be used to insert a link on a page that will download a book directly as a PDF.

Permissions

To create and edit books, users need edit rights in Book namespace. Additionally, a user can only add pages to the book that that user can read. If a user tries to export a book to PDF that contains pages for which the user does not have permissions, the user will get an error message.



To submit feedback about this documentation, visit our community forum.