Browse Source

Added a custom linkout type

E.Cannon 9 years ago
parent
commit
c574ac765b
1 changed files with 7 additions and 1 deletions
  1. 7 1
      includes/blast_ui.linkouts.inc

+ 7 - 1
includes/blast_ui.linkouts.inc

@@ -52,6 +52,7 @@
  * human-readable name to be used in the Blast Database add/edit form and the
  * function to be used to determine the URL for each hit in BLAST results.
  */
+
 function blast_ui_blast_linkout_info() {
   $types = array();
 
@@ -75,6 +76,11 @@ function blast_ui_blast_linkout_info() {
     'process function' => 'tripal_blast_generate_linkout_jbrowse',
   );
 
+  $types['custom'] = array(
+    'name' => 'Custom',
+    'process function' => 'tripal_custom_generate_linkout',
+  );
+
   return $types;
 }
 
@@ -155,7 +161,7 @@ function tripal_blast_generate_linkout_gbrowse($url_prefix, $hit, $info, $option
    
    $url_postfix = 'query=';
    $url_postfix .= 'start=' . $min . ';stop=' . $max;
-   $url_protfix .= ';ref=' . $hit->{'hit_name'};
+   $url_postfix .= ';ref=' . $hit->{'hit_name'};
    $url_postfix .= ';add=' . $hit->{'hit_name'} . '+BLAST+Query+' . $joined_ranges;
    $url_postfix .= ';h_feat=Query';