X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f05ea577f42c5ad4a62ff25ec62fbb60c550ee26..8201c7f46cbb253fe5f502bc4c398c5133f01bfe:/lib/output.php
diff --git a/lib/output.php b/lib/output.php
index 0a548500..823a6631 100644
--- a/lib/output.php
+++ b/lib/output.php
@@ -1,6 +1,7 @@
'.$aFeature['wikipedia'].'';
}
return '';
}
-function detailsLink($aFeature, $sTitle=false)
+function detailsLink($aFeature, $sTitle = false, $sExtraProperties = false)
{
if (!$aFeature['place_id']) return '';
- return ''.($sTitle?$sTitle:$aFeature['place_id']).'';
+ $sHtml = ''.($sTitle?$sTitle:$aFeature['place_id']).'';
+
+ return $sHtml;
}
+function detailsPermaLink($aFeature, $sRefText = false, $sExtraProperties = false)
+{
+ $sOSMType = formatOSMType($aFeature['osm_type'], false);
+
+ if ($sOSMType) {
+ $sHtml = '';
+
+ if ($sRefText) {
+ $sHtml .= $sRefText.'';
+ } else {
+ $sHtml .= $sOSMType.' '.$aFeature['osm_id'].'';
+ }
+
+ return $sHtml;
+ }
+ return detailsLink($aFeature, $sRefText, $sExtraProperties);
+}