eeditiones / tei-publisher-app

The main TEI Publisher app
https://teipublisher.com
GNU General Public License v3.0
68 stars 33 forks source link

added option to choose navigation root #107

Open ccheraa opened 2 years ago

ccheraa commented 2 years ago

currently, the navigation root is determined as the parent of the first document found, this may omit some documents from the navigation pane if their first common ancestor is not their parent so by providing a path to the correct navigation root, we can make sure that all documents appear in the navigation pane, and that's by using the nav-root query parameter, for example, as follows:

/exist/apps/tei-publisher/api/document/document.xml/epub?nav-root=1/1/3

1/1/3 means that the navigation root node should be $doc/node()[1]/node()[1]/node()[3]

This open source contribution to the tei-publisher-app project was commissioned by the Office of the Historian, U.S. Department of State, https://history.state.gov.

joewiz commented 2 years ago

@ccheraa By "navigation pane", do you mean the TEI Publisher app's own table of contents pane, or are you referring to an ebook reader/client app's table of contents?

ccheraa commented 2 years ago

@ccheraa By "navigation pane", do you mean the TEI Publisher app's own table of contents pane, or are you referring to an ebook reader/client app's table of contents?

I mean the navigation pane of the ebook reader