#PHRAS-382 #time 3h

This commit is contained in:
Jean-Yves Gaulier
2015-02-03 15:52:39 +01:00
parent 21054d3849
commit 7185b031fb
4 changed files with 15 additions and 4 deletions

View File

@@ -191,7 +191,9 @@ class Records implements ControllerProviderInterface
'record' => $record
)),
"pos" => $record->get_number(),
"title" => str_replace(array('[[em]]', '[[/em]]'), array('<em>', '</em>'), $record->get_title($query, $searchEngine))
"title" => str_replace(array('[[em]]', '[[/em]]'), array('<em>', '</em>'), $record->get_title($query, $searchEngine)),
"collection_name" => $record->get_collection()->get_name(),
"collection_logo" => $record->get_collection()->getLogo($record->get_base_id(), $app)
));
}

View File

@@ -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 '), '<span id="current_result_n">' . ($this->number + 1)
. '</span> : '
);

View File

@@ -941,7 +941,13 @@
<div class="PNB" style="right:180px;">
<div id="PREVIEWTITLE" style="height:55px;bottom:auto;" class="PNB">
<div class="PNB10 ui-corner-top" id='PREVIEWTITLEWRAPPER'>
<span id="SPANTITLE" class="PNB10"> </span>
<div style="padding-top: 0px; padding-left: 5px;">
<span id="PREVIEWTITLE_COLLLOGO"> </span>
&nbsp;
<span id="PREVIEWTITLE_COLLNAME"> </span>
&nbsp;
<span id="SPANTITLE"> </span>
</div>
</div>
</div>
<div class="PNB" style="top:55px;">

View File

@@ -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') {