Manual:Extension/BlueSpiceBookshelf/4-4: Difference between revisions

No edit summary
No edit summary
Tag: 2017 source edit
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Books}}
<bookshelf src="Book:User manual" />
{{DISPLAYTITLE:Books 4.4}}{{Textbox|boxtype=note|header=BlueSpice versions up to 4.4:|text=This help page applies to the book functionality for BlueSpice 4.4 or earlier. For 4.5+, go to the [[Manual:Extension/BlueSpiceBookshelf|current documentation.]]|icon=yes}}


In BlueSpice pro, several wiki pages can be displayed for a structured book with chapter navigation. The book can also be printed as a PDF file with a cover sheet.
In BlueSpice pro, several wiki pages can be displayed for a structured book with chapter navigation. The book can also be printed as a PDF file with a cover sheet.
Line 17: Line 18:
Books are created from the page  ''Special:BookshelfBookManager''. This page can be reached from the ''[[Manual:Extension/BlueSpiceDiscovery|Global actions]]'' menu under  ''Management > Books''.
Books are created from the page  ''Special:BookshelfBookManager''. This page can be reached from the ''[[Manual:Extension/BlueSpiceDiscovery|Global actions]]'' menu under  ''Management > Books''.
[[File:Manual:book-manager.png|alt=Book manager|center|thumb|650x650px|Book manager]]
[[File:Manual:book-manager.png|alt=Book manager|center|thumb|650x650px|Book manager]]


'''To create a book:'''
'''To create a book:'''
#'''Click''' the <code>+</code>-button.
#'''Click''' the <code>+</code>-button.
#'''Enter''' a ''Book title.''
#'''Enter''' a ''Book title.''
#'''Select''' Sie als ''Art des Buches'' "General books" as type of the book.[[File:Manual:create-book.png|alt=Create a book|center|thumb|550x550px|Create a book]]
#'''Select''' "General books" as type of the book.[[File:Manual:create-book.png|alt=Create a book|center|thumb|550x550px|Create a book]]
#'''Click''' ''Done''. The book editor loads next.
#'''Click''' ''Done''. The book editor loads next.
{{Messagebox|boxtype=important|icon=|Note text=The book is only created in the wiki when at least one page has been saved in the book.|bgcolor=}}
{{Messagebox|boxtype=important|icon=|Note text=The book is only created in the wiki when at least one page has been saved in the book.|bgcolor=}}
Line 31: Line 31:


#'''Click''' the  ''Plus'' button (1).  A dialog window opens.
#'''Click''' the  ''Plus'' button (1).  A dialog window opens.
#'''Search''' for a page in the wiki and select it. Soll in der Buchnavigation ein anderer Name angezeigt werden so können Sie ienen Anzeigetitle angeben (optional).
#'''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''.
#'''Click''' ''Done''.
#'''Add''' additional pages.
#'''Add''' additional pages.
Line 46: Line 46:
* All pages of a category
* All pages of a category
* All subpages of a certain page
* 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 [https://en.wiki.bluespice.com/wiki/Manual:Extension/BlueSpiceExtendedSearch#Export search results].
* From a page collection - page collections are lists of pages located in the MediaWiki namespace. They are usually created from a [[Manual:Extension/ImportOfficeFiles|Word import]] or from [https://en.wiki.bluespice.com/wiki/Manual:Extension/BlueSpiceExtendedSearch#Export search results].
* By a semantic property - pages can be selected based on the value of a certain semantic property.


After adding your book pages click S''ave'' 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.
After adding your book pages click S''ave'' 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.


==Adding metadata==
==Adding metadata==
While editing a book (adding or removing pages), meta-data 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 will be opened where various meta-data can be added or removed:
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
* Title
* Subtitle
* Subtitle
* Author 1 and 2
* Author 1
* Author 2
* Document-ID
* Document-ID
* Document type
* Document type
* Department
* Department
* Version
* Version
* Bookshelf image
* Template (PDF): If you maintain multiple PDF templates for books, you can select one of them here.
* 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)
* Table of Contents (''Only article titles'', or ''Embed article TOCs'')
It is also possible to add your own met data for use in the <nowiki><booklist>-tag, for example.</nowiki>


==Adding a cover image==
=== Add graphic for gallery view ===
<span>To add a cover photo for the book, add a metadata item</span> ''Bookshelf image''<span>. Select this option from the dropdown and click</span> ''Add''<span>. Once the meta data is added enter the name of the image in the value field. Any image currently uploaded to the wiki can be used. Type the name without the "File:" prefix (enter the image name and file extension).</span>
Add the ''Bookshelf image'' metadata element to add a cover photo for a book in the bookshelf gallery view. Select this option from the drop-down list and click ''Add''. Then enter the name of the image (without the “File:” prefix) in the value field. Any image currently uploaded to the wiki can be used. The image will then be displayed in the book gallery. However, the image is not used as a cover image for the PDF export (exception: [[Manual:Extension/BlueSpiceUniversalExport/Customization|''BlueSpice cloud'']]).


==Types of books==
==Types of books==
{| class="wikitable"
{| class="wikitable"
!Art
!Type
!Beschreibung
!Description
!Kapitelnavigation
!Chapter navigation
|-
|-
|'''General books'''
|'''General books'''
|Visible to all users. Only general books can have a chapter navigation. In almost all cases a book is set up as a "general book".
|Visible to all users. Only general books can have a chapter navigation. In almost all cases a book is set up as a "general book".
|ja
|Yes
|-
|-
|'''Own books'''
|'''Own books'''
|An own book is only visible in the bookshelf to the user who created the book. Such a book does not have a chapter navigation. Own books are usually created to export wiki pages as a PDF with a cover sheet.
|An own book is only visible in the bookshelf to the user who created the book. Such a book does not have a chapter navigation. Own books are usually created to export wiki pages as a PDF with a cover sheet.
|nein
|No
|-
|-
|'''Temporary books'''
|'''Temporary books'''
|This selection is also available to wiki users who are not logged into the wiki and is therefore mainly useful for public wikis. These books are only temporarily stored in the user's browser and not in the wiki itself. If the browser cache is deleted or the user switches to another browser, the book is no longer available. The main aim of temporary books is so that users can collectively print out wiki pages as PDFs.
|This selection is also available to wiki users who are not logged into the wiki and is therefore mainly useful for public wikis. These books are only temporarily stored in the user's browser and not in the wiki itself. If the browser cache is deleted or the user switches to another browser, the book is no longer available. The main aim of temporary books is so that users can collectively print out wiki pages as PDFs.
|nein
|No
|}
|}


Line 94: Line 96:


==Actions in the book manager==
==Actions in the book manager==
Der Link Verwaltung > Bücher im Menü ''Globale Aktionen'' lädt die Seite ''Spezial:Bücherverwaltung''. Hier können Sie Ihre Bücher bearbeiten.
The link Administration > Books in the menu ''Global Actions'' loads the page ''Special:Book Administration''. Here you can edit your books.  
[[File:Manual:book-manager-actions-EN.png|alt=Book manager actions|center|thumb|650x650px|Book manager actions]]
[[File:Manual:book-manager-actions-EN.png|alt=Book manager actions|center|thumb|650x650px|Book manager actions]]
* <span>'''Edit'''</span> (1): Links to the Book editor where you can edit the book contents and metadata.
* <span>'''Edit'''</span> (1): Links to the Book editor where you can edit the book contents and metadata.
Line 104: Line 106:
==Configuration==
==Configuration==
===Display options===
===Display options===
{{#dpl:title=Handbuch:Erweiterung/BlueSpiceConfigManager|include=#BlueSpiceBookShelf}}
{{#dpl:title=Manual:Extension/BlueSpiceConfigManager|include=#BlueSpiceBookShelf}}


===Export===
===Export===
Wiki-Administratoren können folgende Anpassungen für den Buchexport vornehmen:
Wiki administrators can make the following adjustments for the book export:
{{#dpl:title=Handbuch:Erweiterung/BlueSpiceConfigManager|include=#Export}}
{{#dpl:title=Manual:Extension/BlueSpiceConfigManager|include=#Export}}


===Configuring size limits for the book export (on the server)===
===Configuring the file size limits (server)===
Standardmäßig ist der Buchexport auf 50MB begrenzt. Um die maximal erlaubte Dateigröße zu erhöhen, führen Sie folgende Schritte durch:  
By default, the book export is limited to 50MB in file size. To adjust this value, complete the following steps:  


#In Apache Tomcat die Datei ''web.xml'' aufrufen: <syntaxhighlight lang="c">
#In Apache Tomcat, open the file ''web.xml'': <syntaxhighlight lang="c">
sudo -s
sudo -s
nano /opt/tomcat/webapps/manager/WEB-INF/web.xml
nano /opt/tomcat/webapps/manager/WEB-INF/web.xml
</syntaxhighlight>
</syntaxhighlight>
#Dort folgende Zeilen suchen und den gewünschten Wert eingeben (z.B. für 250MB=26214400) <syntaxhighlight lang="c">
#Look for the following lines and adjust the value (e.g. for 250MB=26214400) <syntaxhighlight lang="c">
<max-file-size>262144000</max-file-size>
<max-file-size>262144000</max-file-size>
<max-request-size>262144000</max-request-size>
<max-request-size>262144000</max-request-size>
</syntaxhighlight>
</syntaxhighlight>
#Für die Webapp BShtml2PDF gibt es ebenso eine Einstellung für die maximale Dateigröße: <syntaxhighlight lang="c">
#The web app BShtml2PDF also has a setting that needs to be adjusted: <syntaxhighlight lang="c">
nano /opt/tomcat/webapps/BShtml2PDF/WEB-INF
nano /opt/tomcat/webapps/BShtml2PDF/WEB-INF
</syntaxhighlight>
</syntaxhighlight>
#Dort folgende Zeilen ebenso entsprechend anpassen auf: <syntaxhighlight lang="c">
#Enter your values in the following lines: <syntaxhighlight lang="c">
<param-name>maxMemSize</param-name> <param-value>26214400</param-value>
<param-name>maxMemSize</param-name> <param-value>26214400</param-value>
<param-name>maxFileize</param-name> <param-value>26214400</param-value>
<param-name>maxFileize</param-name> <param-value>26214400</param-value>
</syntaxhighlight>
</syntaxhighlight>
#Apache Tomcat neu starten <syntaxhighlight lang="c">
#Restart Apache Tomcat <syntaxhighlight lang="c">
service tomcat restart
service tomcat restart
</syntaxhighlight>
</syntaxhighlight>
==Deleting a book==


==Deleting a book==
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. Before deleting the book, a pop-up menu informs you that the ''bookshelf-tag'' will not be automatically removed from the pages.


Wenn Sie ein Buch löschen, entfernen Sie nur die Buchseite des Buches (also das Inhaltsverzeichnis). Die Wiki-Seiten im Buch werden jedoch nicht gelöscht. Bevor Sie das Buch löschen, werden Sie in einem Popup-Menü darüber informiert, dass das ''bookshelf''-<span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="c101058e7ea21bbbf2a5ac893088e90b" data-hasqtip="4">Tag</span> nicht automatisch von den Seiten entfernt wird.
The ''bookshelf'' tags have no effect on the wiki pages after deleting the book page. If you want to remove them manually, you can go to the page ''Special:ReplaceText'' and do a "find and replace".


Die ''bookshelf''-Tags haben nach dem Löschen des Buches keine Auswirkung auf die Wiki-Seiten. Wenn Sie sie manuell entfernen möchten, können Sie zur Seite ''Spezial:Text ersetzen'' gehen und ein "Suchen und Ersetzen" durchführen.
==Duplicating a book ==
You can create an entire copy of the book by duplicating it:


==<span class="mw-headline ve-pasteProtect" id="Ein_Buch_duplizieren">Duplicating a book</span>==
'''To duplicate a book:'''
Sie können eine vollständige Kopie des Buches erstellen, indem Sie es duplizieren:


'''So duplizieren Sie ein Buch:'''
#'''Enter''' a ''target name'': The default value is the book name with the suffix ''(copy)''. Change this to create a different book title.
#'''Select''' a ''namespace'': Choose a namespace that is different from the original namespace.


#'''Geben Sie''' einen ''Zielnamen'' ein: Der Standardwert ist der Buchname mit dem Suffix ''(Kopie)''. Ändern Sie dies, um einen anderen Buchtitel zu erstellen.
If you are not careful, you might experience some unintended consequences. By creating a new book, you also create copies of all the wiki pages in the original book. Since a namespace cannot contain the same page twice, you have to copy the files to a different namespace.
#'''Wählen Sie einen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="5">Namensraum</span>''': Wählen Sie einen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="6">Namensraum</span> aus, der sich vom ursprünglichen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="7">Namensraum</span> unterscheidet.


'''About the duplicated files:'''


Wenn Sie nicht aufpassen, kann dies zu unbeabsichtigten Konsequenzen führen. Wenn Sie ein neues Buch erstellen, erstellen Sie auch Kopien aller Wiki-Seiten im Originalbuch. Da ein <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="8">Namensraum</span> nicht zweimal dieselbe Seite enthalten kann, müssen Sie die Dateien in einen anderen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="9">Namensraum</span> kopieren.
*'''Book page:''' A new page in the namespace book. If you don't enter a new title, the book will be created with the same title and the suffix ''(Copy). E.g. Employee Manual (Copy).'' This file includes a copy of the structure of your original book with the corresponding links to the duplicated pages in the new copy.
*'''Wiki pages''': All pages contained in the original book are duplicated. The following scenarios are possible:
**'''Same namespace:''' If you duplicate a book in the same namespace, no actual duplicates of the actual wiki are created. Instead, the bookshelf tag is updated to point to the copy of the book. For example, if your original book contains the page ''HR:Quality assurance''  (the book is in the namespace HR), the ''Quality assurance'' page now contains the bookshelf tag <code><nowiki></nowiki></code>.
**'''Different namespace''': If you create the book copy in a different namespace, the bookshelf tag in the original files remains unchanged. The new pages in the different namespace are created with a bookshelf tag for the new book copy. This is most likely the scenario you want.


'''Über die duplizierten Seiten:'''
== Including a book table of contents on a page {{Bsvs|bsvFrom=4.4}} ==
The [[Manual:Extension/ContentDroplets|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.
[[File:droplet-BookTOC.png|alt=Chapter from an admin manual|center|thumb|650x650px|Content droplet "Book table of contents"]]


*'''Buchseite:''' Eine neue Seite im <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="10">Namensraum</span>-Buch. Wenn Sie keinen neuen Titel eingeben, wird das Buch mit demselben Titel und dem Suffix ''(Kopie) erstellt. Z.B. Mitarbeiterhandbuch (Kopie).'' Diese Datei enthält eine Kopie der Struktur Ihres Originalbuchs mit den entsprechenden Links zu den duplizierten Seiten in der neuen Kopie.
== Adding a PDF-download link to a page ==
*'''Wikiseiten:''' Alle im Originalbuch enthaltenen Seiten werden dupliziert. Folgende Szenarien sind möglich:
The [[Manual:Extension/ContentDroplets|Content droplet]] “Book PDF link” can be used to insert a link on a page that will download a book directly as a PDF.
**'''Gleicher <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="11">Namensraum</span>:''' Wenn Sie ein Buch im gleichen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="12">Namensraum</span> duplizieren, werden keine tatsächlichen Duplikate des tatsächlichen Wikis erstellt. Stattdessen wird das Bookshelf-<span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="c101058e7ea21bbbf2a5ac893088e90b" data-hasqtip="13">Tag</span> so aktualisiert, dass es auf die Kopie des Buches verweist. Wenn Ihr ursprüngliches Buch beispielsweise die Seite "HR:Qualitätssicherung" enthält (das Buch befindet sich im <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="14">Namensraum</span> HR), enthält die Seite "Qualitätssicherung" jetzt das Bookshelf-<span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="c101058e7ea21bbbf2a5ac893088e90b" data-hasqtip="15">Tag</span> <code></code>.
**'''Anderer <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="16">Namensraum</span>:''' Wenn Sie die Buchkopie in einem anderen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="17">Namensraum</span> erstellen, bleibt das Bookshelf-<span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="c101058e7ea21bbbf2a5ac893088e90b" data-hasqtip="18">Tag</span> in den Originaldateien unverändert. Die neuen Seiten im anderen <span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="4e8b643999af9bbcd46206fddd4f6f53" data-hasqtip="19">Namensraum</span> werden mit einem Bookshelf-<span class="mw-lingo-term ve-pasteProtect" data-lingo-term-id="c101058e7ea21bbbf2a5ac893088e90b" data-hasqtip="20">Tag</span> für die neue Buchkopie erstellt. Dies ist höchstwahrscheinlich das gewünschte Szenario.


==Permissions==
==Permissions==
Um Bücher erstellen und bearbeiten zu können, müssen Benutzer im Buch-Namensraum die Berechtigung zum  Bearbeiten besitzen. Darüber hinaus kann der Benutzer dem Buch nur Seiten hinzufügen, die dieser Benutzer lesen kann. Wenn ein Benutzer ein Buch exportieren will, das Seiten enthält, auf die dieser Benutzer keinen Zugriff hat, wird eine Fehlermeldung angezeigt.{{Box Links|Thema1=[[Referenz:BlueSpiceBookshelf]]|Thema2=[[Handbuch:Erweiterung/BlueSpiceBookshelf/PDF_Ausgabe_anpassen|PDF-Ausgabe anpassen]]|Thema3=}}<br />
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.
 
{{Box Links-en|Topic1=[[Manual:Extension/BlueSpiceUniversalExport/Customization|PDF Customization (Cloud only)]]}}


{{Translation}}
{{Translation}}
[[Category:Organisation]]
 
[[Category:Organization]]

Latest revision as of 14:53, 22 July 2024

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


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

Characteristics of books

By default, books are created as a "general book". General books have the following characteristics:

  • They povide a chapter navigation.
  • On book pages, the book navigation is displayed instead of the main navigation.
  • A wiki page that belongs to a general book is identified by a <bookshelf /> tag in the source code.
  • Each page can only be included in one general book.
  • Books can be printed completely or partially as a PDF with a cover sheet.
  • They are listed alphabetically on the bookshelf. It is not possible to hide individual books.
  • The bookshelf can be reached via the main navigation.

Creating a book

Books are created from the page Special:BookshelfBookManager. This page can be reached from the Global actions menu under Management > Books.

Book manager
Book manager

To create a book:

  1. Click the +-button.
  2. Enter a Book title.
  3. Select "General books" as type of the book.
    Create a book
    Create a book
  4. Click Done. The book editor loads next.
Important!The book is only created in the wiki when at least one page has been saved in the book.


Adding pages

You are now in the book editing mode.

Book edit buttons
Book edit buttons
  1. Click the Plus button (1). A dialog window opens.
  2. 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).
  3. Click Done.
  4. Add additional pages.
  1. Click the arrow of the Save button and select Save and add chapter navigation. This process inserts the <bookshelf /> tag into the source code of all wiki pages in the book. This causes a revision of the pages.
    Add chapter navigation
    Add chapter navigation
Tip:You can click a page title of a book page before adding a new book page. This is then inserted as a sub-chapter. You can move pages to the desired position later using drag & drop with the mouse.

The book is now displayed on the wiki bookshelf. The bookshelf can be reached via the entry links in the main navigation.

Note:There is no option to go directly from the bookshelf to the book manager.


Mass-adding of 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.

Adding metadata

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.

Add graphic for gallery view

Add the Bookshelf image metadata element to add a cover photo for a book in the bookshelf gallery view. Select this option from the drop-down list and click Add. Then enter the name of the image (without the “File:” prefix) in the value field. Any image currently uploaded to the wiki can be used. The image will then be displayed in the book gallery. However, the image is not used as a cover image for the PDF export (exception: BlueSpice cloud).

Types of books

Type Description Chapter navigation
General books Visible to all users. Only general books can have a chapter navigation. In almost all cases a book is set up as a "general book". Yes
Own books An own book is only visible in the bookshelf to the user who created the book. Such a book does not have a chapter navigation. Own books are usually created to export wiki pages as a PDF with a cover sheet. No
Temporary books This selection is also available to wiki users who are not logged into the wiki and is therefore mainly useful for public wikis. These books are only temporarily stored in the user's browser and not in the wiki itself. If the browser cache is deleted or the user switches to another browser, the book is no longer available. The main aim of temporary books is so that users can collectively print out wiki pages as PDFs. No

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.

Actions in the book manager

The link Administration > Books in the menu Global Actions loads the page Special:Book Administration. Here you can edit your books.

Book manager actions
Book manager actions
  • Edit (1): Links to the Book editor where you can edit the book contents and metadata.
  • Delete (2): Deletes the book page in the namespace Book without deleting the wiki pages.
  • Duplicate (3): Duplicates this book, including all the pages of the book to a different namespace.
  • Export (4): Exports all wiki pages in this book to PDF.
  • Assign (5): Assigns the book to designated users. These users are the responsible editors of the book.

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
    

Deleting a book

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. Before deleting the book, a pop-up menu informs you that the bookshelf-tag will not be automatically removed from the pages.

The bookshelf tags have no effect on the wiki pages after deleting the book page. If you want to remove them manually, you can go to the page Special:ReplaceText and do a "find and replace".

Duplicating a book

You can create an entire copy of the book by duplicating it:

To duplicate a book:

  1. Enter a target name: The default value is the book name with the suffix (copy). Change this to create a different book title.
  2. Select a namespace: Choose a namespace that is different from the original namespace.

If you are not careful, you might experience some unintended consequences. By creating a new book, you also create copies of all the wiki pages in the original book. Since a namespace cannot contain the same page twice, you have to copy the files to a different namespace.

About the duplicated files:

  • Book page: A new page in the namespace book. If you don't enter a new title, the book will be created with the same title and the suffix (Copy). E.g. Employee Manual (Copy). This file includes a copy of the structure of your original book with the corresponding links to the duplicated pages in the new copy.
  • Wiki pages: All pages contained in the original book are duplicated. The following scenarios are possible:
    • Same namespace: If you duplicate a book in the same namespace, no actual duplicates of the actual wiki are created. Instead, the bookshelf tag is updated to point to the copy of the book. For example, if your original book contains the page HR:Quality assurance (the book is in the namespace HR), the Quality assurance page now contains the bookshelf tag .
    • Different namespace: If you create the book copy in a different namespace, the bookshelf tag in the original files remains unchanged. The new pages in the different namespace are created with a bookshelf tag for the new book copy. This is most likely the scenario you want.

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.

Related info




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