Skip to content

Commit

Permalink
JUG-Ostfalen#57: Die Locations sollten eine POI-UUID besitzen
Browse files Browse the repository at this point in the history
[added] POI-UUIDs in den Locations
[added] Export der POI-UUID in JSON
[added] Export der POI-UUID in .ics
[added] Export der POI-UUID im RSS-Feed
  • Loading branch information
Schakko committed Jul 29, 2019
1 parent 4f64658 commit 49fb280
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,70 +49,85 @@ locations:
street: "Theodor-Heuss-Str. 2"
city: "38122 Braunschweig"
url: "http://www.lineas.de"
poi: "feb8a730-d30c-408f-86a5-49fe5996ef1b"
ckc:
name: "CKC Group"
street: "Am Alten Bahnhof 13"
city: "38122 Braunschweig"
url: "http://www.ckc-group.de/"
poi: "b65ae4d6-0053-46c1-9edd-fb40921dc75c"
cgi:
name: "CGI"
street: "Am Alten Bahnhof 13"
city: "38122 Braunschweig"
url: "http://www.ckc-group.de/"
poi: "b65ae4d6-0053-46c1-9edd-fb40921dc75c"
triology:
name: "TRIOLOGY GmbH"
street: "Brabandtstraße 9 – 10"
city: "38100 Braunschweig"
url: "http://www.triology.de/"
poi: "f92d05ee-a7ee-4707-b745-d57f70a2583b"
cloudogu:
name: "Cloudogu GmbH"
street: "Brabandtstraße 9 – 10"
city: "38100 Braunschweig"
url: "https://cloudogu.com"
poi: "f6452b02-798c-4531-8c75-aafc1d417d44"
onsite:
name: "T-Systems on site services GmbH"
street: "Alessandro-Volta-Straße 11"
city: "38440 Wolfsburg"
url: "https://www.t-systems-onsite.de/"
poi: "456e084e-4b66-4638-acff-2bf843c5e569"
god:
name: "GOD Gesellschaft für Organisation und Datenverarbeitung mbH"
street: "Mittelweg 7"
city: "38106 Braunschweig"
poi: "55af3284-34f2-4b7b-9aa8-809bad1a0ee0"
fme:
name: "fme AG"
street: "Wolfenbütteler Strße 33"
city: "38102 Braunschweig"
poi: "d4b6d9b5-7961-4300-8394-9f6b001a480"
msg:
name: "msg DAVID GmbH"
street: "Mittelweg 7"
city: "38106 Braunschweig"
poi: "6652a02d-2271-4e88-bd36-bcd196af1b3e"
schiller40:
name: "Schiller40 Coworkingspace"
street: "Schillerstr. 40"
city: "38440 Wolfsburg"
url: "http://www.wolfsburg.de/kultur/kulturwerk/schiller40-coworking-space"
poi: "890e8f19-9454-4615-8098-d864374323b1"
neosIT:
name: "NeosIT GmbH"
street: "Schachtweg 1"
city: "38440 Wolfsburg"
url: "https://neos-it.de/"
poi: "7bd6740c-7735-4a4e-89c1-af7b75dcebff"
mlc:
name: "Mobile Life Campus (MLC)"
street: "Hermann-Münch-Straße 1"
city: "38440 Wolfsburg"
poi: "b94a0f35-923b-45bb-8237-b1ed45f96b96"
bredex:
name: "BREDEX GmbH"
street: "Lindentwete 1"
city: "38100 Braunschweig"
poi: "ad7dd140-f595-4ff6-9bc7-edb258c586e1"
quartier:
name: "Quartier Braunschweig"
street: "Bültenweg 89"
city: "38106 Braunschweig"
url: "http://quartier-bs.de/"
poi: "2368ccc4-c1ed-4358-bcae-62f1d616ff14"
wsn:
name: "WSN Technologies AG"
street: "Frankfurter Str. 3A"
city: "38122 Braunschweig"
poi: "69a405ff-ebaa-4f75-8ee2-b8e7e4067275"

#Autoren
authors:
Expand Down
3 changes: 2 additions & 1 deletion _pages/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ <h3>
"@type" : "Place",
"sameAs" : "{{ site.locations[post.location].url }}",
"name" : "{{ site.locations[post.location].name }}",
"address" : "{{ site.locations[post.location].street }}; {{ site.locations[post.location].city }}"
"address" : "{{ site.locations[post.location].street }}; {{ site.locations[post.location].city }}",
"poiUuid": "{% if site.locations[post.location] and site.locations[post.location].poi %}{{ site.locations[post.location].poi }}{% endif %}"
}
{% endif %}
}
Expand Down
1 change: 1 addition & 0 deletions events.ics
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ METHOD:PUBLISH
UID:{{ post.date | date: "%Y%m%d" }}@jug-ostfalen.de
ORGANIZER;CN="JUG Ostfalen":MAILTO:[email protected]
LOCATION:{% if site.locations[post.location] %}{{ site.locations[post.location].name }}; {{ site.locations[post.location].street }}; {{ site.locations[post.location].city }}{% else %}{{ post.location }}{% endif %}
X-POI-UUID:{% if site.locations[post.location] and site.locations[post.location].poi %}{{ site.locations[post.location].poi }}{% endif %}
SUMMARY:{{ post.title }} ({{ post.speaker }})
DESCRIPTION:{{ post.url | prepend: site.url }}
CLASS:PUBLIC
Expand Down
4 changes: 3 additions & 1 deletion feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:poi="http://things.nerdhood.de/ns/poi">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
Expand All @@ -24,6 +25,7 @@ layout: null
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
<poi:uuid>{% if site.locations[post.location] and site.locations[post.location].poi %}{{ site.locations[post.location].poi }}{% endif %}</poi:uuid>
</item>
{% endfor %}
</channel>
Expand Down

0 comments on commit 49fb280

Please sign in to comment.