diff --git a/library/ZendAfi/View/Helper/TagTitreEtNombreDeResultats.php b/library/ZendAfi/View/Helper/TagTitreEtNombreDeResultats.php index b87cae9fa8ccb82f9ed853517dd20f380341b7ea..8dd373d2dbb0388661e98e2dea95f40695e4bd72 100644 --- a/library/ZendAfi/View/Helper/TagTitreEtNombreDeResultats.php +++ b/library/ZendAfi/View/Helper/TagTitreEtNombreDeResultats.php @@ -30,6 +30,12 @@ class ZendAfi_View_Helper_TagTitreEtNombreDeResultats extends Zend_View_Helper_H $nombre_resultats); $html='<div class="info-recherche">'; + + $url_rss = $criteres_recherche->getUrlCriteresWithFacettes(); + $url_rss['format'] = 'atom'; + $html .= $this->view->tagRss($this->view->url($url_rss, null, true), + $this->view->_('Flux atom pour cette recherche')); + $html.='<span>' . $plural_expression . ' ' . $expression_recherche . '</span>'; return $html.='</div>'; diff --git a/tests/application/modules/opac/controllers/RechercheControllerTest.php b/tests/application/modules/opac/controllers/RechercheControllerTest.php index 52cee2b998771a9a7d292d534234974d9c1e8d14..a744ee1d97cd1a8eb9ed66810624be7ae023fb8e 100644 --- a/tests/application/modules/opac/controllers/RechercheControllerTest.php +++ b/tests/application/modules/opac/controllers/RechercheControllerTest.php @@ -620,7 +620,6 @@ class RechercheControllerViewNoticeClefAlphaTest extends RechercheControllerNoti $this->dispatch('recherche/viewnotice/clef/TESTINGALPHAKEY---101/expressionRecherche/Millenium', true); } - /** @test */ public function retourListeShouldLinkToRechercheSimpleWithHashTagIdNotice() { $this->assertXPathContentContains('//div/a[@class="retour"][contains(@href, "/recherche/simple/expressionRecherche/Millenium#345")]', @@ -972,6 +971,14 @@ class RechercheControllerSimpleActionWithDefaultConfigTest extends RechercheCont } + + /** @test */ + public function pageShouldContainsLinkToAtomFormat() { + $this->assertXPath('//a[contains(@href, "/recherche/simple/expressionRecherche/pomme/tri/alpha_auteur/format/atom")]/img[contains(@src, "rss")]', + $this->_response->getBody()); + } + + /** @test */ public function pommeShouldBePresentInRedirectedPageAsResultatInSession() { $this->assertXPathContentContains('//div', 'pomme');