[sword-svn] r3538 - trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/ios
scribe at crosswire.org
scribe at crosswire.org
Mon Nov 27 16:26:18 MST 2017
Author: scribe
Date: 2017-11-27 16:26:18 -0700 (Mon, 27 Nov 2017)
New Revision: 3538
Modified:
trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/ios/SWORD.swift
Log:
updated getBookNames to use correctly BOOKABBREV instead of BOOKNAME
Modified: trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/ios/SWORD.swift
===================================================================
--- trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/ios/SWORD.swift 2017-11-26 09:29:05 UTC (rev 3537)
+++ trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/ios/SWORD.swift 2017-11-27 23:26:18 UTC (rev 3538)
@@ -280,7 +280,7 @@
var retVal = [String]()
org_crosswire_sword_SWModule_begin(mod)
while (org_crosswire_sword_SWModule_popError(mod) == 0) {
- retVal.append(getStringArray(buffer: org_crosswire_sword_SWModule_getKeyChildren(mod))[VERSEKEY_BOOKNAME])
+ retVal.append(getStringArray(buffer: org_crosswire_sword_SWModule_getKeyChildren(mod))[VERSEKEY_BOOKABBREV])
org_crosswire_sword_SWModule_setKeyText(mod, "+book")
}
self.commandDelegate!.send(CDVPluginResult(status: CDVCommandStatus_OK, messageAs: retVal), callbackId: command.callbackId)
@@ -493,7 +493,6 @@
*/
}
- var VERSEKEY_BOOKABBREV = Int(org_crosswire_sword_SWModule_VERSEKEY_BOOKABBREV);
var VERSEKEY_BOOK = Int(org_crosswire_sword_SWModule_VERSEKEY_BOOK);
var VERSEKEY_CHAPTER = Int(org_crosswire_sword_SWModule_VERSEKEY_CHAPTER);
var VERSEKEY_VERSE = Int(org_crosswire_sword_SWModule_VERSEKEY_VERSE);
@@ -503,7 +502,8 @@
var VERSEKEY_VERSEMAX = Int(org_crosswire_sword_SWModule_VERSEKEY_VERSEMAX);
var VERSEKEY_BOOKNAME = Int(org_crosswire_sword_SWModule_VERSEKEY_BOOKNAME);
var VERSEKEY_SHORTTEXT = Int(org_crosswire_sword_SWModule_VERSEKEY_SHORTTEXT);
-
+ var VERSEKEY_BOOKABBREV = Int(org_crosswire_sword_SWModule_VERSEKEY_BOOKABBREV);
+
func renderChapter(masterMod: Int, mod: Int) -> [[String: Any]] {
let saveMasterKey = String(cString: org_crosswire_sword_SWModule_getKeyText(masterMod))
let saveKey = String(cString: org_crosswire_sword_SWModule_getKeyText(mod))
More information about the sword-cvs
mailing list