mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
PHRAS-851 - add databox name, collection name and logo to record title in preview
This commit is contained in:
@@ -106,6 +106,7 @@ class RecordController extends Controller
|
||||
]),
|
||||
"pos" => $record->getNumber(),
|
||||
"title" => str_replace(array('[[em]]', '[[/em]]'), array('<em>', '</em>'), $record->get_title($query, $searchEngine)),
|
||||
"databox_name" => $record->getDatabox()->get_dbname(),
|
||||
"collection_name" => $record->getCollection()->get_name(),
|
||||
"collection_logo" => $record->getCollection()->getLogo($record->getBaseId(), $this->app),
|
||||
]);
|
||||
|
@@ -258,7 +258,7 @@ class record_preview extends record_adapter
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
$this->title = collection::getLogo($this->getBaseId(), $this->app) . ' ';
|
||||
$this->title = '';
|
||||
|
||||
switch ($this->env) {
|
||||
|
||||
|
@@ -180,7 +180,7 @@ function openPreview(event, env, pos, contId, reload) {
|
||||
|
||||
$('#SPANTITLE').empty().append(data.title);
|
||||
$("#PREVIEWTITLE_COLLLOGO").empty().append(data.collection_logo);
|
||||
$("#PREVIEWTITLE_COLLNAME").empty().append(data.collection_name);
|
||||
$("#PREVIEWTITLE_COLLNAME").empty().append(data.databox_name + ' / ' + data.collection_name);
|
||||
|
||||
setPreview();
|
||||
|
||||
|
@@ -16,8 +16,11 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#PREVIEWBOX #PREVIEWTITLE_COLLNAME {
|
||||
display:none;
|
||||
#PREVIEWBOX #PREVIEWTITLE_COLLLOGO {
|
||||
img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.PREVIEW_PIC,.PREVIEW_HD {
|
||||
|
Reference in New Issue
Block a user