237,6 → 237,7 |
public static function convertirChaineRequetePourDao($chaine) { |
|
$chaine = str_replace(':', '=', $chaine); |
$chaine = str_replace(':', '=', $chaine); |
$chaine = str_replace('+', '&', $chaine); |
$chaine = str_replace(' ','%20',$chaine); |
|
269,6 → 270,16 |
return $chaine; |
} |
|
public static function convertirChaineTaxonPourAffichage($taxon) { |
|
if($taxon == 'null') { |
$taxon = 'indetermine'; |
} |
|
$chaine = 'taxon:'.htmlentities($taxon); |
return $chaine; |
} |
|
public static function convertirChaineAuteurPourRequeteUrl($auteur) { |
|
$chaine = 'auteur:'.self::convertirPourUrl($auteur); |
312,9 → 323,20 |
return $str; |
} |
|
public static function estUneRechercheGenerale($chaine_recherche) { |
return ((strpos($chaine_recherche, ':') === false) && (strlen($chaine_recherche) > 0)); |
} |
|
public static function construireUrlFluxRssResultatsRecherche($criteres) { |
return Config::get('url_jrest').'CelSyndicationImage/MultiCriteres/rss2/M/?'.aControleur::convertirChaineRequetePourDao($criteres); |
|
if(self::estUneRechercheGenerale($criteres)) { |
$parametres = self::convertirChaineRequeteGeneralePourDao($criteres); |
} else { |
$parametres = self::convertirChaineRequetePourDao($criteres); |
|
} |
return Config::get('url_jrest').'CelSyndicationImage/MultiCriteres/rss2/M/?'.$parametres; |
} |
|
public static function construireIntituleResultatRecherche($criteres) { |
return 'résultats de cette recherche'; |