Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1390 → Rev 1389

/trunk/presentations/scripts/fiche-synthese.js
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);