Commit 1a4bd7f4 authored by Seemann Benjamin's avatar Seemann Benjamin

Arbeit am speichern der Opening Hours URL

parent 4b7ea847
Pipeline #69537753 passed with stages
in 2 minutes and 7 seconds
......@@ -207,7 +207,6 @@
// const result = isURL(input); https://www.casaferlin.ch/en
if (document.getElementById('openingHoursTime').value === ''
&& url !== '') {
console.log('test');
isURL(url);
}
},
......
......@@ -29,6 +29,7 @@ const initialState = {
},
name: '',
opening_hours: '',
opening_hours_url: '',
phone: '',
email: '',
website: '',
......@@ -193,6 +194,7 @@ export function clearDetails() {
},
name: '',
opening_hours: '',
opening_hours_url: '',
phone: '',
email: '',
website: '',
......
......@@ -7,6 +7,7 @@ function parseDetails(businessPOITags) {
const tags = [
'name',
'opening_hours',
'opening_hours_url',
'phone',
'email',
'website',
......@@ -128,6 +129,9 @@ function createDetailTags(businessPOI) {
if (businessPOI.details.opening_hours.length !== 0) {
text += `<tag k="opening_hours" v="${businessPOI.details.opening_hours}"/>`;
}
if (businessPOI.details.opening_hours_url.length !== 0) {
text += `<tag k="opening_hours:url" v="${businessPOI.details.opening_hours_url}"/>`;
}
if (businessPOI.details.phone.length !== 0) {
text += `<tag k="phone" v="${businessPOI.details.phone}"/>`;
}
......
......@@ -65,6 +65,7 @@ function createNoteFromBusinessPOI(businessPOI) {
category: getBizCategory(businessPOI),
name: extractTag(businessPOI, 'name'),
opening_hours: extractTag(businessPOI, 'opening_hours'),
opening_hours_url: extractTag(businessPOI, 'opening_hours_url'),
phone: extractTag(businessPOI, 'phone'),
email: extractTag(businessPOI, 'email'),
website: extractTag(businessPOI, 'website'),
......
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