|
@@ -576,13 +576,19 @@ function process_data_array_for_line($priority, &$data, &$default_data, $addt) {
|
|
|
|
|
|
// skip optional fields
|
|
|
if ($skip_optional) {
|
|
|
- tripal_bulk_loader_throw_error('Skipping an optional record (%record)',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
+ // SPF -- Commented out the following line. This state is intentional due
|
|
|
+ // to the loader setup and and is not an error. If informational it
|
|
|
+ // prints too much to the terminal.
|
|
|
+ // tripal_bulk_loader_throw_error('Skipping an optional record (%record)',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
return $no_errors;
|
|
|
}
|
|
|
|
|
|
// check if it is already inserted
|
|
|
if (array_key_exists('inserted', $table_data) and $table_data['inserted']) {
|
|
|
- tripal_bulk_loader_throw_error('Skipping %record since it is already inserted',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
+ // SPF -- Commented out the following line. This state is intentional due
|
|
|
+ // to the loader setup and and is not an error. If informational it
|
|
|
+ // prints too much to the terminal.
|
|
|
+ // tripal_bulk_loader_throw_error('Skipping %record since it is already inserted',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
return $no_errors;
|
|
|
}
|
|
|
|
|
@@ -590,7 +596,10 @@ function process_data_array_for_line($priority, &$data, &$default_data, $addt) {
|
|
|
// the default_data array
|
|
|
if (array_key_exists('selected', $table_data) and $table_data['selected']) {
|
|
|
$data[$priority]['values_array'] = $default_data[$priority]['values_array'];
|
|
|
- tripal_bulk_loader_throw_error('%record was already selected thus we are just returning the values previously selected.',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
+ // SPF -- Commented out the following line. This state is intentional due
|
|
|
+ // to the loader setup and and is not an error. If informational it
|
|
|
+ // prints too much to the terminal.
|
|
|
+ // tripal_bulk_loader_throw_error('%record was already selected thus we are just returning the values previously selected.',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
return $no_errors;
|
|
|
}
|
|
|
|
|
@@ -641,7 +650,10 @@ function process_data_array_for_line($priority, &$data, &$default_data, $addt) {
|
|
|
}
|
|
|
// return if this is a select_if_duplicate
|
|
|
if ($table_data['select_if_duplicate'] == 1) {
|
|
|
- tripal_bulk_loader_throw_error('Simply returning values for %record since it was already inserted',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
+ // SPF -- Commented out the following line. This state is intentional due
|
|
|
+ // to the loader setup and and is not an error. If informational it
|
|
|
+ // prints too much to the terminal.
|
|
|
+ // tripal_bulk_loader_throw_error('Simply returning values for %record since it was already inserted',array('%record'=>$table_data['record_id']),TRIPAL_NOTICE);
|
|
|
return $no_errors;
|
|
|
}
|
|
|
}
|