Skip to content
Snippets Groups Projects
Commit 0ed81360 authored by llaffont's avatar llaffont
Browse files

Correction liens facettes

parent dbefbdc7
Branches
Tags
No related merge requests found
......@@ -104,7 +104,7 @@ if (!isset($tags)) $tags=[];
if ($hasFacettes) { ?>
<div class="facette_outer" style="margin-left:10px;margin-top:17px">
<?php if ($preferences["facettes_message"]) { ?>
<strong><?php echo $preferences["facettes_message"];?></strong><br/>
<h2><?php echo $preferences["facettes_message"];?></h2>
<?php } ?>
<?php echo $this->facettes($facettes, $preferences, $this->criteres_recherche); ?>
</div>
......@@ -112,9 +112,9 @@ if (!isset($tags)) $tags=[];
}
if ($hasTags and (2 == $tagsPosition)) { ?>
<div class="nuage_outer" style="margin-left:10px"><br/>
<div class="nuage_outer" style="margin-left:10px">
<?php if ($preferences["tags_message"]) { ?>
<strong><?php echo $preferences["tags_message"];?></strong>
<h2><?php echo $preferences["tags_message"];?></h2>
<?php } ?>
<?php echo $this->nuageTags($tags, $preferences["tags_calcul"],$this->criteres_recherche); ?>
</div>
......
......@@ -22,7 +22,7 @@
class Class_CriteresRecherche {
use Trait_Translator;
protected $_params;
protected $_params = [];
protected $_profil;
public static $criteres = [
'expressionRecherche' => 'Expression',
......
......@@ -41,14 +41,14 @@ class ZendAfi_View_Helper_FacettesTest extends ViewHelperTestCase {
['facettes_codes' => 'YMHGENR',
'facettes_nombre' => 1],
'/recherche/simple');
new Class_CriteresRecherche(['expressionRecherche' => '*']));
}
/** @test */
public function linkForFacettePommeShouldBePresent() {
$this->assertXPathContentContains($this->_html,
'//a[@class="facette"][@href="/recherche/simple/facette/M6567"]',
'//a[@class="facette"][contains(@href, "/recherche/simple/facette/M6567")]',
'Pommes : albums');
}
......@@ -56,14 +56,14 @@ class ZendAfi_View_Helper_FacettesTest extends ViewHelperTestCase {
/** @test */
public function linkForFacetteMaisonEnvironnementShouldBePresent() {
$this->assertXPathContentContains($this->_html,
'//a[@class="facette"][@href="/recherche/simple/facette/YMDE"]',
'//a[@class="facette"][contains(@href, "/recherche/simple/facette/YMDE")]',
'Maison environnement');
}
/** @test */
public function linkForFacetteElectroLibreShouldBePresent() {
$this->assertXPathContentContains($this->_html,
'//a[@class="facette"][@href="/recherche/simple/facette/HGENR0001"]',
'//a[@class="facette"][contains(@href, "/recherche/simple/facette/HGENR0001")]',
'Electron libre');
}
......
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