372,10 → 372,15 |
// La partie biblio commence au premier crochet ouvrant |
// ou bien au span de la biblio à exclure |
posCrochetGauche = html.indexOf('['); |
if(posCrochetGauche < 0) { |
posCrochetGauche = html.indexOf('<span class="bib_excl">'); |
posbiblioAExclure = html.indexOf('<span class="bib_excl">'); |
|
if(posCrochetGauche < 0 || (posbiblioAExclure > 0 && posbiblioAExclure < posCrochetGauche)) { |
posCrochetGauche = posbiblioAExclure; |
} |
|
console.log(posCrochetGauche+" "+posbiblioAExclure); |
|
|
if (posCrochetGauche > 0) { |
nom = html.substr(0, posCrochetGauche); |
biblio = html.substr(posCrochetGauche, html.length); |