From: Sarah Hoffmann Date: Tue, 27 Jan 2015 21:22:26 +0000 (+0100) Subject: show class instead of yes in html search output X-Git-Tag: v2.4.0~47 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/fbc5ba13f8a28f8e5fc83675823efbaeea6dcb70 show class instead of yes in html search output --- diff --git a/lib/lib.php b/lib/lib.php index 43807d15..9de5ccc9 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -480,7 +480,7 @@ 'shop:electronics' => array('label'=>'Electronics','frequency'=>96,'icon'=>'',), 'shop:department_store' => array('label'=>'Department Store','frequency'=>86,'icon'=>'',), 'shop:books' => array('label'=>'Books','frequency'=>85,'icon'=>'',), - 'shop:yes' => array('label'=>'Yes','frequency'=>68,'icon'=>'',), + 'shop:yes' => array('label'=>'Shop','frequency'=>68,'icon'=>'',), 'shop:outdoor' => array('label'=>'Outdoor','frequency'=>67,'icon'=>'',), 'shop:mall' => array('label'=>'Mall','frequency'=>63,'icon'=>'',), 'shop:florist' => array('label'=>'Florist','frequency'=>61,'icon'=>'',), @@ -625,7 +625,7 @@ 'historic:roman_road' => array('label'=>'Roman Road','frequency'=>27,'icon'=>'',), 'historic:fort' => array('label'=>'Fort','frequency'=>26,'icon'=>'',), 'railway:subway_entrance' => array('label'=>'Subway Entrance','frequency'=>26,'icon'=>'',), - 'historic:yes' => array('label'=>'Yes','frequency'=>25,'icon'=>'',), + 'historic:yes' => array('label'=>'Historic','frequency'=>25,'icon'=>'',), 'highway:gate' => array('label'=>'Gate','frequency'=>25,'icon'=>'',), 'leisure:fishing' => array('label'=>'Fishing','frequency'=>24,'icon'=>'',), 'historic:museum' => array('label'=>'Museum','frequency'=>24,'icon'=>'',), diff --git a/lib/template/search-html.php b/lib/template/search-html.php index b270e02f..02c8cb4d 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -204,6 +204,8 @@ target="_blank">FAQ echo ' '.$aResult['place_id'].''; if (isset($aResult['label'])) echo ' ('.$aResult['label'].')'; + else if ($aResult['type'] == 'yes') + echo ' ('.ucwords(str_replace('_',' ',$aResult['class'])).')'; else echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')'; echo ' (details)';