mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Fixed according to PR review
This commit is contained in:
parent
7bad722553
commit
3c6d37ce64
1 changed files with 2 additions and 3 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue