Browse Source

updated and renamed json db files

Bachir Soussi Chiadmi 6 years ago
parent
commit
89d9aa6aca

File diff suppressed because it is too large
+ 9 - 5
assets/jsondb/spinoza-ethica-bra-brandao.json


File diff suppressed because it is too large
+ 4 - 4
assets/jsondb/spinoza-ethica-en-elwes.json


File diff suppressed because it is too large
+ 5 - 5
assets/jsondb/spinoza-ethica-fr-appuhn.json


File diff suppressed because it is too large
+ 7 - 7
assets/jsondb/spinoza-ethica-lat-gebhardt.json


+ 7 - 5
assets/modules/dbs.js

@@ -12,22 +12,22 @@ module.exports = {
     {
       'lc':'lat',
       'label':'Latin (Carl Gebhardt)',
-      'db':'0-LAT-ethicadb.json'
+      'db':'spinoza-ethica-lat-gebhardt.json'
     },
     {
       'lc':'fr',
       'label':'Français (Traduction par Charles Appuhn)',
-      'db':'2-Appuhn-FR-ethicadb.json'
+      'db':'spinoza-ethica-fr-appuhn.json'
     },
     {
       'lc':'bra',
       'label':'Brazilian (Tradução Roberto Brandão)',
-      'db':'ethica-bresilen.json'
+      'db':'spinoza-ethica-bra-brandao.json'
     },
     {
       'lc':'en',
       'label':'English (Translated by R. H. M. Elwes)',
-      'db':'3-Elwes-EN-ethicadb.json'
+      'db':'spinoza-ethica-en-elwes.json'
     }
   ],
   data:[],
@@ -116,6 +116,8 @@ module.exports = {
       // if links exist on text
       if(links_match){
         for(link of links_match){
+        // for(i in links_match){
+        //   link = links_match[i];
           // console.log(link);
           // get the target id
           tid = link.match(/\((.+)\)/)[1];
@@ -131,7 +133,7 @@ module.exports = {
               this.data_strct[tid].from.push(id);
           }else{
             // if targets does not exists, the db has an issue, warn about that
-            console.log('!! warning : '+tid+' target id does not exists');
+            console.log(`!! warning : ${tid} target id does not exists`);
           }
         }
       }

Some files were not shown because too many files changed in this diff