From 269d3d092bba2067c9b8a7977f6e397d8c38e2b1 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Sat, 6 Apr 2013 09:50:24 +0000 Subject: [PATCH] Amelioration affichage selection facettes recherche guidee --- .../opac/views/scripts/recherche/guidee.phtml | 25 +++++++++++-------- .../scripts/recherche/resultatRecherche.phtml | 3 ++- public/opac/css/global.css | 5 ++++ 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/application/modules/opac/views/scripts/recherche/guidee.phtml b/application/modules/opac/views/scripts/recherche/guidee.phtml index 1db449c809f..da770134d78 100644 --- a/application/modules/opac/views/scripts/recherche/guidee.phtml +++ b/application/modules/opac/views/scripts/recherche/guidee.phtml @@ -2,22 +2,25 @@ <?php // Fil d'ariane -//echo "Recherche guidée<br>"; +if($this->fil_ariane["liens"]) { + echo '<div class="fil_ariane_rech_guidee">'; -if($this->fil_ariane["liens"]) -{ - foreach($this->fil_ariane["liens"] as $fil) - { + foreach($this->fil_ariane["liens"] as $fil) { print('<span><a href="'.$this->url($fil["url"],null,true).'"> » '.$fil["libelle"].'</a></span>'); } + + echo '</div>'; } -print('<br><hr>'); + +echo $this->tagCriteresRecherche($this->criteres_recherche); + +print('<hr>'); + // Rubriques -if(!$this->rubriques) print($this->_("Il n'y a plus de sous-niveau")); -else -{ - foreach($this->rubriques as $rubrique) - { +if(!$this->rubriques) + print($this->_("Il n'y a plus de sous-niveau")); +else { + foreach($this->rubriques as $rubrique) { print('<a href="'.$this->url($rubrique["url"],null,true).'">» '.$rubrique["libelle"].'</a><br>'); } } diff --git a/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml b/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml index 0c88228f669..8a5c17c8a37 100644 --- a/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml +++ b/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml @@ -16,8 +16,9 @@ if ($this->is_pertinence) { if ($this->rubriques || $this->fil_ariane) { echo $this->render('recherche/guidee.phtml'); +} else { + echo $this->tagCriteresRecherche($this->criteres_recherche); } -echo $this->tagCriteresRecherche($this->criteres_recherche); ?> diff --git a/public/opac/css/global.css b/public/opac/css/global.css index 9b6bfee9846..21b2a31aadb 100644 --- a/public/opac/css/global.css +++ b/public/opac/css/global.css @@ -1338,6 +1338,11 @@ body.abonne_multimedia-hold-view .actions a { margin-left: 2px } + +.fil_ariane_rech_guidee { + margin-bottom: 0.5em; +} + /** Vignettes non reconnues **/ .nothumbnail_wrapper { background-color: white; -- GitLab