mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
add mapBox services into record preview
This commit is contained in:
@@ -234,3 +234,7 @@ embed_bundle:
|
|||||||
document:
|
document:
|
||||||
player: flexpaper
|
player: flexpaper
|
||||||
enable-pdfjs: true
|
enable-pdfjs: true
|
||||||
|
geocoding-providers:
|
||||||
|
-
|
||||||
|
name: 'mapBox'
|
||||||
|
public-key: ''
|
||||||
|
@@ -80,6 +80,12 @@ class RecordController extends Controller
|
|||||||
$train = $this->render('prod/preview/feed_train.html.twig', ['record' => $record]);
|
$train = $this->render('prod/preview/feed_train.html.twig', ['record' => $record]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$recordCaptions = [];
|
||||||
|
foreach ($record->get_caption()->get_fields(null, true) as $field) {
|
||||||
|
// get field's values
|
||||||
|
$recordCaptions[$field->get_name()] = $field->get_serialized_values();
|
||||||
|
}
|
||||||
|
|
||||||
return $this->app->json([
|
return $this->app->json([
|
||||||
"desc" => $this->render('prod/preview/caption.html.twig', [
|
"desc" => $this->render('prod/preview/caption.html.twig', [
|
||||||
'record' => $record,
|
'record' => $record,
|
||||||
@@ -87,6 +93,7 @@ class RecordController extends Controller
|
|||||||
'searchEngine' => $searchEngine,
|
'searchEngine' => $searchEngine,
|
||||||
'searchOptions' => $options,
|
'searchOptions' => $options,
|
||||||
]),
|
]),
|
||||||
|
"recordCaptions"=> $recordCaptions,
|
||||||
"html_preview" => $this->render('common/preview.html.twig', [
|
"html_preview" => $this->render('common/preview.html.twig', [
|
||||||
'record' => $record
|
'record' => $record
|
||||||
]),
|
]),
|
||||||
|
@@ -123,6 +123,7 @@ class RootController extends Controller
|
|||||||
'feeds' => $feeds,
|
'feeds' => $feeds,
|
||||||
'aggregate' => $aggregate,
|
'aggregate' => $aggregate,
|
||||||
'GV_google_api' => $conf->get(['registry', 'webservices', 'google-charts-enabled']),
|
'GV_google_api' => $conf->get(['registry', 'webservices', 'google-charts-enabled']),
|
||||||
|
'geocodingProviders' => json_encode($conf->get(['geocoding-providers'])),
|
||||||
'search_status' => \databox_status::getSearchStatus($this->app),
|
'search_status' => \databox_status::getSearchStatus($this->app),
|
||||||
'thesau_js_list' => $thjslist,
|
'thesau_js_list' => $thjslist,
|
||||||
'thesau_json_sbas' => json_encode($sbas),
|
'thesau_json_sbas' => json_encode($sbas),
|
||||||
|
@@ -211,3 +211,7 @@ embed_bundle:
|
|||||||
document:
|
document:
|
||||||
player: flexpaper
|
player: flexpaper
|
||||||
enable-pdfjs: true
|
enable-pdfjs: true
|
||||||
|
geocoding-providers:
|
||||||
|
-
|
||||||
|
name: 'mapBox'
|
||||||
|
public-key: ''
|
||||||
|
@@ -33,6 +33,6 @@
|
|||||||
"postinstall": "./node_modules/.bin/gulp install;"
|
"postinstall": "./node_modules/.bin/gulp install;"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"phraseanet-production-client": "~0.13.0"
|
"phraseanet-production-client": "~0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,10 +17,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#PREVIEWBOX #PREVIEWTITLE_COLLNAME {
|
#PREVIEWBOX #PREVIEWTITLE_COLLNAME {
|
||||||
display:none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.PREVIEW_PIC,.PREVIEW_HD {
|
.PREVIEW_PIC, .PREVIEW_HD {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,6 +37,10 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#PREVIEWIMGDESC.PNB10 {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#PREVIEWIMGDESCINNER span.fieldName {
|
#PREVIEWIMGDESCINNER span.fieldName {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -129,8 +133,7 @@
|
|||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PREVIEWCURRENTCONT::-webkit-scrollbar-track
|
#PREVIEWCURRENTCONT::-webkit-scrollbar-track {
|
||||||
{
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background-color: #262626;
|
background-color: #262626;
|
||||||
}
|
}
|
||||||
@@ -146,7 +149,6 @@
|
|||||||
background-color: #595959;
|
background-color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#PREVIEWCURRENTCONT ul {
|
#PREVIEWCURRENTCONT ul {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@@ -194,7 +196,6 @@
|
|||||||
top: auto;
|
top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#PREVIEWTOOL img, #PREVIEWTOOL span {
|
#PREVIEWTOOL img, #PREVIEWTOOL span {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
@@ -206,7 +207,7 @@
|
|||||||
z-index: 97;
|
z-index: 97;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prevTrainCurrent .doc_infos img,.diapo .doc_infos img {
|
.prevTrainCurrent .doc_infos img, .diapo .doc_infos img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,9 +215,17 @@
|
|||||||
background-color: darken($darkerBackgroundColor, 10);
|
background-color: darken($darkerBackgroundColor, 10);
|
||||||
color: $darkerTextColor;
|
color: $darkerTextColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PREVIEWIMGCONT {
|
#PREVIEWIMGCONT {
|
||||||
.documentTips {
|
.documentTips {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#PREVIEWRIGHT {
|
||||||
|
top: 7px;
|
||||||
|
left: 60%;
|
||||||
|
overflow: hidden;
|
||||||
|
bottom: 10px;
|
||||||
|
}
|
||||||
|
@@ -105,6 +105,7 @@
|
|||||||
},
|
},
|
||||||
initialState: "{{ initialAppState }}",
|
initialState: "{{ initialAppState }}",
|
||||||
geonameServerUrl: '{{ app['geonames.server-uri'] }}',
|
geonameServerUrl: '{{ app['geonames.server-uri'] }}',
|
||||||
|
geocodingProviders: {{ geocodingProviders|raw }},
|
||||||
thesaurusConfig: {
|
thesaurusConfig: {
|
||||||
replaceMessage: '{{ 'prod::thesaurusTab:dlg:Remplacement du candidat "%(from)s" par "%(to)s"' | trans }}',
|
replaceMessage: '{{ 'prod::thesaurusTab:dlg:Remplacement du candidat "%(from)s" par "%(to)s"' | trans }}',
|
||||||
replaceInProgressMsg: '{{ 'prod::thesaurusTab:dlg:Remplacement en cours.' | trans }}',
|
replaceInProgressMsg: '{{ 'prod::thesaurusTab:dlg:Remplacement en cours.' | trans }}',
|
||||||
@@ -702,7 +703,7 @@
|
|||||||
<div class="gui_vsplitter gui_vsplitter2" style="left:60%;">
|
<div class="gui_vsplitter gui_vsplitter2" style="left:60%;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="PREVIEWRIGHT" class="preview_col PNB" style="top:7px;left:60%;overflow:hidden;">
|
<div id="PREVIEWRIGHT" class="preview_col PNB">
|
||||||
<div id="PREVIEWIMGDESC" class="PNB10">
|
<div id="PREVIEWIMGDESC" class="PNB10">
|
||||||
<ul class="PNB" style="height:30px;bottom:auto;">
|
<ul class="PNB" style="height:30px;bottom:auto;">
|
||||||
<li><a href="#PREVIEWIMGDESCINNER-BOX">{{ 'preview:: Description' | trans }}</a></li>
|
<li><a href="#PREVIEWIMGDESCINNER-BOX">{{ 'preview:: Description' | trans }}</a></li>
|
||||||
|
Reference in New Issue
Block a user