Revision 1286:d0d6bbe9f2e0 plugins/redmine_bibliography/app/views
| plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb | ||
|---|---|---|
| 27 | 27 |
<p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") } %></p>
|
| 28 | 28 |
<p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
|
| 29 | 29 |
</p> |
| 30 |
<%= hidden_field_tag(:object_class, '', :name => form_tag_name(f.object_name,:object_class ), :id => form_tag_id( f.object_name, :object_class )) -%>
|
|
| 30 |
<%= hidden_field_tag(:search_author_class, '', :name => form_tag_name(f.object_name,:search_author_class ), :id => form_tag_id( f.object_name, :search_author_class )) -%>
|
|
| 31 | 31 |
|
| 32 |
<%= hidden_field_tag(:search_author_id, '', :name => form_tag_name(f.object_name,:search_author_id ), :id => form_tag_id( f.object_name, :search_author_id )) -%> |
|
| 32 | 33 |
</div> |
| 33 | 34 |
|
| 34 | 35 |
|
| plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb | ||
|---|---|---|
| 1 | 1 |
<%= raw @results.map {|result| {
|
| 2 |
'id' => result.id, |
|
| 3 | 2 |
'label' => "#{result.name} (#{result.mail.partition('@')[2]})",
|
| 4 | 3 |
'value' => result.name, |
| 5 |
'object_class' => result.class.name, |
|
| 4 |
'search_author_class' => result.class.name, |
|
| 5 |
'search_author_id' => result.id, |
|
| 6 | 6 |
'institution' => result.institution, |
| 7 | 7 |
'email' => result.mail, |
| 8 | 8 |
} |
Also available in: Unified diff