Skip to content
Snippets Groups Projects
Commit 7ff455b8 authored by Laurent's avatar Laurent
Browse files

dev #22209 search result feed

RT fixes
parent 90d1bb93
Branches
Tags
3 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1027Dev#22209 search result feed,!1026Dev#22209 search result feed
......@@ -55,11 +55,11 @@ class ZendAfi_Feed_SearchResultHeader {
'editeur' => $this->_("Editeur"),
'collection' => $this->_("Collection") ];
$op_label = $operateur ? $op_labels[$operateur] : 'Et ';
$op_label = $operateur ? $op_labels[$operateur] : $this->_('Et ');
$libelle = $op_label.
strtolower($criteria_labels[$name]).
$this->_($type_recherche == 'commence' ? ' commence par': ':') .' ' . $value;
$this->_($type_recherche == 'commence' ? $this->_(' commence par') : ':') .' ' . $value;
$this->addCriteria($libelle);
}
......@@ -73,13 +73,13 @@ class ZendAfi_Feed_SearchResultHeader {
public function visitSection($section) {
$this->addCriteria('Section',
$this->addCriteria($this->_('Section'),
Class_Codification::getInstance()->getLibelleFacette("S".$section));
}
public function visitAnnexe($annexe) {
$this->addCriteria('Annexe',
$this->addCriteria($this->_('Annexe'),
Class_Codification::getInstance()->getLibelleFacette("Y".$annexe));
}
......@@ -133,7 +133,7 @@ class ZendAfi_Feed_SearchResultHeader {
public function visitNouveaute($nouveaute) {
if ($nouveaute == 0)
return;
$libelle = $this->_('Nouveautés de moins de: ') . $nouveaute . ' mois';
$libelle = $this->_('Nouveautés de moins de: ') . $nouveaute . ' ' . $this->_('mois');
$this->addCriteria($libelle);
}
......
......@@ -74,7 +74,7 @@ class ZendAfi_View_Helper_TagCriteresRecherche extends Zend_View_Helper_HtmlElem
return;
$url = $this->_criteres_recherche->getUrlCriteresWithoutElement('nouveaute');
$libelle = $this->view->_('Nouveautés de moins de: ') . $nouveaute . ' mois';
$libelle = $this->view->_('Nouveautés de moins de: ') . $nouveaute . ' ' . $this->_('mois');
$this->htmlAppend($this->getSuppressionImgUrlForLibelle($libelle,$url));
}
......@@ -82,7 +82,7 @@ class ZendAfi_View_Helper_TagCriteresRecherche extends Zend_View_Helper_HtmlElem
public function visitAnnexe($annexe) {
$this
->htmlAppend($this->view->_("Site: ".Class_Codification::getInstance()->getLibelleFacette("Y".$annexe)))
->htmlAppend('&nbsp;&raquo;&nbsp;<a href="'. $this->view->url(['annexe' => null]) . '">Elargir la recherche à tous les sites</a>');
->htmlAppend('&nbsp;&raquo;&nbsp;<a href="'. $this->view->url(['annexe' => null]) . '">' . $this->_('Elargir la recherche à tous les sites') .'</a>');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment