File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- < dt > Citation</ dt >
1+ < dt > <%= fa_icon ( 'book-open' ) %> Citation</ dt >
22< dd > <%= publication_full_citation ( publication ) %> </ dd >
33
44<% if current_contributor? || !publication . names . empty? %>
55 < dt >
6- Names < span class ="text-muted "> (<%= publication . names . count %> )</ span >
6+ <%= fa_icon ( 'list-ul' ) %> Names
7+ < span class ="text-muted "> (<%= publication . names . count %> )</ span >
78 </ dt >
89 < dd >
910 <% publication . publication_names . each do |publication_name | %>
3031<% end %>
3132
3233<% unless publication . subjects . empty? %>
33- < dt > Subjects</ dt >
34+ < dt > <%= fa_icon ( 'tags' ) %> Subjects</ dt >
3435 < dd >
3536 <% publication . subjects . each do |subject | %>
3637 <%= link_to (
4243<% end %>
4344
4445<% if publication . abstract %>
45- < dt > Abstract</ dt >
46+ < dt > <%= fa_icon ( 'file-alt' ) %> Abstract</ dt >
4647 < dd class ='text-sm text-muted '> <%= publication . clean_abstract %> </ dd >
4748<% end %>
4849
Original file line number Diff line number Diff line change 66
77< dl class ='main-section '>
88 <%= render partial : 'basic_info' , locals : { publication : @publication } %>
9- < dt > Authors</ dt >
9+ < dt >
10+ <%= fa_icon ( 'user-friends' ) %>
11+ <%= @publication . publication_authors . size == 1 ? 'Author' : 'Authors' %>
12+ </ dt >
1013 < dd >
11- < ul >
12- <% @publication . publication_authors . each do |publication_author | %>
13- <% author = publication_author . author %>
14- < li >
15- <%= link_to author . full_name , author %>
16- <% if publication_author . sequence %>
17- (<%= publication_author . sequence %> )
18- <% end %>
19- </ li >
14+ <% @publication . publication_authors . each_with_key do |p_author , k | %>
15+ <% author = p_author . author %>
16+ <%= '; ' if k > 0 %>
17+ <%= link_to author . full_name , author %>
18+ <% if p_author . sequence %>
19+ (<%= p_author . sequence %> )
2020 <% end %>
21- </ ul >
21+ <% end % >
2222 </ dd >
23- < dt > Publication date</ dt >
23+ < dt > <%= fa_icon ( 'calendar-day' ) %> Publication date</ dt >
2424 < dd > <%= @publication . journal_date %> </ dd >
25- < dt > DOI</ dt >
25+ < dt > <%= fa_icon ( 'directions' ) %> DOI</ dt >
2626 < dd >
2727 <%= link_to ( @publication . url , target : '_blank' ) do %>
2828 <%= @publication . doi %>
You can’t perform that action at this time.
0 commit comments