<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <%= stylesheet_link_tag "lib/main-form-col2" %> <% end %> <% if params['mode']!='simple' %> <% end %> <% @journals.each do |key,journals| %> <% if params['mode']=='simple' len = journals.length else len = journals.values.reduce(0){|sum,num| sum+num.length} end %> <% if params['mode']=='simple' %> <% journals.each_with_index do |journal,i| %> <% if len!=(i+1) %> <% end %> <% end %> <% else %> <% i=0 %> <% journals.each do |k,v| %> <% len1 = v.length %> <% k.each do |keychild| %> <% end %> <% v.each_with_index do |journal_child,index1| %> <% if len1!=index1 %> <% end %> <% end %> <% if len1!=(i+1) %> <% end %> <% i =i+1 %> <% end %> <% end %> <% end %>
<%= t('personal_journal.paper_title') %> <%= t('personal_journal.journal_title') %><%= t('personal_journal.level_type') %> <%= t('personal_journal.author_type') %> <%= t('personal_journal.paper_type') %> <%= t('personal_journal.publication_date') %><%= t("personal_plugins.author") %>
<%= key[0].values.map{|v| v=="" ? t('personal_journal.no_input') : v}.join('/') %> <%= key[1].values.map{|v| v=="" ? t('personal_journal.no_input') : v}.join('/') %> <%= get_member(journal).collect(&:name).join(', ') rescue t('personal_journal.no_input') %>
<%= keychild.to_s.blank? ? t('personal_journal.no_input') : keychild %> <%= get_member(journal_child).collect(&:name).join(' / ') rescue t('personal_journal.no_input') %>