pressbooks / pressbooks-book

McLuhan is the default book theme for Pressbooks.
https://pressbooks.org
GNU General Public License v3.0
20 stars 16 forks source link

Subtitles and chapter authors given same bookmark level as chapter titles in PDF format #593

Open mcgratay opened 5 years ago

mcgratay commented 5 years ago

Description

Pressbooks creates tagged PDFs, which allows readers to utilize the "Bookmarks"/"Table of Contents" feature on their chosen PDF viewer to navigate the file. The post subtitle and post author elements appear tagged at the same level of hierarchy as post titles.

These elements should not appear in the bookmark list at all. First image is from Preview. Only post should be shown in hierarchy beneath chapters. Second is from Adobe Acrobat Reader.

Screen Shot 2019-09-03 at 3 03 35 PM

Screen Shot 2019-09-03 at 3 04 34 PM

Example: https://accessiblemarkup.textopress.com

Steps to Reproduce

  1. Create a new chapter
  2. Scroll down to the Chapter Metadata section beneath the editor
  3. Enter a subtitle in the "Chapter Subtitle" text field
  4. Select an author in the "Chapter Athor" field (note: must be an existing contributor)
  5. Save the chapter and export to PDF

Expected behavior: Bookmarks for PDF show an accurate representation of content in the book

Actual behavior: Chapter metadata elements are shown in equal hierarchy to chapter titles

SteelWagstaff commented 5 years ago