updated and renamed json db files

This commit is contained in:
Bachir Soussi Chiadmi
2018-02-10 16:46:38 +01:00
parent 246f0ac078
commit 89d9aa6aca
5 changed files with 490 additions and 472 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7 -5
View File
@@ -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`);
}
}
}