Commit 8bfb0412 authored by Sebastian's avatar Sebastian

osm-tags: source -> website

parent 07480be5
...@@ -305,8 +305,8 @@ ...@@ -305,8 +305,8 @@
<strong>Homepage</strong> <strong>Homepage</strong>
</label> </label>
<div class="col"> <div class="col">
<div *ngIf="nodeService.detailView.getOsmTagValue('contact:websit')"> <div *ngIf="nodeService.detailView.getOsmTagValue('website')">
<span class="form-control-plaintext" id="elementKey" >{{nodeService.detailView.getOsmTagValue('contact:websit')}}</span> <span class="form-control-plaintext" id="elementKey" >{{nodeService.detailView.getOsmTagValue('website')}}</span>
</div> </div>
<div *ngIf="!nodeService.detailView.getOsmTagValue('contact:websit')"> <div *ngIf="!nodeService.detailView.getOsmTagValue('contact:websit')">
<span class="form-control-plaintext text-muted" id="elementKey" >Keine Angabe bisher.</span> <span class="form-control-plaintext text-muted" id="elementKey" >Keine Angabe bisher.</span>
......
...@@ -202,6 +202,8 @@ translateTagKey(key:string){ ...@@ -202,6 +202,8 @@ translateTagKey(key:string){
return this.translateAppDataTagKey(key); return this.translateAppDataTagKey(key);
} }
switch(key){ switch(key){
case 'source':{}
case 'website':{}
case 'contact:website':{ case 'contact:website':{
return 'Homepage'; return 'Homepage';
} }
......
...@@ -13,11 +13,12 @@ import { Observable } from 'rxjs'; ...@@ -13,11 +13,12 @@ import { Observable } from 'rxjs';
providedIn: 'root' providedIn: 'root'
}) })
export class OverpassService { export class OverpassService {
private apiURL = "http://overpass-api.de/api/interpreter"; private apiURL = "http://overpass-api.de/api/interpreter";
constructor( constructor(
private httpClient: HttpClient, private httpClient: HttpClient,
private cache: CacheService, private cache: CacheService,
private logger: LogService, private logger: LogService,
...@@ -164,7 +165,7 @@ export class OverpassService { ...@@ -164,7 +165,7 @@ export class OverpassService {
} }
let TagWhiteList = [ let TagWhiteList = [
'name', 'name',
'source', 'website',
'addr:country', 'addr:country',
'addr:street', 'addr:street',
'addr:housenumber', 'addr:housenumber',
......
...@@ -61,7 +61,7 @@ export class EditComponent implements OnInit { ...@@ -61,7 +61,7 @@ export class EditComponent implements OnInit {
addr_postcode:[this.node.getOsmTagValue('addr:postcode')], addr_postcode:[this.node.getOsmTagValue('addr:postcode')],
email:[this.node.getOsmTagValue('email')], email:[this.node.getOsmTagValue('email')],
opening_hours:[this.node.getOsmTagValue('opening_hours')], opening_hours:[this.node.getOsmTagValue('opening_hours')],
src:[this.node.getOsmTagValue('source')], src:[this.node.getOsmTagValue('website')],
start_date:[this.node.getOsmTagValue('start_date')] start_date:[this.node.getOsmTagValue('start_date')]
}), }),
goodplaceForm:this.formBuilder.group({ goodplaceForm:this.formBuilder.group({
...@@ -118,7 +118,7 @@ export class EditComponent implements OnInit { ...@@ -118,7 +118,7 @@ export class EditComponent implements OnInit {
this.node.setOsmTag('addr:city',osmForm.addr_city); this.node.setOsmTag('addr:city',osmForm.addr_city);
this.node.setOsmTag('addr:housenumber',osmForm.addr_housenumber); this.node.setOsmTag('addr:housenumber',osmForm.addr_housenumber);
this.node.setOsmTag('addr:postcode',osmForm.addr_postcode); this.node.setOsmTag('addr:postcode',osmForm.addr_postcode);
this.node.setOsmTag('source',osmForm.src); this.node.setOsmTag('website',osmForm.src);
this.node.setOsmTag('opening_hours',osmForm.opening_hours); this.node.setOsmTag('opening_hours',osmForm.opening_hours);
this.node.setOsmTag('start_date',osmForm.start_date); this.node.setOsmTag('start_date',osmForm.start_date);
this.node.setOsmTag('email',osmForm.email); this.node.setOsmTag('email',osmForm.email);
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<div class="col"> <div class="col">
<input type="text" class="form-control" id="src" <input type="text" class="form-control" id="src"
formControlName="src" formControlName="src"
value="{{node.getOsmTagValue('source')}}" [disabled]="!hasToken()" value="{{node.getOsmTagValue('website')}}" [disabled]="!hasToken()"
placeholder="Keine Angabe bisher."> placeholder="Keine Angabe bisher.">
</div> </div>
<div class="col-auto"> <div class="col-auto">
......
...@@ -34,7 +34,8 @@ hasToken(){ ...@@ -34,7 +34,8 @@ hasToken(){
} }
translateTagKey(key:string){ translateTagKey(key:string){
switch(key){ switch(key){
case 'website':
case 'addr:website':
case 'contact:website':{ case 'contact:website':{
return 'Homepage'; return 'Homepage';
} }
......
...@@ -59,6 +59,8 @@ translateTagKey(key:string){ ...@@ -59,6 +59,8 @@ translateTagKey(key:string){
return this.translateAppDataTagKey(key); return this.translateAppDataTagKey(key);
} }
switch(key){ switch(key){
case 'website':
case 'source':
case 'contact:website':{ case 'contact:website':{
return 'Homepage'; return 'Homepage';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment