Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1389 → Rev 1390

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