Commit 6f4adbc0 authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT

hotline#101887 : Admin Domains : the link to TypeDoc rebound was not leading to a search on OPAC

parent c3134f6f
Pipeline #9661 passed with stage
in 44 minutes and 32 seconds
- Hotline #101887 : Gestion des Domaines : Erreur sur lien des Types documents dans l'écran de test de domaine
\ No newline at end of file
......@@ -1273,7 +1273,8 @@ class Class_Notice extends Storm_Model_Abstract {
->setLabel($label)
->setTitle($title)
->setUrlParams(['controller' => 'recherche',
->setUrlParams(['module' => 'opac',
'controller' => 'recherche',
'action' => 'simple',
'code_rebond' => $facet,
'facettes' => null,
......
......@@ -1892,6 +1892,8 @@ class CatalogueControllerActionTesterWithResultsPageTwoTest extends CatalogueCon
['id' => 21,
'titre_principal' => 'tales',
'auteur_principal' => 'marcus',
'type_doc' => Class_TypeDoc::LIVRE,
'facettes' => "T1",
'url_vignette' => 'http://image.org/marcus.jpg']);
$this->fixture('Class_Notice',
......@@ -1924,6 +1926,13 @@ class CatalogueControllerActionTesterWithResultsPageTwoTest extends CatalogueCon
}
/** @see https://forge.afi-sa.fr/issues/101887 */
/** @test */
public function rowShouldContainsLinkToSearchTypeWithNoAdmin() {
$this->assertXPath('//td/a[@href= "/recherche/simple/id_catalogue/6/code_rebond/T1"][not(contains(@href, "admin"))]');
}
/** @test */
public function rowShouldContainsLinkToTutuRecordInNewWindow() {
$this->assertXPathContentContains('//td/a[contains(@href, "/viewnotice/id_catalogue/6")][@target="_blank"]', 'tutu');
......
Markdown is supported
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