<%= csrf_meta_tags %> <% 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 %>
<%= t('strict_compare_mode') +':' %> <% if params['mode']!='simple' %> <%= t('yes_') %> <% else %> <%= t('no_') %> <% end %>
<%= token_tag(nil) %> <% if params['mode']!='simple' %> <% end %> <% @patents.each do |key,patents| %> <% if params['mode']=='simple' len = patents.length else len = patents.values.reduce(0){|sum,num| sum+num.length} end %> <% if params['mode']=='simple' %> <% patents.each_with_index do |patent,i| %> <% if len!=(i+1) %> <% end %> <% end %> <% else %> <% i=0 %> <% patents.each do |k,v| %> <% len1 = v.length %> <% k.each do |keychild| %> <% end %> <% v.each_with_index do |patent_child,index1| %> <% if len1!=index1 %> <% end %> <% end %> <% if len1!=(i+1) %> <% end %> <% i =i+1 %> <% end %> <% end %> <% end %>
<%= t('personal_patent.patent_title') %> <%= t('personal_patent.patent_no') %><%= t('personal_patent.year') %> <%= t('personal_patent.patent_organization') %> <%= t('personal_patent.patent_category') %> <%= t('personal_patent.patent_country') %><%= t("personal_patent.merge") %> <%= t("personal_patent.authors") %>
<%= key[0].values.map{|v| v=="" ? t('personal_patent.no_input') : v}.join('/') %> <%= key[1] %> <%= get_member(patent).collect(&:name).join(' / ') rescue t('personal_patent.no_input') %>
<%= keychild.to_s.blank? ? t('personal_patent.no_input') : keychild %> <%= get_member(patent_child).collect(&:name).join(' / ') rescue t('personal_patent.no_input') %>