|  | @@ -9,7 +9,7 @@
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   *
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  | -function tripal_pub_remote_alter_form_PMID(&$form, $form_state) {
 | 
	
		
			
				|  |  | +function tripal_pub_remote_alter_form_PMID($form, $form_state) {
 | 
	
		
			
				|  |  |    $num_criteria = $form['num_criteria']['#default_value'];
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    // PubMed doesn't have an 'Abstract' field, so we need to convert the criteria
 | 
	
	
		
			
				|  | @@ -17,11 +17,13 @@ function tripal_pub_remote_alter_form_PMID(&$form, $form_state) {
 | 
	
		
			
				|  |  |    for($i = 1; $i <= $num_criteria; $i++) {
 | 
	
		
			
				|  |  |      $form['criteria'][$i]["scope-$i"]['#options']['abstract'] = 'Abstract/Title';
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  return $form;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   *
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  | -function tripal_pub_remote_validate_form_PMID(&$form, $form_state) {
 | 
	
		
			
				|  |  | +function tripal_pub_remote_validate_form_PMID($form, $form_state) {
 | 
	
		
			
				|  |  |    $num_criteria = $form['num_criteria']['#default_value'];
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    for ($i = 1; $i <= $num_criteria; $i++) {
 | 
	
	
		
			
				|  | @@ -31,6 +33,7 @@ function tripal_pub_remote_validate_form_PMID(&$form, $form_state) {
 | 
	
		
			
				|  |  |        form_set_error("search_terms-$i", "The PubMed accession must be a numeric value, prefixed with 'PMID:' (e.g. PMID:23024789).");
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | +  return $form;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   *
 | 
	
	
		
			
				|  | @@ -896,4 +899,4 @@ function tripal_pub_remote_search_get_language($lang_abbr) {
 | 
	
		
			
				|  |  |      'wel' => 'Welsh',
 | 
	
		
			
				|  |  |    );
 | 
	
		
			
				|  |  |    return $languages[strtolower($lang_abbr)];
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +}
 |