[jsword-devel] Bookmarks

John Austin gpl.programs.info at gmail.com
Tue Apr 9 01:34:21 MST 2013


It's best to save versification with bookmarks. The key and verse system 
together address a unique piece of Scripture which can be properly 
located in any other verse system. This also means there's no reason to 
tie bookmarks to a specific module.
-John

On 03/28/2013 08:24 PM, Martin Denham wrote:
> I am struggling to think what to do with bookmarks wrt Versification
> since a Bookmark refers to all current Modules, possibly with different
> versifications.
>
> Bookmarked verses are saved to a bookmarks database table.  When
> reloading bookmarks from the table a Versification must be specified.
>
> To get it working most of the time I could just use the default
> versification as follows:
>     savedBookmarkKey =
> PassageKeyFactory.instance().getKey(Versifications.instance().getDefaultVersification(),
> verseReferenceFromDb);
>
> But I notice that AbstractPassage is tied to Versification and wonder if
> this will even work for simple cases like Jn 3:16.
>
> Eventually I probably need to record the current versification when
> saving the bookmark, but even then I will have the correct versification
> for the key but can the restored bookmark be used with different
> versifications.  I mean can a common Key/Verse like Jn 3:16 be used with
> different Versifications or do I have to generate a different Key for
> every Versification when viewing multiple modules with different
> Versifications.
>
> This might be because I am still a bit confused regarding the way
> Versifications are implemented.
>
> Martin
>
>
>
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>



More information about the jsword-devel mailing list