Explorar el Código

Fixed some errors in Natural Diversity Tables

laceysanderson hace 14 años
padre
commit
d9054dc3fc

+ 1 - 1
theme_tripal/tripal_bulk_loader/tripal_bulk_loader_modify_template_base_form.tpl.php

@@ -21,7 +21,7 @@
       $row[] = drupal_render($element['chado_table']);
       $row[] = drupal_render($element['mode']);
       $row[] = drupal_render($element['new_priority']) . drupal_render($element['id']);
-      $row[] = drupal_render($element['submit-edit_record']) . '<br>' . drupal_render($element['submit-add_field']);
+      $row[] = drupal_render($element['submit-edit_record']) . '<br>' . drupal_render($element['submit-duplicate_record']) . '<br>' . drupal_render($element['submit-add_field']);
       $rows[] = array('data' => $row, 'class' => 'draggable');
     }
     

+ 5 - 0
tripal_bulk_loader/tripal_bulk_loader.admin.inc

@@ -174,6 +174,11 @@ function tripal_bulk_loader_modify_template_base_form ($form_state = NULL, $mode
             '#name' => (string)$priority,
             '#value' => 'Add Field',
           ),
+          'submit-duplicate_record' => array(
+            '#type' => 'submit',
+            '#name' => (string)$priority,
+            '#value' => 'Duplicate Record'
+          ),
         );
 
         foreach ($table_array['fields'] as $field_index => $field) {

+ 2 - 2
tripal_natural_diversity/tripal_natural_diversity.api.inc

@@ -654,7 +654,7 @@ function tripal_natural_diversity_chado_nd_protocol_schema () {
   $description = array();
   
   $description = array(
-    'table' => ,
+    'table' => 'nd_protocol',
     'fields' => array(
       'nd_protocol_id' => array(
         'type' => 'serial',
@@ -682,7 +682,7 @@ function tripal_natural_diversity_chado_nd_protocol_reagent_schema () {
   $description = array();
   
   $description = array(
-    'table' => ,
+    'table' => 'nd_protocol_reagent',
     'fields' => array(
       'nd_protocol_reagent_id' => array(
         'type' => 'serial',