Revision 1394:0f918e37e1d6 plugins/redmine_bibliography/app/views

View differences:

plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb
1 1
<div id="authors" class="fields">
2
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" >
3
    <p>
4
      <%= f.text_field :search_name, :size => 25, :class => "author_search" %>
2
  <div class="author_edit" id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
3

  
4
    <p><%= f.text_field :name_on_paper, :class => "author_name_on_paper" -%></p>
5
    <p><%= f.text_field :institution -%></p>
6
    <p><%= f.text_field :email -%></p>
7

  
8
    <p class="author_associated">
9
      <%= f.check_box :search_author_tie, :style => "float:left;" -%>
10
      <span class="author_associated_name"></span>
5 11
    </p>
6 12

  
7
    <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p>
8

  
9
    <p class="author_identify">
10
      <label class='inline'><%= radio_button_tag(:identify_author, "yes", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_yes )) %> <%= l(:identify_author_yes) %> </label><br />
11

  
12
      <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections )) %> <%= l(:identify_author_correct) %> </label><br />
13

  
14
      <label class='inline'><%= radio_button_tag(:identify_author, "no", true, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_no )) %> <%= l(:identify_author_no) %> </label><br />
15
    </p>
16
  </div>
17

  
18
  <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
19
    <p><%= f.text_field :name_on_paper -%></p>
20
    <p class="description"><%= h l("text_author_name_on_paper") -%></p>
21

  
22
    <p><%= f.text_field :institution -%></p>
23
    <p class="description"><%= h l("text_author_institution") %></p>
24

  
25
    <p><%= f.text_field :email -%></p>
26
    <p class="description"><%= h l("text_author_email") %></p>
27

  
28
    <%= 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 )) -%>
29
    <%= 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 )) -%>
13
    <%= f.text_field :search_author_class -%>
14
    <%= f.text_field :search_author_id -%>
30 15
  </div>
31 16

  
32 17
  <div>
......
38 23
      <%= link_to_remove_fields l("remove_author"), f %>
39 24
    </p>
40 25
  </div>
41
</div>
42

  
26
</div>
plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb
1
<%= raw @results.map {|result| {
1
<%= raw @results.map { |result|
2
    {
2 3
    'label' => result.name,
3 4
    'value' => result.name,
4 5
    'search_author_class' => result.class.name,
5 6
    'search_author_id' => result.id,
6 7
    'name' => result.name,
7 8
    'institution' => result.institution,
8
    'email' => result.mail,
9
    'email' => result.mail
9 10
    }
10 11
}.to_json %>

Also available in: Unified diff