To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_bibliography / app / views / publications / autocomplete_for_author.html.erb @ 1424:637ee26ae557
History | View | Annotate | Download (398 Bytes)
| 1 |
<%= raw @results.map { |result|
|
|---|---|
| 2 |
{
|
| 3 |
'label' => result.name,
|
| 4 |
'value' => result.name,
|
| 5 |
'search_author_class' => result.class.name,
|
| 6 |
'search_author_id' => result.id,
|
| 7 |
'name' => result.name,
|
| 8 |
'institution' => result.institution,
|
| 9 |
'email' => result.mail,
|
| 10 |
'authorship_link' => " Keep associated with #{render_authorship_link(result.class.name, result.id)}"
|
| 11 |
}
|
| 12 |
}.to_json %>
|