Skip to content
Snippets Groups Projects
Commit 196f9e04 authored by Laurent's avatar Laurent
Browse files

dev #22209 search result feed

test fix
parent 27c49e61
Branches
Tags
3 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1027Dev#22209 search result feed,!1026Dev#22209 search result feed
......@@ -34,8 +34,6 @@ class ZendAfi_View_Helper_ListeNotices_Chrono extends ZendAfi_View_Helper_ListeN
static::$_id_counter = static::$_id_counter + 1;
$embed_id = 'liste_chrono_'.static::$_id_counter;
$resultat = new Class_MoteurRecherche_Resultat($data);
$storyjs_params = [
'type' => 'timeline',
'embed_id' => $embed_id,
......@@ -43,7 +41,7 @@ class ZendAfi_View_Helper_ListeNotices_Chrono extends ZendAfi_View_Helper_ListeN
'height' => (isset($preferences['op_hauteur']) ? $preferences['op_hauteur'] : 600),
'start_at_end' => true,
'start_zoom_adjust' => -4,
'source' => json_decode($this->view->listeNotices_ChronoSource($resultat, $preferences)),
'source' => json_decode($this->view->listeNotices_ChronoSource($data, $preferences)),
'js' => BASE_URL.'/public/opac/TimelineJS-2.25/compiled/js/timeline.js',
'css' => BASE_URL.'/public/opac/TimelineJS-2.25/compiled/css/timeline.css',
'lang' => 'fr',
......
......@@ -135,7 +135,7 @@ class RechercheControllerJsonWithResultTest extends RechercheControllerJsonTestC
$loader->whenCalled('findAllByRequeteRecherche')
->with('Select id_notice from notices', 5, 1)
->with('Select id_notice from notices', 5, null)
->answers([$potter, $rdv])
->beStrict();
}
......
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