Dev: Book manage page redesign, including parts features
As scoped in #168 (closed)
Here are the updated wireframes:
Book manager page, when parts are used
This UI applies to:
- all books in the WORD workflow when the user has turned ON the setting 'Group chapters into parts'.
- PDF workflow books that are processed at the book component level when the user has turned ON the setting 'Group chapters into parts'.
Features
Nesting and ordering
- Parts can be ordered in two ways:
- manually
- A - Z
- Chapter within parts can be ordered as currently developed.
- Parts only apply to the Body section. In the Front and Back sections the book components are always ordered manually.
- There is a max of three levels in the nested structure:
- Part level one
- Part level two
- Chapter
- Part level two
- Part level one
- Chapters can be placed outside of a part, for example:
part
part 1
chapter
chapter
part 2
chapter
chapter
chapter
Add and edit a part
- Add a part using 'Add part' button. This opens the modal below.
- When a part is created it appears:
- at the top of the Body section when parts are ordered manually
- in the correct alphabetical order when when parts are ordered A - Z.
- Edit the part by clicking on the part row, which opens the modal.
- The Body content field only displays when the setting 'Add body content to Parts' is turned ON.
- Titles can be styles with bold, italics, superscript, subscript.
- Body content can be styles with bold, italics, superscript, subscript, lists (ordered and unordered), and links.
Moving parts and chapters
- One part can be dragged and dropped into the correct position within Body when parts are ordered manually
- One chapter can be dragged and dropped into the correct position within Body when chapters are ordered manually
- One or more parts or chapters can be moved by ticking the select box and using the 'Move to' button in the bottom bar. This opens a modal for the user to select where to move the content -- either to a section (Front, Body, Back) or to a specific part within the Body.
Create part-title.xml file
- When the setting 'Add body content to Parts' is turned ON, our system need to create the part.xml file, as we currently do for toc.xml files. (There is no need for a part.xml file when the part contains only a title and 'Editor' metadata because this is contained in the toc.xml file.)
- The part.xml file gets sent to NCBI system when one or more associated chapters are published; and when the part is updated in our system.
I think that is everything -- let me know if there are questions.
@lathrops1, one thing that the team asked me to confirm is whether all ordering combinations are possible. Please confrim.
- Parts ordered manually
- chapters ordered manually OR A - Z OR by chapter number OR by date created OR by dated updated
- Parts ordered A to Z
- chapters ordered manually OR A - Z OR by chapter number OR by date created OR by dated updated