|
@@ -12,7 +12,8 @@ module.exports = {
|
|
|
{
|
|
|
'lc':'lat',
|
|
|
'label':'Latin (Carl Gebhardt)',
|
|
|
- 'db':'0-LAT-ethicadb.json'},
|
|
|
+ 'db':'0-LAT-ethicadb.json'
|
|
|
+ },
|
|
|
{
|
|
|
'lc':'fr',
|
|
|
'label':'Français (Traduction par Charles Appuhn)',
|
|
@@ -70,6 +71,7 @@ module.exports = {
|
|
|
this.loaded_dbs ++;
|
|
|
|
|
|
if (this.loaded_dbs == this.langs.length) {
|
|
|
+ console.log('All db loaded : data', this.data);
|
|
|
this.parseByID(callback);
|
|
|
}
|
|
|
|
|
@@ -79,13 +81,15 @@ module.exports = {
|
|
|
|
|
|
this.data_byid[l] = {};
|
|
|
for (p in this.data[l]) {
|
|
|
-
|
|
|
- for (e in this.data[l][p].enonces) {
|
|
|
-
|
|
|
- this.data_byid[l][this.data[l][p].enonces[e].id] = this.data[l][p].enonces[e];
|
|
|
- for (c in this.data[l][p].enonces[e].childs){
|
|
|
-
|
|
|
- this.data_byid[l][this.data[l][p].enonces[e].childs[c].id] = this.data[l][p].enonces[e].childs[c];
|
|
|
+ if(this.data[l][p].type !== "intro"){
|
|
|
+
|
|
|
+ for (e in this.data[l][p].enonces) {
|
|
|
+
|
|
|
+ this.data_byid[l][this.data[l][p].enonces[e].id] = this.data[l][p].enonces[e];
|
|
|
+ for (c in this.data[l][p].enonces[e].childs){
|
|
|
+
|
|
|
+ this.data_byid[l][this.data[l][p].enonces[e].childs[c].id] = this.data[l][p].enonces[e].childs[c];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|