Fixed according to PR review

This commit is contained in:
Zanz2 2018-01-11 18:37:36 +01:00
parent 7bad722553
commit 3c6d37ce64

View file

@ -19,8 +19,6 @@
<% prot_info_string = '' %>
<% @remaining = ProtocolsIoHelper::PIO_P_AVAILABLE_LENGTH %>
<% protocol_table_elements_array = [] %>
<% protocol_iterate_elements = ['description','before_start','warning','guidelines','manuscript_citation',
'publish_date','vendor_name','vendor_link','keywords','tags','link'] %>
<% add_to_info_string_elements = ['description','before_start','warning','guidelines','manuscript_citation']%>
<% protocol_attr_len_hash = {
description: ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_MEDIUM,
@ -34,7 +32,8 @@
publish_date: ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_SMALL,
link: ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_BIG,
vendor_link: ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_BIG } %>
<% protocol_iterate_elements.each do |element|%>
<% protocol_attr_len_hash.each do |element, value|%>
<% element = element.to_s %>
<% if(json_object[element].present?) %>
<% if element == 'tags' %>
<% translation_string = 'protocols.protocols_io_import.preview.' + element %>