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

Fixed merge conflict keeping mostly my commit but adding in the check messages for query/database not being empty.

Lacey Sanderson 10 лет назад
Родитель
Сommit
e88a9ca153
2 измененных файлов с 9 добавлено и 6 удалено
  1. 4 3
      includes/blast_ui.blastn.inc
  2. 5 3
      includes/blast_ui.blastp.inc

+ 4 - 3
includes/blast_ui.blastn.inc

@@ -271,8 +271,9 @@ for the query.'));
   }
   // Otherwise they didn't enter a query!!
   else {
-    form_set_error('nBLAST', t('You must either enter a FASTA sequence in the
-text field or upload one of your own.'));
+    form_set_error('query', t('No query sequence given. Only raw sequence or
+sequence of type FASTA can be read. Enter sequence in the box provided or
+upload a plain text file.'));
   }
 
   // Validate Database
@@ -292,7 +293,7 @@ text field or upload one of your own.'));
   }
   // Otherwise they didn't select a database!!
   else {
-    form_set_error('DB', t('You must either choose a database from the list or upload one of your own.'));
+    form_set_error('DB', t('No database selected. Either choose a database from the list or upload one of your own.'));
   }
 
 }

+ 5 - 3
includes/blast_ui.blastp.inc

@@ -283,8 +283,9 @@ function blast_protein_form_validate($form, &$form_state) {
   elseif (!empty($form_state['input']['FASTA'])) {
     // Check to ensure that the query sequence entered is valid FASTA.
     if (validateFasta($form_state['input']['FASTA'])){
-      form_set_error('pBLAST', t('You need to provide a valid FASTA sequence
-for the query.'));
+      form_set_error('query', t('No query sequence given. Only raw sequence or
+sequence of type FASTA can be read. Enter sequence in the box provided or
+upload a plain text file.'));
     }
     else {
       $form_state['qFlag'] = 'seqQuery';
@@ -313,7 +314,8 @@ text field or upload one of your own.'));
   }
   // Otherwise they didn't select a database!!
   else {
-    form_set_error('DB', t('You must either choose a database from the list or upload one of your own.'));
+    form_set_error('DB', t('No database selected. Either choose a database from
+the list or upload one of your own.'));
   }
 }