unfoldingWord / scripture-resources-rcl

A React Component Library for Rendering Scripture Resources.
https://scripture-resources-rcl.netlify.com/
MIT License
0 stars 8 forks source link

Feature larsg 348 reference ranges in scripture pane #147

Closed larsgson closed 1 year ago

larsgson commented 1 year ago

Introduced a bcvQuery structure as an option wherever the "reference" structure is already implemented.

Here is an example of such a structure:

const query = {
  title: "unfoldingWord® Simplified Text",
  version: "38",
  owner: "unfoldingWord",
  languageId: "en",
  projectId: "ust",
  branch: "master",
  book: {
    tit: {
      ch: {
        2: { v: { 15: { verseObjects: [] } } },
        3: { v: { 1: { verseObjects: [] } } },
      },
    },
  },
}

Previously it was not possible to specify neither multiple verses nor multiple chapters. All code is backwards compatible, however, meaning that if no bcvQuery is specified, then everything works like previously (i.e. just with single verse and chapter references)

to verify:

check in Styleguidist:

showing multiple verses