mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
#PHRAS-382 #time 3h
This commit is contained in:
@@ -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)
|
||||
));
|
||||
}
|
||||
|
||||
|
@@ -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> : '
|
||||
);
|
||||
|
@@ -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>
|
||||
|
||||
<span id="PREVIEWTITLE_COLLNAME"> </span>
|
||||
|
||||
<span id="SPANTITLE"> </span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="PNB" style="top:55px;">
|
||||
|
@@ -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') {
|
||||
|
Reference in New Issue
Block a user