/trunk/controleurs/Image.php |
---|
56,7 → 56,7 |
$critere_pour_dao = $_GET['image_recherche']; |
if(aControleur::estUneRechercheGenerale($critere_pour_dao)) { |
if($this->estUneRechercheGenerale($critere_pour_dao)) { |
$critere_pour_dao = aControleur::convertirChaineRequeteGeneralePourDao($critere_pour_dao); |
} else { |
$critere_pour_dao = aControleur::convertirChaineRequetePourDao($critere_pour_dao); |
129,7 → 129,7 |
$intervalle_max = (($page_en_cours) * $this->limit); |
$donnees['url_base_pagination'] = '?module=Image&action=rechercherImage&image_recherche='.$criteres.'&limit='.$this->limit.'&start='; |
$donnees['url_base_pagination'] = '?module=Image&action=rechercherImage&image_recherche='.$criteres.'&limit='.$this->limit.'&start='; |
$nb_pages = ceil($this->total_resultats/$this->limit); |
148,8 → 148,14 |
return $this->getVue('navigation/pagination',$donnees); |
} |
// +---------------------------------------------------------------------------------------------------------------+ |
// METHODES POUR LA RECHERCHE DE DONNEES |
private function estUneRechercheGenerale($chaine_recherche) { |
return ((strpos($chaine_recherche, ':') === false) && (strlen($chaine_recherche) > 0)); |
} |
// +---------------------------------------------------------------------------------------------------------------+ |
// METHODES POUR L'AFFICHAGE DE DONNEES |
private function getUrlImageBase($id, $format = 'L') { |
/trunk/controleurs/aControleur.php |
---|
236,7 → 236,6 |
public static function convertirChaineRequetePourDao($chaine) { |
$chaine = str_replace(':', '=', $chaine); |
$chaine = str_replace(':', '=', $chaine); |
$chaine = str_replace('+', '&', $chaine); |
$chaine = str_replace(' ','%20',$chaine); |
270,16 → 269,6 |
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); |
322,20 → 311,9 |
return $str; |
} |
public static function estUneRechercheGenerale($chaine_recherche) { |
return ((strpos($chaine_recherche, ':') === false) && (strlen($chaine_recherche) > 0)); |
} |
public static function construireUrlFluxRssResultatsRecherche($criteres) { |
if(self::estUneRechercheGenerale($criteres)) { |
$parametres = self::convertirChaineRequeteGeneralePourDao($criteres); |
} else { |
$parametres = self::convertirChaineRequetePourDao($criteres); |
} |
return Config::get('url_jrest').'CelSyndicationImage/MultiCriteres/rss2/M/?'.$parametres; |
return Config::get('url_jrest').'CelSyndicationImage/MultiCriteres/rss2/M/?'.aControleur::convertirChaineRequetePourDao($criteres); |
} |
public static function construireIntituleResultatRecherche($criteres) { |