mvnForum Homepage


Posted by Osk at Apr 11, 2009 9:27:26 PM
Re: OSIS Compliant Daily Devotional Help
It looks like you're creating a GenBook module rather than an LD-type module. That's permissible, it will just never show up like other daily devotionals do. To make it work, you need to change RawLD to RawGenBook in your .conf. You also need to copy ALL of the files created by xml2gbs--you can't arbitrarily decide to leave out some of the module files.

The only supported way for you to import OSIS text into a RawLD/zLD module, however, is to create an IMP file from it where the date is the key value. You need to take your markup:

<date>04.11</date>
<p><div osisID="04.11">This is a test for April 11th</div></p>
<date>04.12</date>
<p><div osisID="04.12">This is a test for April 12th</div></p>
<date>04.13</date>
<p><div osisID="04.13">This is a test for April 13th</div></p>
<date>04.14</date>
<p><div osisID="04.14">This is a test for April 13th</div></p>
<date>04.15</date>
<p><div osisID="04.15">This is a test for April 15th</div></p>
<date>04.16</date>
<p><div osisID="04.16">This is a test for April 16th</div></p>
<date>04.17</date>
<p><div osisID="04.17">This is a test for April 17th</div></p>
<date>04.18</date>
<p><div osisID="04.18">This is a test for April 18th</div></p>

and change it to IMP format:

$$$04.11
<p><div osisID="04.11">This is a test for April 11th</div></p>
$$$04.12
<p><div osisID="04.12">This is a test for April 12th</div></p>
$$$04.13
<p><div osisID="04.13">This is a test for April 13th</div></p>
$$$04.14
<p><div osisID="04.14">This is a test for April 13th</div></p>
$$$04.15
<p><div osisID="04.15">This is a test for April 15th</div></p>
$$$04.16
<p><div osisID="04.16">This is a test for April 16th</div></p>
$$$04.17
<p><div osisID="04.17">This is a test for April 17th</div></p>
$$$04.18
<p><div osisID="04.18">This is a test for April 18th</div></p>

Using OSIS internally won't cause any problems and is a good idea. Then use imp2ld to import.

The documentation specifically addressing daily devotionals is at http://www.crosswire.org/wiki/DevTools:Modules. Just search for "devotional" on that page and it should point you to the pertinent information.