Просмотр исходного кода

Restoration of functionality of National Ag Library publication loader & whitespace fix

dsenalik 4 лет назад
Родитель
Сommit
c27a5d917c

+ 1 - 1
tripal_chado/includes/loaders/tripal_chado.pub_importer_AGL.inc

@@ -355,7 +355,6 @@ function tripal_pub_remote_search_AGL($search_array, $num_to_retrieve, $page) {
   // remove any preceeding 'and' or 'or'
   $ccl = preg_replace('/^\s*(and|or)/', '', $ccl);
 
-
   // yaz_connect() prepares for a connection to a Z39.50 server. This function is non-blocking
   // and does not attempt to establish a connection - it merely prepares a connect to be
   // performed later when yaz_wait() is called.
@@ -404,6 +403,7 @@ function tripal_pub_remote_search_AGL($search_array, $num_to_retrieve, $page) {
 
   // get the total number of records
   $total_records = tripal_pub_AGL_count($yazc, $search_str);
+
   // get the pubs in the specified range
   $start = $page * $num_to_retrieve;
   $results = tripal_pub_AGL_range($yazc, $search_str, $start, $num_to_retrieve, $total_records, $days, $latestyear);

+ 1 - 0
tripal_chado/includes/loaders/tripal_chado.pub_importer_PMID.inc

@@ -30,6 +30,7 @@ function tripal_pub_remote_alter_form_PMID($form, $form_state, $num_criteria = 1
   for ($i = 1; $i <= $num_criteria; $i++) {
     $form['themed_element']['criteria'][$i]["scope-$i"]['#options']['abstract'] = 'Abstract/Title';
   }
+
   return $form;
 }
 

+ 1 - 0
tripal_chado/includes/loaders/tripal_chado.pub_importers.inc

@@ -1114,6 +1114,7 @@ function tripal_pub_add_publications($pubs, $do_contact, $update = FALSE, $job =
  */
 function tripal_pub_add_publication($pub_details, &$action, $do_contact = FALSE, $update_if_exists = FALSE, $job = NULL) {
   $pub_id = 0;
+
   // These are options for the tripal_report_error function. We do not
   // want to log messages to the watchdog except for errors and to the job and 
   // to the terminal