[jsword-devel] Key issues

Frank fchimes at tiscali.co.uk
Mon May 12 15:08:43 MST 2008


Brian Fernandes 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.
Could you not make the URL bible://ESV.gen.1?  That way, you keep all 
the info you need to make the right choices, independent of what's in 
the combo.  I don't know how difficult it would be to rework the 
protocol handler, though...

-- 
Blessings

Frank





More information about the jsword-devel mailing list