From da124fb0d54ad18a54f35209cd5212b357a0c515 Mon Sep 17 00:00:00 2001 From: Marcel Clausen Date: Fri, 21 Jul 2023 11:28:12 +0200 Subject: [PATCH] BGDIDIC-643: quickview jpgs will be migrated to stac and served from stac as item update quickview label translation --- chsdi/templates/htmlpopup/lubis_stac.mako | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chsdi/templates/htmlpopup/lubis_stac.mako b/chsdi/templates/htmlpopup/lubis_stac.mako index c9922cc27f..597a283432 100644 --- a/chsdi/templates/htmlpopup/lubis_stac.mako +++ b/chsdi/templates/htmlpopup/lubis_stac.mako @@ -57,6 +57,7 @@ aerialimages_data_host = request.registry.settings['aerialimages_data_host'] tileUrlBasePath = aerialimages_data_host + '/tiles' preview_url = determinePreviewUrl(tileUrlBasePath, c['featureId']) +tt_lubis_Quickview='tt_lubis_Quickview' # new feature ids start with: lubis-luftbilder # simply create a link to the stac browser @@ -68,8 +69,10 @@ if c['featureId'].startswith('lubis-luftbilder'): aerialimages_url=f"https://sys-data.int.bgdi.ch/{c['layerBodId']}/{c['featureId']}/{c['attributes']['filename']}" meta_csv_url=f"https://sys-data.int.bgdi.ch/{c['layerBodId']}/{c['featureId']}/{c['featureId']}.csv" orthophoto_url=f"https://sys-data.int.bgdi.ch/{c['layerBodId']}/{c['featureId']}/{c['attributes']['orthofilename']}" + preview_url=f"https://sys-data.int.bgdi.ch/{c['layerBodId']}/{c['featureId']}/{c['featureId']}.jpg" viewer_url=aerialimages_url + tt_lubis_Quickview='tt_lubis_Quickview_stac' # legacy: old ebkeys with fullresviewer in aerialimages bucket # this part can be removed when the migration of the aerialimages bucket to stac/data.geo.admin.ch is finished @@ -164,14 +167,14 @@ else: % if preview_url: - ${_('tt_lubis_Quickview')} + ${_(tt_lubis_Quickview)} quickview % else: - ${_('tt_lubis_Quickview')} + ${_(tt_lubis_Quickview)} ${_('tt_lubis_noQuickview')} % endif