72,7 → 72,7 |
} |
if (empty($this->parametres['ns.structure']) && |
$this->parametres['retour.format'] != 'oss') { |
$this->parametres['ns.structure'] = 'au,an,bib'; |
$this->parametres['ns.structure'] = 'au,an,bib,bib_excl'; |
} |
} |
|
83,7 → 83,7 |
$this->verifierParametre('recherche', 'stricte|floue|etendue|complete'); |
$this->verifierParametre('ns.format', 'htm|txt'); |
$this->verifierParametre('retour.format', 'min|max|oss|perso'); |
$this->verifierParametreAvecValeurMultipe('ns.structure', 'an|au|bib|ad|gen|sp|ssp|fam|au_ss|bib_ss'); |
$this->verifierParametreAvecValeurMultipe('ns.structure', 'an|au|bib|ad|gen|sp|ssp|fam|au_ss|bib_ss|bib_excl'); |
|
/*if (count($this->erreursParametres) > 0) { |
$m = 'Erreur dans votre requĂȘte : '.implode('<br/>', $this->erreursParametres); |
253,9 → 253,9 |
foreach ($structure_nom as $structure) { |
$structure = trim($structure); |
$patterns = array('/^an$/', '/^au$/', '/^bib$/', '/^ad$/', '/^sp$/', '/^gen$/', '/^ssp$/','/^fam$/', |
'/^au_ss$/','/^bib_ss$/'); |
'/^au_ss$/','/^bib_ss$/','/^bib_excl$/'); |
$champs = array('annee', 'auteur', 'biblio_origine', 'nom_addendum', 'epithete_sp', 'genre', |
'epithete_infra_sp','famille','auteur', 'biblio_origine'); |
'epithete_infra_sp','famille','auteur', 'biblio_origine','source_biblio_exclure'); |
|
// avec str_replace() 'sp' est inclu dans 'ssp', et la conversion pour 'ssp' est mauvaise |
$this->compo_nom[$structure] = preg_replace($patterns, $champs, $structure); |
807,7 → 807,8 |
'an' => '[<span class="annee">%s</span>]', |
'an_bib' => '[<span class="annee">%s</span>, <span class="biblio">%s</span>]', |
'bib' => '[<span class="biblio">%s</span>]', |
'ad' => '[<span class="adendum">%s</span>]'); |
'ad' => '[<span class="adendum">%s</span>]', |
'bib_excl' => '<span class="bib_excl">, %s</span>'); |
} else { |
$format = array( |
'au' => '%s', |
820,7 → 821,9 |
'ssp' => '%s', |
'fam' => '%s', |
'au_ss' => '%s', |
'bib_ss' => '%s'); |
'bib_ss' => '%s', |
'bib_excl' => ', %s' |
); |
} |
$compo_nom = array(); |
|
849,6 → 852,9 |
} elseif (isset($bib)) { |
$nom_complet[] = sprintf($format['bib'], $bib); |
} |
if (isset($bib_excl)) { |
$nom_complet[] = sprintf($format['bib_excl'], $bib_excl); |
} |
if (isset($ad)) $nom_complet[] = sprintf($format['ad'], $ad); |
if (isset($gen)) $nom_complet[] = sprintf($format['gen'], $gen); |
if (isset($ssp)) $nom_complet[] = sprintf($format['ssp'], $ssp); |