unfoldingWord / tc-create-app

translationCore Create
https://create.translationcore.com/
MIT License
0 stars 5 forks source link

Larsg feature 1438 verse range #1458

Closed larsgson closed 1 year ago

larsgson commented 1 year ago

It is now possible for TSV7 content to have verse ranges specified and then the text will be displayed accordingly. I have now also managed to get this to work for verse ranges across chapters.

The solution was to allow for an optional bcvQuery multi-level structure inside the already existing reference structure. This field is needed in order to be able to formally specify what bcv content to display. Since this field is optional, then all code is backwards compatible, i.e. everything works as before for single verses. The more additional advanced handling is just for whenever multiple verse references are needed.

To verify:

Just change the reference somewhere to a verse range and the text will be adjusted automatically

Joel-C-Johnson commented 1 year ago

Tested using the netlify build and works as expected