[jsword-devel] Key issues

Jonathan Morgan jonmmorgan at gmail.com
Tue May 13 03:59:32 MST 2008


On Tue, May 13, 2008 at 7:36 AM, Brian Fernandes
<infernalproteus at gmail.com> wrote:
> I'm upgrading FireBible to handle Genbooks, Dictionaries, Glossaries and
>  probably Daily Devotionals too, but I'm running into a few issues with keys.
>
>  First, a little background on how FB works:
>  When you select a Bible, Book and Chapter in the FB interface, that
>  selection is converted into a URL (e.g. bible://gen.1). The URL is then
>  "loaded", as if you had typed it into the address bar yourself and
>  pressed enter. Firefox then passes that URL onto FB's "bible" protocol
>  handler. The protocol handler picks up the active
>  Bible(org.cw.js.book.Book) from the combo box in the UI and then calls
>  book.getKey("gen.1") to get a key. This key is then used to retrieve the
>  data to be displayed.
>
>  Problem 1:
>  The problem with this approach, is the fact that the URL does not
>  contain the bible(book) name/Id. For example, if you bookmark the link
>  bible://gen.1 when viewing the ESV bible, the next time you open the
>  bookmark, if you have the ACV bible selected in the combo you will see
>  ACV text instead of ESV.

It's somewhat questionable whether a bookmark should be a bookmark of
a reference in the current work, or just a bookmark of the reference
in whichever version is current at the time of accessing the bookmark
(I can quite easily think of uses for either).  However, I would
expect the history to return to the version that it was in.

Jon



More information about the jsword-devel mailing list