diff --git a/.hgignore b/.hgignore
index 0a2f4edf..b4e2de0b 100644
--- a/.hgignore
+++ b/.hgignore
@@ -37,3 +37,4 @@ DynamicBibleIonic/platforms/android/android.json
DynamicBibleIonic/platforms/android/AndroidManifest.xml
DynamicBibleIonic/platforms/android/.gitignore
DynamicBibleIonic/.idea
+DynamicBibleIonic/nbproject
diff --git a/DynamicBibleIonic/config.xml b/DynamicBibleIonic/config.xml
index cdd34242..f5d0e358 100644
--- a/DynamicBibleIonic/config.xml
+++ b/DynamicBibleIonic/config.xml
@@ -44,7 +44,7 @@
-
+
diff --git a/DynamicBibleIonic/src/bible-service.ts b/DynamicBibleIonic/src/bible-service.ts
index 189228f3..64647b30 100644
--- a/DynamicBibleIonic/src/bible-service.ts
+++ b/DynamicBibleIonic/src/bible-service.ts
@@ -1,4 +1,4 @@
-///
+///
///
import { Injectable } from "@angular/core";
import { Http } from "@angular/http";
@@ -63,34 +63,24 @@ export class BibleService
// figure out the start verse.
if (j === 0)
- {
start = parseInt(section.start.verse);
- } else
- {
+ else
start = 1;
- }
// figure out the end verse
if ((j + 1) === this.chapters.length)
- {
end = section.end.verse;
- } else
- {
+ else
end = "*";
- }
// get the verses requested.
const tvs = this.chapters[j].vss.length;
if (end == "*" || parseInt(end) > tvs)
- {
end = tvs;
- }
+ // we're using c based indexes here, so the index is 1 less than the verse #.
for (let i = start; i <= end; i++)
- {
- // we're using c based indexes here, so the index is 1 less than the verse #.
vss.push(this.chapters[j].vss[i - 1]);
- }
this.result.cs.push({
"ch": this.chapters[j].ch,
@@ -99,14 +89,13 @@ export class BibleService
}
if (section.start.book >= 40)
- {
this.result.testament = "new";
- } else
- {
+ else
this.result.testament = "old";
- }
+
return this.result;
- } catch (error)
+ }
+ catch (error)
{
console.log(error);
}