Skip to content
Snippets Groups Projects
Commit 4d07b8b8 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch...

Merge branch 'hotline#31887_l_extension_de_recherche_vers_gallica_ne_fonctionne_pas' into 'hotline-master'

Hotline#31887 l extension de recherche vers gallica ne fonctionne pas

See merge request !1227
parents 7b508a41 190c9058
Branches
Tags
3 merge requests!1267Master,!1231Master,!1230Hotline master
- ticket #31887 : Correction de la prise en charge de l'extension de recherche vers Gallica
\ No newline at end of file
......@@ -60,8 +60,9 @@ class ZendAfi_View_Helper_TagSearchExtension extends ZendAfi_View_Helper_BaseHel
if (!$site_url || !$site_label)
return null;
$url = $this->_injectSearchTerm($site_url);
return $this->_tag('span',
$this->view->tagAnchor($this->_injectSearchTerm($site_url),
$this->view->tagAnchor($this->view->escape($url),
$site_label));
}
......
......@@ -148,7 +148,7 @@ class RechercheControllerSearchExtensionEnabledTest
/** @test */
public function gallicaLinkShouldBeRendered() {
$this->assertXPathContentContains('//a[contains(@href, "gallica all ")]',
$this->assertXPathContentContains('//a[contains(@href, "gallica all ")][contains(@href, "sport")]',
'Gallica');
}
}
......
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