Generate event data from metadata

This commit is contained in:
Stefan Schlott 2013-08-25 11:10:39 +02:00
parent 73ece643ca
commit 712bf61da2
2 changed files with 32 additions and 18 deletions

View file

@ -115,9 +115,7 @@ ul.horizontal {
div.commaseparated {
clear: both;
}
ul.commaseparated {
ul {
display: inline;
list-style-type: none;
margin: 0;
@ -131,4 +129,5 @@ ul.commaseparated {
content: "";
}
}
}

View file

@ -10,7 +10,7 @@
<br />
<div class="commaseparated">
<strong>Referent:</strong>
<ul class="commaseparated">
<ul>
<% @item[:speakers].each do |speaker| %>
<li itemprop="performer" itemscope itemtype="http://schema.org/Person">
<span itemprop="name"><%= speaker[:name] %></span><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %>
@ -18,10 +18,25 @@
<% end %>
</ul>
</div>
<div class="commaseparated">
<strong>Ort:</strong>
<span itemprop="location" itemscope itemtype="http://schema.org/Location">
<span itemprop="name">Stadtbibliothek am Mailänder Platz</span>, Max-Bense-Forum (UG)
<ul itemprop="location" itemscope itemtype="http://schema.org/Location">
<li itemprop="name"><% if item[:location][:url] %><a itemprop="url" href="<%= item[:location][:url] %>"><%= item[:location][:name] %></a><% else %><%= item[:location][:name] %><% end %>
<% if item[:location][:details] %><li><%= item[:location][:details] %><% end %>
<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<% if item[:location][:strasse] %><li itemprop="streetAddress"><%= item[:location][:strasse] %><% end %>
<% if item[:location][:ort] %><li><span itemprop="postalCode"><%= item[:location][:plz] %></span> <span itemProp="addressLocality"><%= item[:location][:ort] %></span><% end %>
</span>
<% if item[:location][:lon] %>
<li>
<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
N<span itemprop="latitude"><%= item[:location][:lat] %></span>
E<span itemprop="longitude"><%= item[:location][:lon] %></span>
</span>
(<a itemprop="map" href="http://www.openstreetmap.org/?mlat=<%= item[:location][:lat] %>&mlon=<%= item[:location][:lon] %>&zoom=18#map=16/<%= item[:location][:lat] %>/<%= item[:location][:lon] %>">Karte</a>)
<% end %>
</ul>
</div>
</header>
<section itemprop="description">
<%= yield %>