diff --git a/lib/Alchemy/Phrasea/Controller/Prod/Records.php b/lib/Alchemy/Phrasea/Controller/Prod/Records.php index 537b5f3d40..edf7b01b9f 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/Records.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/Records.php @@ -191,7 +191,9 @@ class Records implements ControllerProviderInterface 'record' => $record )), "pos" => $record->get_number(), - "title" => str_replace(array('[[em]]', '[[/em]]'), array('', ''), $record->get_title($query, $searchEngine)) + "title" => str_replace(array('[[em]]', '[[/em]]'), array('', ''), $record->get_title($query, $searchEngine)), + "collection_name" => $record->get_collection()->get_name(), + "collection_logo" => $record->get_collection()->getLogo($record->get_base_id(), $app) )); } diff --git a/lib/classes/record/preview.php b/lib/classes/record/preview.php index e9c1275d37..900bebe0d3 100644 --- a/lib/classes/record/preview.php +++ b/lib/classes/record/preview.php @@ -288,7 +288,7 @@ class record_preview extends record_adapter switch ($this->env) { case "RESULT": - $this->title .= sprintf( + $this->title = sprintf( _('preview:: resultat numero %s '), '' . ($this->number + 1) . ' : ' ); diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index 468182057c..99d17678e7 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -941,7 +941,13 @@
- +
+ +   + +   + +
diff --git a/www/include/jquery.p4.preview.js b/www/include/jquery.p4.preview.js index ebb884fc6b..fb1d4db0fa 100644 --- a/www/include/jquery.p4.preview.js +++ b/www/include/jquery.p4.preview.js @@ -147,7 +147,10 @@ function openPreview(env, pos, contId, reload) { $('#PREVIEWBOX img.record.zoomable').draggable(); } - setTitle(data.title); + $('#SPANTITLE').empty().append(data.title); + $("#PREVIEWTITLE_COLLLOGO").empty().append(data.collection_logo); + $("#PREVIEWTITLE_COLLNAME").empty().append(data.collection_name); + setPreview(); if (env != 'RESULT') {