Revision 1285:22551cc54749
| 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 )) -%> |
|
| 31 |
|
|
| 30 | 32 |
</div> |
| 31 | 33 |
|
| 32 | 34 |
|
| plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb | ||
|---|---|---|
| 2 | 2 |
'id' => result.id, |
| 3 | 3 |
'label' => "#{result.name} (#{result.mail.partition('@')[2]})",
|
| 4 | 4 |
'value' => result.name, |
| 5 |
'type' => result.class.name,
|
|
| 5 |
'object_class' => result.class.name,
|
|
| 6 | 6 |
'institution' => result.institution, |
| 7 | 7 |
'email' => result.mail, |
| 8 | 8 |
} |
| plugins/redmine_bibliography/assets/javascripts/authors.js | ||
|---|---|---|
| 24 | 24 |
$this.closest('div').next().find("input[id$='name_on_paper']").val(ui.item.value);
|
| 25 | 25 |
$this.closest('div').next().find("input[id$='institution']").val(ui.item.institution);
|
| 26 | 26 |
$this.closest('div').next().find("input[id$='email']").val(ui.item.email);
|
| 27 |
$this.closest('div').next().find("input[id$='object_class']").val(ui.item.object_class);
|
|
| 27 | 28 |
} |
| 28 | 29 |
}); |
| 29 | 30 |
}); |
Also available in: Unified diff