|
@@ -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,6 +17,8 @@ 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;
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
@@ -896,4 +898,4 @@ function tripal_pub_remote_search_get_language($lang_abbr) {
|
|
|
'wel' => 'Welsh',
|
|
|
);
|
|
|
return $languages[strtolower($lang_abbr)];
|
|
|
-}
|
|
|
+}
|