When we get to dual pane and verse by verse, there is more to be done. But for now, it should probably be that if a contents entry is a reference entry, then the layout needs to be examined, if it is present. If it contains one or more layout-collections, then the book collection should be changed to the first one in the list. From contents.xml
<contents-item id="1">
<title lang="default">Noah and the Great Flood</title>
<title lang="es">Noé y el Gran Giluvio</title>
<audio lang="default">Noah.mp3</audio>
<image-filename>01_Ge_07_08.png</image-filename>
<link type="reference" target="GEN.6" />
<layout mode="single">
<layout-collection id="ENGWEB"/>
</layout>
</contents-item>
In this case, the reference it goes to should also require shifting to ENGWEB book collection.
A two pane or verse by verse layout will contain multiple layout-collection entries. Until we support these modes, just get the first layout collection as the book collection to shift to.
This would be treated as it currently is implemented, without specifying a book collection and pressing the entry takes you to the reference in the current book collection.
When we get to dual pane and verse by verse, there is more to be done. But for now, it should probably be that if a contents entry is a reference entry, then the layout needs to be examined, if it is present. If it contains one or more layout-collections, then the book collection should be changed to the first one in the list. From contents.xml
In this case, the reference it goes to should also require shifting to ENGWEB book collection.
A two pane or verse by verse layout will contain multiple layout-collection entries. Until we support these modes, just get the first layout collection as the book collection to shift to.
And finally, a reference does not have to include a layout section (Use current layout option). In this case, the entry looks like this:
This would be treated as it currently is implemented, without specifying a book collection and pressing the entry takes you to the reference in the current book collection.