<%= @person.name%>

<%= @person.title_en %>

(<%= @person.title_no %>)


<% @person.info.each do |key,value| %>

<%=key%><%= unless value.strip.empty? then ":" end%> <%=value%>

<%end%>
<% @person.items.each do |item| %> <% if item.is_a?(SimpleItem) %>
<%= if item.image then "" end %>

<%= if item.link then "#{item.title}" else item.title end%>

<%= item.description %>

<% else %>

<%= item %>

<% end %> <% end %>
<% if @slider then %>
<% @slider.items.each do |item| %> <% if item.thumbnails[0] then %> <% end %> <% end %>
<% end %> <% @topics.each do |topic| %>

<%= topic.title%> <% if topic.extras.any? then %> <%= "[" %> <% first = true %> <% topic.extras.each do |extra| %> <% if extra.is_a?(SimpleItem) then %> <% if not first then %> <%= "," %> <% else %> <% first = false %> <% end %> <% if extra.link then %> <%= extra.title %> <% else %> <%= extra.title %> <% end %> <% else %> <%= item %> <% end %> <% end %> <%= "]" %> <% end %>

<% alternate = 0 %> <% topic.items.each do |item| %> <% althtml = unless alternate % 2 == 0 then "alternate" else "" end %> <% if item.is_a?(BibTeX)%>
<%= if item.thumbnails[0] then "" end %>

<%= item.properties['title'] %>

<%= item.authors %>

<% elsif item.is_a?(SimpleItem) %>
<%= if item.image then "" end %>

<%= if item.link then "#{item.title}" else item.title end%>

<%= item.description %>

<% else %>

<%= item %>

<% end %> <% alternate = alternate + 1 %> <% end %>
<% end %> <% @publications.each do |publications| %>

Publications <%= publications.title%> <%= "[" %> <% first = true %> <% @publications.each do |others| %> <% if not first then %> <%= "," %> <% else %> <% first = false %> <% end %> <% if others.title != publications.title then %> <%= others.title %> <% else %> <%= others.title %> <% end %> <% end %> <%= "]" %>

<% alternate = 0 %> <% publications.items.each do |item| %> <% althtml = unless alternate % 2 == 0 then "alternate" else "" end %>
<%= if item.thumbnails[0] then "" end %>

<%= item.properties['title'] %>

<%= item.authors.gsub(/\s+/, " ").squeeze(" ").gsub(@person.name,'' + @person.name + '') %>

<%= if item.properties['journal'] then "#{item.properties['journal']}" end %><%= if item.properties['booktitle'] then "In #{item.properties['booktitle']}" end %><%= if item.properties['howpublished'] then "#{item.properties['howpublished']}" end %><%= if item.type.downcase == 'mastersthesis' then "Master's Thesis" end %><%= if item.type.downcase == 'phdthesis' then "PhD Thesis" end %><%= if item.properties['school'] then ", #{item.properties['school']}" end %><%= if item.properties['volume'] then ", vol. #{item.properties['volume']}" end %><%= if item.properties['number'] then ", no. #{item.properties['number']}" end %><%= if item.properties['pages'] then ", pp. #{item.properties['pages'].gsub(/--/, '–')}" end %><%= if item.properties['year'] then ", #{item.properties['year']}" end %><%= "." %><%= if item.properties['note'] then " #{item.properties['note']}." end %><%= if item.properties['doi'] then "

DOI: #{item.properties['doi']}" end %>

<% alternate = alternate + 1 %> <% end %>
<% end %>