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