Revision 1060:70fa02f56de7 vendor
| vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb | ||
|---|---|---|
| 1 |
<%= f.error_messages %>
|
|
| 1 |
<%= f.error_messages %> |
|
| 2 | 2 |
|
| 3 | 3 |
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3> |
| 4 | 4 |
|
| 5 |
<div class="splitcontentleft">
|
|
| 5 |
<div class="splitcontentleft"> |
|
| 6 | 6 |
<h3><%= l(:label_publication_other_details) %></h3> |
| 7 | 7 |
<div class="box tabular"> |
| 8 | 8 |
<% f.fields_for :bibtex_entry do |builder| -%> |
| ... | ... | |
| 14 | 14 |
<br /> |
| 15 | 15 |
<em><%= l(:text_external_url) %></em> |
| 16 | 16 |
</p> |
| 17 |
<p> |
|
| 18 |
<%= f.text_field :doi, :size => 70 %> |
|
| 19 |
<br /> |
|
| 20 |
<em><%= l(:text_doi) %></em> |
|
| 21 |
</p> |
|
| 17 | 22 |
|
| 18 | 23 |
</div> |
| 19 | 24 |
</div> |
| 20 | 25 |
|
| 21 | 26 |
<div class="splitcontentright"> |
| 22 |
<h3><%= l(:authors) %></h3>
|
|
| 27 |
<h3><%= l(:authors) %></h3> |
|
| 23 | 28 |
<div class="box tabular"> |
| 24 | 29 |
<% f.fields_for :authorships do |builder| -%> |
| 25 | 30 |
<%= render "authorship_fields", :f => builder %> |
| vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb | ||
|---|---|---|
| 3 | 3 |
<div class="box"> |
| 4 | 4 |
<h3>Publication Info</h3> |
| 5 | 5 |
<%= show_cite_proc_entry(@publication)%> |
| 6 |
|
|
| 6 |
|
|
| 7 | 7 |
<h3>Bibtex Format</h3> |
| 8 | 8 |
<%=h print_bibtex_entry(@publication) %> |
| 9 | 9 |
</div> |
| ... | ... | |
| 14 | 14 |
<ul id="authorships"> |
| 15 | 15 |
<% for authorship in @publication.authorships.find(:all, :order => :auth_order) %> |
| 16 | 16 |
<% content_tag_for :li, authorship do %> |
| 17 |
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
|
|
| 17 |
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%> |
|
| 18 | 18 |
<span class="handle">[drag to reorder]</span> |
| 19 | 19 |
<%- end -%> |
| 20 | 20 |
<%= link_to_authorship authorship %> <em><%= h authorship.institution %></em> <br /> |
| ... | ... | |
| 30 | 30 |
<%= show_bibtex_fields(@publication.bibtex_entry) %> |
| 31 | 31 |
<%- end -%> |
| 32 | 32 |
|
| 33 |
<% unless @publication.external_url.blank? %> |
|
| 34 |
<h4> |
|
| 35 |
<%= l(:field_external_url) %> |
|
| 36 |
</h4> |
|
| 33 |
<%- unless @publication.external_url.blank? -%> |
|
| 37 | 34 |
<p> |
| 38 |
<%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %>
|
|
| 35 |
<b><%= l(:field_external_url) %>:</b> <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} -%>
|
|
| 36 |
</p> |
|
| 37 |
<%- end -%> |
|
| 38 |
|
|
| 39 |
|
|
| 40 |
<% unless @publication.doi.blank? %> |
|
| 41 |
<p> |
|
| 42 |
<b><%= l(:field_doi)-%>:</b> <%= link_to h(@publication.doi), "http://dx.doi.org/#{@publication.doi}", {:target => "_blank"} -%>
|
|
| 39 | 43 |
</p> |
| 40 | 44 |
<% end %> |
| 41 | 45 |
|
| 42 | 46 |
<br / > |
| 43 |
<% if User.current.allowed_to?(:add_publication, @project) %>
|
|
| 47 |
<% if User.current.allowed_to?(:add_publication, @project) %> |
|
| 44 | 48 |
<%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
|
| 45 | 49 |
<%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
|
| 46 | 50 |
:confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> | |
| ... | ... | |
| 49 | 53 |
</div> |
| 50 | 54 |
|
| 51 | 55 |
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %> |
| 52 |
|
|
| 56 |
|
|
| 53 | 57 |
<% content_for :sidebar do %> |
| 54 | 58 |
<h3><%=l(:label_publication_project_index)%></h3> |
| 55 | 59 |
|
| 56 | 60 |
<p id="list_projects"> |
| 57 | 61 |
<%= render :partial => 'list_projects' %> |
| 58 | 62 |
</p> |
| 59 |
|
|
| 63 |
|
|
| 60 | 64 |
<%- if User.current.allowed_to?(:edit_publication, @project) -%> |
| 61 |
<%= render :partial => 'add_project_form' %>
|
|
| 65 |
<%= render :partial => 'add_project_form' %> |
|
| 62 | 66 |
<%- end -%> |
| 63 | 67 |
<% end %> |
| vendor/plugins/redmine_bibliography/config/locales/en.yml | ||
|---|---|---|
| 12 | 12 |
label_my_publications_box: "My Publications" |
| 13 | 13 |
view_all_publications: "View All Project's Publications" |
| 14 | 14 |
publications: Publications |
| 15 |
|
|
| 16 |
|
|
| 15 |
|
|
| 17 | 16 |
identify_author_question: Is the right person selected above? |
| 18 | 17 |
identify_author_yes: "Yes" |
| 19 | 18 |
identify_author_correct: "Yes, but I need to correct some details below" |
| ... | ... | |
| 25 | 24 |
label_all_publications_for_project: Publications associated with %{project}
|
| 26 | 25 |
label_authors_show: "Authorships associated with this author" |
| 27 | 26 |
label_authors_index: "List of authors" |
| 28 |
|
|
| 27 |
|
|
| 29 | 28 |
field_authorship_publication_title: "Publication" |
| 30 | 29 |
field_authorship_name: "Name on Paper" |
| 31 | 30 |
field_authorship_email: "Email" |
| 32 | 31 |
field_authorship_institution: "Institution" |
| 33 |
|
|
| 32 |
|
|
| 34 | 33 |
field_external_url: "External URL" |
| 34 |
field_doi: "DOI" |
|
| 35 | 35 |
field_publication_title: Title |
| 36 | 36 |
field_publication_authors: Authors |
| 37 | 37 |
field_publication_projects: "Associated projects" |
| 38 | 38 |
field_author_name: Author |
| 39 | 39 |
field_author_user: User Name |
| 40 | 40 |
field_author_username: "Associated user" |
| 41 |
field_author_publications: "Publications by this Author"
|
|
| 41 |
field_author_publications: "Publications by this Author" |
|
| 42 | 42 |
field_identify_author_yes: "Yes" |
| 43 | 43 |
field_identify_author_correct: "Corrections" |
| 44 | 44 |
field_identify_author_no: "No" |
| 45 |
|
|
| 45 |
|
|
| 46 | 46 |
label_author_is_me: "(I am this author)" |
| 47 | 47 |
label_add_me_as_author: "Add me as an author" |
| 48 | 48 |
label_add_an_author: "Add an author" |
| ... | ... | |
| 54 | 54 |
label_author_information: "Author Information" |
| 55 | 55 |
|
| 56 | 56 |
remove_author: "Remove this author" |
| 57 |
|
|
| 57 |
|
|
| 58 | 58 |
label_publication_plural: "Publications" |
| 59 | 59 |
label_related_publication_plural: "Related publications" |
| 60 | 60 |
label_publication_new: "Create New Publication" |
| ... | ... | |
| 67 | 67 |
label_publication_project_index: "Projects associated with this publication" |
| 68 | 68 |
label_publication_index: "View all publications" |
| 69 | 69 |
label_publication_other_details: "Details" |
| 70 |
|
|
| 70 |
|
|
| 71 | 71 |
text_external_url: "Link to the publication or to an external page about it." |
| 72 |
text_doi: "DOI (Digital Object Identifier)." |
|
| 72 | 73 |
text_author_name_on_paper: "Author's name as it appears on the paper." |
| 73 | 74 |
text_author_institution: "Author's institution as on the paper." |
| 74 | 75 |
text_author_email: "Author's email address as on the paper." |
| 75 |
|
|
| 76 |
|
|
| 76 | 77 |
text_author_search: "Search existing authors" |
| 77 |
|
|
| 78 |
|
|
| 78 | 79 |
# authorships model |
| 79 | 80 |
field_institution: "Institution" |
| 80 |
field_name_on_paper: "Name"
|
|
| 81 |
field_name_on_paper: "Name" |
|
| 81 | 82 |
field_email: "Email Address" |
| 82 |
|
|
| 83 |
|
|
| 83 | 84 |
# bibtex_entries model |
| 84 | 85 |
field_entry_type: "Publication Type" |
| 85 |
field_id: "id"
|
|
| 86 |
field_id: "id" |
|
| 86 | 87 |
field_publication_id: "Publication_id" |
| 87 | 88 |
field_address: "Address" |
| 88 | 89 |
field_annote: "Annote" |
| ... | ... | |
| 122 | 123 |
field_bibtex_proceedings: Conference proceedings |
| 123 | 124 |
field_bibtex_techreport: Technical report |
| 124 | 125 |
field_bibtex_unpublished: Unpublished |
| 125 |
|
|
| 126 |
|
|
| 126 | 127 |
label_author_1: First author |
| 127 | 128 |
label_author_2: Second author |
| 128 | 129 |
label_author_3: Third author |
| ... | ... | |
| 146 | 147 |
|
| 147 | 148 |
mail_subject_publication_added: "You have been added as an author to a new publication" |
| 148 | 149 |
mail_body_publication_added: "A new publication (%{publication}) has been added to the project '%{project}.'"
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
|
Also available in: Unified diff