From e359595d0f891599387600d5106c274a2bd4ad38 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Mon, 25 May 2020 16:28:22 +0200 Subject: [PATCH] Add advisor and assistant names to thesis detail view --- app/views/crawlers/theses_crawler/show_detail.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/crawlers/theses_crawler/show_detail.html.erb b/app/views/crawlers/theses_crawler/show_detail.html.erb index 6725ab5..24f1a83 100644 --- a/app/views/crawlers/theses_crawler/show_detail.html.erb +++ b/app/views/crawlers/theses_crawler/show_detail.html.erb @@ -2,4 +2,12 @@

<%= @thesis['title']['de'] %>

<%= @thesis['thesisType'] %>, <%= @thesis['instituteCode'] %> <%= @thesis['instituteName']['de'] %>
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @thesis['title']['de'] %> + <% if @thesis['advisor'] != nil %> +

Advisor

+

<%= @thesis['advisor']['familyName'] %> <%= @thesis['advisor']['givenName'] %>

+ <% end %> + <% if @thesis['assistant'] != nil %> +

Assistant

+

<%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %>

+ <% end %> <% end %>