Skip to content

Commit

Permalink
BGDIDIC-643: quickview jpgs will be migrated to stac and served from
Browse files Browse the repository at this point in the history
stac as item

update quickview label translation
  • Loading branch information
ltclm committed Jul 21, 2023
1 parent dedb92e commit da124fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chsdi/templates/htmlpopup/lubis_stac.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -164,14 +167,14 @@ else:
% if preview_url:
<tr>
<td class="cell-left">${_('tt_lubis_Quickview')}</td>
<td class="cell-left">${_(tt_lubis_Quickview)}</td>
<td>
<a href="${viewer_url}" target="_blank"><img src="${preview_url}" alt="quickview"></a>
</td>
</tr>
% else:
<tr>
<td class="cell-left">${_('tt_lubis_Quickview')}</td>
<td class="cell-left">${_(tt_lubis_Quickview)}</td>
<td>${_('tt_lubis_noQuickview')}</td>
</tr>
% endif
Expand Down

0 comments on commit da124fb

Please sign in to comment.