/trunk/paca.php |
---|
File deleted |
\ No newline at end of file |
/trunk/configurations/config_paca.ini |
---|
File deleted |
\ No newline at end of file |
/trunk/configurations/config.default.ini |
---|
55,8 → 55,6 |
; OSM : http://www.openstreetmap.org/?lat=%s&lon=%s&zoom=17 |
; GGM : http://maps.google.fr/?ll=%s,%s |
lien_vers_carte = "http://www.openstreetmap.org/?lat=%s&lon=%s&zoom=17" |
;Liste des identifiants de projets (séparés par des virgules) sur lesquels on veut limiter l'application (laisser vide pour ne pas limiter). |
projets = "11" |
; +------------------------------------------------------------------------------------------------------+ |
; Spécifique au module Rechercher |
85,8 → 83,6 |
carte_sotckage_chemin = "/home/jpm/web/collection/cartes/" |
; Url du dossier où seront stockée les cartes créées avec %s pour indiquer le fichier |
carte_sotckage_url = "http://{ref:domaine}/collection/cartes/%s" |
; Nom du fichier de carte généré |
carte_genere_nom = "col_str_dep" |
; Constante stockant la couleur la plus foncé utilisée pour les cartes "proportionnelles".0,127,0 |
carte_couleur_foncee = "140,168,68" |
; Constante stockant la couleur la plus claire utilisée pour les cartes "proportionnelles".210,230,210 |
/trunk/bibliotheque/dao/StructureDao.php |
---|
38,19 → 38,11 |
*/ |
public function getStructureParZoneGeo($type_recherche) { |
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/ParZoneGeo/$type_recherche"; |
$url = $this->limiterParProjets($url); |
$json = $this->envoyerRequeteConsultation($url); |
$donnees = json_decode($json, true); |
return $donnees; |
} |
private function limiterParProjets($url) { |
if (Config::get('projets') != '') { |
$url .= '/'.Config::get('projets'); |
} |
return $url; |
} |
/** |
* Retourne l'ensemble des informations du personnel d'une structure. |
* |
/trunk/bibliotheque/dao/RechercheDao.php |
---|
42,7 → 42,7 |
private function construireUrlRecherche($type, $parametres, $limitation = true) { |
$url = $this->url_jrest.self::SERVICE.'/'.$type; |
$params_a_passer = array('mots', 'sci', 'bot', 'zg', 'p', 'pr', 'str-d', 'veg', 'projets'); |
$params_a_passer = array('mots', 'sci', 'bot', 'zg', 'p', 'pr', 'str-d', 'veg'); |
foreach ($params_a_passer as $param_cle) { |
if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') { |
$valeur = urlencode(trim($parametres[$param_cle])); |
/trunk/squelettes/moteur.tpl.html |
---|
25,9 → 25,6 |
<p> |
<input name="module" type="hidden" value="<?=$url_module;?>" /> |
<input name="action" type="hidden" value="<?=$url_action;?>" /> |
<?php if (isset($url_contexte)) : ?> |
<input name="contexte" type="hidden" value="<?=$url_contexte;?>" /> |
<? endif; ?> |
<label id="col-rech" for="recherche">Rechercher</label> |
<input id="recherche" name="recherche" type="text" value="<?=$recherche;?>" size="75" maxlength="250"/> |
<input id="col-rech-ok" type="submit" value="OK" /> |
/trunk/squelettes/css/collection/generale.css |
---|
88,14 → 88,14 |
/*icones*/ |
a.lien_ext:after { |
content: " "url(images/fleche_externe.png);} |
content: " "url(http://www.tela-botanica.org/sites/commun/generique/images/graphisme/icone_fleche.png);} |
a.pdf:before { |
content: url(images/fichier_pdf.png)" ";} |
content: url(http://www.tela-botanica.org/client/projet/icones/pdf.gif)" ";} |
/*CSS3 : ajout d'un espace entre href et ^ pour konqueror*/ |
a.mail:after, a[href ^="mailto:"]:after { |
content: " "url(images/mail.png);} |
content: " "url(http://www.tela-botanica.org/sites/commun/generique/images/graphisme/icone_mail.png);} |
.table_bordure th[title]:after { |
content: " "url(images/aide.png);} |
content: " "url(http://www.tela-botanica.org/sites/commun/generique/images/graphisme/help.png);} |
/*abbr { |
background :url(/client/eflore_chorologie/presentations/images/info.png) no-repeat 100% 5%; |
padding-right:16px; |
403,6 → 403,7 |
.menu_commun_n1 li { |
display:inline;} |
.menu_commun_n1 li+li { |
background:url(http://www.tela-botanica.org/sites/commun/generique/images/graphisme/boule_basse.png) no-repeat center left; |
display:inline; |
padding-left:10px;} |
/trunk/squelettes/css/collection/images/fleche_externe.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/squelettes/css/collection/images/aide.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/squelettes/css/collection/images/fichier_pdf.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/squelettes/css/collection/images/mail.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/controleurs/AppControleur.php |
---|
55,9 → 55,10 |
self::$parametres['action'] = $_GET['action']; |
} |
self::$parametres['url']->setVariableRequete('action', self::$parametres['action']); |
$registre = Registre::getInstance(); |
$registre->set('parametres', &self::$parametres); |
self::initialiserRegistre(); |
$ClasseModule = self::$parametres['module']; |
$action = self::$parametres['action']; |
$module = new $ClasseModule(); |
65,17 → 66,6 |
self::fusionnerSortie($module->getSortie()); |
} |
private static function initialiserRegistre() { |
$registre = Registre::getInstance(); |
// Ajout des paramètres au registre |
$registre->set('parametres', &self::$parametres); |
// Ajout du contexte au registre |
if (isset($_GET['contexte'])) { |
$registre->set('contexte', $_GET['contexte']); |
} |
} |
private static function gererSession() { |
if (Config::get('session_demarrage')) { |
// Attribution d'un nom à la session |
/trunk/controleurs/aControleur.php |
---|
36,11 → 36,10 |
private $parametres = array(); |
// FIXME : voir s'il est plus intéressant d'utiliser une méthode dans les classes filles |
protected $url = null; |
protected $registre = array(); |
public function __construct() { |
$this->registre = Registre::getInstance(); |
$this->parametres = $this->registre->get('parametres'); |
$registre = Registre::getInstance(); |
$this->parametres = $registre->get('parametres'); |
$this->url = $this->parametres['url']; |
parent::__construct(); |
} |
369,9 → 368,6 |
protected function obtenirUrlRecherche($txt = null) { |
$this->url->setRequete(false); |
if (!is_null($this->registre->get('contexte'))) { |
$this->url->setVariableRequete('contexte', $this->registre->get('contexte')); |
} |
$this->url->setVariableRequete('module', 'Recherche'); |
$this->url->setVariableRequete('action', 'rechercher'); |
if (!is_null($txt)) { |
389,9 → 385,6 |
protected function obtenirObjetUrlFicheStructure($id_structure) { |
$this->url->setRequete(false); |
if (!is_null($this->registre->get('contexte'))) { |
$this->url->setVariableRequete('contexte', $this->registre->get('contexte')); |
} |
$this->url->setVariableRequete('module', 'FicheStructure'); |
$this->url->setVariableRequete('id', $id_structure); |
$url = clone $this->url; |
406,9 → 399,6 |
protected function obtenirObjetUrlFicheCollection($id_collection) { |
$this->url->setRequete(false); |
if (!is_null($this->registre->get('contexte'))) { |
$this->url->setVariableRequete('contexte', $this->registre->get('contexte')); |
} |
$this->url->setVariableRequete('module', 'FicheCollection'); |
$this->url->setVariableRequete('id', $id_collection); |
$url = clone $this->url; |
423,9 → 413,6 |
protected function obtenirObjetUrlFichePersonne($id_personne) { |
$this->url->setRequete(false); |
if (!is_null($this->registre->get('contexte'))) { |
$this->url->setVariableRequete('contexte', $this->registre->get('contexte')); |
} |
$this->url->setVariableRequete('module', 'FichePersonne'); |
$this->url->setVariableRequete('id', $id_personne); |
$url = clone $this->url; |
/trunk/controleurs/Carte.php |
---|
30,11 → 30,9 |
// Initialisation de variable |
$donnees = array(); |
// Création de la carte |
$options = array( |
'carte_nom' => Config::get('carte_genere_nom'), |
'carte_nom' => 'col_str_dep', |
'formule' => Cartographie::FORMULE_PROPORTIONNEL, |
'couleur_claire' => Config::get('carte_couleur_claire'), |
'couleur_foncee' => Config::get('carte_couleur_foncee'), |
/trunk/controleurs/Recherche.php |
---|
38,7 → 38,6 |
$donnees['url_form'] = $this->obtenirUrlRecherche(); |
$donnees['url_module'] = 'Recherche'; |
$donnees['url_action'] = 'rechercher'; |
$donnees['url_contexte'] = $this->registre->get('contexte'); |
self::$url_exemple = $this->obtenirUrlRecherche('%s'); |
// Gestion du squelette et de la sortie |
96,7 → 95,6 |
$this->url->setVariableRequete('recherche', $chaine_de_recherche); |
} |
$parametres = $this->parserChaineDeRecherche($chaine_de_recherche); |
$parametres = $this->limiterParProjets($parametres); |
// Gestion du nombre de résultats |
$donnees_total = $rechercheDao->chercherStructureNbre($parametres); |
195,11 → 193,4 |
} |
} |
} |
private function limiterParProjets($parametres) { |
if (Config::get('projets') != '') { |
$parametres['projets'] = Config::get('projets'); |
} |
return $parametres; |
} |
} |