diff --git a/VERSIONS_HOTLINE/33899 b/VERSIONS_HOTLINE/33899 new file mode 100644 index 0000000000000000000000000000000000000000..17db84e6fccd4294674a5322e141d2c63f6a4e35 --- /dev/null +++ b/VERSIONS_HOTLINE/33899 @@ -0,0 +1 @@ + - ticket #33899 : Correction du renvoie sur auteur à partir de la 2eme page d'une liste de résultats en mode mur \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/Notice/LienRebondAuteur.php b/library/ZendAfi/View/Helper/Notice/LienRebondAuteur.php index 1897ead7f1805bc5e6ed1cf571d638cc76d00245..494f6132ddf96655e7a33b8f27038da0966a25d2 100644 --- a/library/ZendAfi/View/Helper/Notice/LienRebondAuteur.php +++ b/library/ZendAfi/View/Helper/Notice/LienRebondAuteur.php @@ -16,13 +16,14 @@ * * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE * along with BOKEH; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ class ZendAfi_View_Helper_Notice_LienRebondAuteur extends Zend_View_Helper_HtmlElement { public function notice_LienRebondAuteur($notice) { return $this->view->url(['controller' => 'recherche', 'action' => 'simple', - 'code_rebond' => $notice->getCodeFacette('A')]); + 'code_rebond' => $notice->getCodeFacette('A'), + 'page' => null]); } } diff --git a/tests/application/modules/opac/controllers/RechercheControllerTest.php b/tests/application/modules/opac/controllers/RechercheControllerTest.php index d217f1be291692a7d1ad94bc33268088d7b96950..f302a16e72b2e0a855257ac97472692cb34734a6 100644 --- a/tests/application/modules/opac/controllers/RechercheControllerTest.php +++ b/tests/application/modules/opac/controllers/RechercheControllerTest.php @@ -1409,6 +1409,12 @@ class RechercheControllerSimpleActionWithListeFormatMurTest extends RechercheCon } + /** @test */ + public function urlForAuthorInRecordReboundShouldNotContainsPage() { + $this->assertXPath('//span[@class="notice_auteur"]//a[contains(@href,"code_rebond/A")][not(contains(@href, "page/2"))]'); + } + + /** @test */ public function criteresRechercheShouldContainsBibAnnecy() { $this->assertXPathContentContains('//div[@class="criteres_recherche"]//div[2]', 'Bibliothèque: Annecy');