File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
- < dt > Citation</ dt >
1
+ < dt > <%= fa_icon ( 'book-open' ) %> Citation</ dt >
2
2
< dd > <%= publication_full_citation ( publication ) %> </ dd >
3
3
4
4
<% if current_contributor? || !publication . names . empty? %>
5
5
< 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 >
7
8
</ dt >
8
9
< dd >
9
10
<% publication . publication_names . each do |publication_name | %>
30
31
<% end %>
31
32
32
33
<% unless publication . subjects . empty? %>
33
- < dt > Subjects</ dt >
34
+ < dt > <%= fa_icon ( 'tags' ) %> Subjects</ dt >
34
35
< dd >
35
36
<% publication . subjects . each do |subject | %>
36
37
<%= link_to (
42
43
<% end %>
43
44
44
45
<% if publication . abstract %>
45
- < dt > Abstract</ dt >
46
+ < dt > <%= fa_icon ( 'file-alt' ) %> Abstract</ dt >
46
47
< dd class ='text-sm text-muted '> <%= publication . clean_abstract %> </ dd >
47
48
<% end %>
48
49
Original file line number Diff line number Diff line change 6
6
7
7
< dl class ='main-section '>
8
8
<%= 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 >
10
13
< 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 %> )
20
20
<% end %>
21
- </ ul >
21
+ <% end % >
22
22
</ dd >
23
- < dt > Publication date</ dt >
23
+ < dt > <%= fa_icon ( 'calendar-day' ) %> Publication date</ dt >
24
24
< dd > <%= @publication . journal_date %> </ dd >
25
- < dt > DOI</ dt >
25
+ < dt > <%= fa_icon ( 'directions' ) %> DOI</ dt >
26
26
< dd >
27
27
<%= link_to ( @publication . url , target : '_blank' ) do %>
28
28
<%= @publication . doi %>
You can’t perform that action at this time.
0 commit comments