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 @ 1391:8580d1d1150e
History | View | Annotate | Download (335 Bytes)
| 1 |
<%= raw @results.map {|result| {
|
|---|---|
| 2 |
'label' => "#{result.name} <em>#{result.mail.partition('@')[2]}</em>",
|
| 3 |
'value' => result.name,
|
| 4 |
'search_author_class' => result.class.name,
|
| 5 |
'search_author_id' => result.id,
|
| 6 |
'name' => result.name,
|
| 7 |
'institution' => result.institution,
|
| 8 |
'email' => result.mail,
|
| 9 |
}
|
| 10 |
}.to_json %>
|