'fieldset', '#title' => t('Publication Management Temporarily Unavailable') ); $form['notice']['message'] = array( '#value' => t('Currently, publication management jobs are waiting or are running. . Managemment features have been hidden until these jobs complete. Please check back later once these jobs have finished. You can view the status of pending jobs in the Tripal jobs page.'), ); } return system_settings_form($form); } /** * * * @ingroup tripal_pub */ function get_tripal_pub_admin_form_cleanup_set(&$form) { $form['cleanup'] = array( '#type' => 'fieldset', '#title' => t('Clean Up') ); $form['cleanup']['description'] = array( '#type' => 'item', '#value' => t("With Drupal and chado residing in different databases ". "it is possible that nodes in Drupal and publications in Chado become ". "\"orphaned\". This can occur if an pub node in Drupal is ". "deleted but the corresponding chado pub is not and/or vice ". "versa. Click the button below to resolve these discrepancies."), '#weight' => 1, ); $form['cleanup']['button'] = array( '#type' => 'submit', '#value' => t('Clean up orphaned publications'), '#weight' => 2, ); } /** * * * @ingroup tripal_pub */ function get_tripal_pub_admin_form_select_search_list(&$form) { $form['searching'] = array( '#type' => 'fieldset', '#title' => t('Searching Options') ); // get publication properties list $properties = array(); $properties[] = 'Any Field'; $sql = " SELECT DISTINCT CVTS.cvterm_id, CVTS.name, CVTS.definition FROM {cvtermpath} CVTP INNER JOIN {cvterm} CVTS ON CVTP.subject_id = CVTS.cvterm_id INNER JOIN {cvterm} CVTO ON CVTP.object_id = CVTO.cvterm_id INNER JOIN {cv} ON CVTO.cv_id = CV.cv_id WHERE CV.name = 'tripal_pub' and (CVTO.name = 'Publication Details' or CVTS.name = 'Publication Type') and NOT CVTS.is_obsolete = 1 ORDER BY CVTS.name ASC "; $prop_types = chado_query($sql); while ($prop = db_fetch_object($prop_types)) { $properties[$prop->cvterm_id] = $prop->name; } $form['searching']['allowed_search_fields'] = array( '#type' => 'checkboxes', '#options' => $properties, '#description' => t("Please select the publication details that users can search by in the publication search form. If none are selected then all fields will be available to the user."), '#prefix' => '