Skip to content

Commit

Permalink
documents: add search link on the author's name
Browse files Browse the repository at this point in the history
* Closes rero#744.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Jul 26, 2022
1 parent 98d08b7 commit 6f95b2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sonar/modules/documents/templates/documents/record.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ <h4 class="m-0">
<ul class="list-unstyled m-0">
{% for contribution in contributors %}
<li class="creator {{ 'd-none' if loop.index > 3 }}">
{{ contributors_format(contribution) }}
<a href="{{ url_for(
'documents.search',
view=view_code,
q='contribution.agent.preferred_name:' + contribution.agent.preferred_name) }}"
>
{{ contributors_format(contribution) }}
</a>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 6f95b2e

Please # to comment.