Skip to content

Commit

Permalink
publications on person list page
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Duggan committed Jul 24, 2015
1 parent 9088c9a commit 3a1dbe1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Tuba/files/templates/person/objects.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<th>Name</th>
<th>ORCID</th>
<th>Organizations</th>
<th>Publications</th>
</tr>
% for my $o (@$objects) {
<tr>
Expand All @@ -32,7 +33,11 @@
</td>
<td>
% my %seen;
% my %publications;
% for my $contributor (@{ $o->contributors }) {
% for ($contributor->publications) {
% $publications{$_->id} = $_;
% }
% if (my $org = $contributor->organization) {
% next if $seen{$org->{identifier}}++;
<span class='btn squeezevert'>
Expand All @@ -41,6 +46,11 @@
% }
% }
</td>
<td>
% for my $pub (values %publications) {
%= obj_link($pub->to_object, class => "btn squeezevert")
% }
</td>
</tr>
% }
</table>
Expand Down

0 comments on commit 3a1dbe1

Please sign in to comment.