diff --git a/library/Class/CodifAuteur/Description.php b/library/Class/CodifAuteur/Description.php index 3697446a100f0411b51d4eb3c96751189dd759aa..bf73f47d7ee1d9c2142cc21ce73bc0c37a1e0597 100644 --- a/library/Class/CodifAuteur/Description.php +++ b/library/Class/CodifAuteur/Description.php @@ -203,7 +203,8 @@ class Class_CodifAuteur_Description { $replace []= $view->tag('a', $record_title, ['href' => $base_url . $record->getId(), - 'title' => $this->_('Accéder au document %s')]); + 'title' => $this->_('Accéder au document: %s', + $record_title)]); } return str_ireplace($search, $replace, $biography); diff --git a/tests/scenarios/AuthorPage/AuthorPageTest.php b/tests/scenarios/AuthorPage/AuthorPageTest.php index a478a65fb66255260936f28cfb1e42b07ea0057e..cbc0def1d592f9d2b42be4de0e0d81f5796d9bd7 100644 --- a/tests/scenarios/AuthorPage/AuthorPageTest.php +++ b/tests/scenarios/AuthorPage/AuthorPageTest.php @@ -162,7 +162,8 @@ class AuthorPageViewByIdTest extends AuthorPageTestCase { /** @test */ public function biographyTextLesMiserablesShouldBeReplacedByLinkToRecord() { - $this->assertXPathContentContains('//div[@class="biography"]//a[contains(@href, "/recherche/viewnotice/code_rebond/A2408/id/9")]', 'Les Misérables'); + $this->assertXPathContentContains('//div[@class="biography"]//a[contains(@href, "/recherche/viewnotice/code_rebond/A2408/id/9")][@title="Accéder au document: Les Misérables"]', + 'Les Misérables'); }