Skip to content

Commit 1e4086e

Browse files
committed
Updates AGS log link to use API version path
Updates the AGS graphical log links in the popup content to utilize the dynamically generated API version path. This ensures that the links correctly point to the appropriate API endpoint for viewing and downloading the graphical logs, regardless of the deployed API version.
1 parent 85f4b9a commit 1e4086e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/static/js/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ agsMap.setupMap=function(){
182182
"<b>Project Engineer: </b>" + properties.proj_eng + "<br>" +
183183
"<b>Project Contractor: </b>" + properties.proj_cont + "<br>" +
184184
"<b>Original LOCA ID: </b>" + properties.loca_id + "<br>" +
185-
"<b>AGS Graphical Log: </b>" + "<a href=" + "https://agsapi.bgs.ac.uk/ags_log/?bgs_loca_id=" + properties.bgs_loca_id + " target=" + "_blank" + ">View</a> / " +"<a href=" + "https://agsapi.bgs.ac.uk/ags_log/?bgs_loca_id=" + properties.bgs_loca_id + "&response_type=attachment" + ">Download</a>" + "<br>" +
185+
"<b>AGS Graphical Log: </b>" + "<a href=" + api_version_path + "/ags_log/?bgs_loca_id=" + properties.bgs_loca_id + " target=" + "_blank" + ">View</a> / " +"<a href=" + api_version_path + "/ags_log/?bgs_loca_id=" + properties.bgs_loca_id + "&response_type=attachment" + ">Download</a>" + "<br>" +
186186
"<b>AGS Data (NGDC Download Service): </b>" + "<a href=" + api_version_path + "/ags_export/?bgs_loca_id=" + properties.bgs_loca_id + " target=" + "_blank" + ">Download</a>" + "<br>" +
187187
"<b>AGS Submission Record (raw data): </b>" + "<a href=" + properties.dad_item_url + " target=" + "_blank" + ">View</a>" + "<br>";
188188
layer.bindPopup(popupContent);

0 commit comments

Comments
 (0)