Quellcode durchsuchen

Passes regex to user-defined linkout function

E.Cannon vor 7 Jahren
Ursprung
Commit
8b397443e9
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      theme/blast_report.tpl.php

+ 2 - 0
theme/blast_report.tpl.php

@@ -182,6 +182,7 @@ $no_hits = TRUE;
               // the def to provide the original FASTA header.
               // @todo Deepak changed this to use just the hit_def; inquire as to why.
               $hit_name = (preg_match('/BL_ORD_ID/', $hit->{'Hit_id'})) ? $hit->{'Hit_def'} : $hit->{'Hit_id'};
+
               // Used for the hit visualization to ensure the name isn't truncated.
               $hit_name_short = (preg_match('/^([^\s]+)/', $hit_name, $matches)) ? $matches[1] : $hit_name;
 
@@ -284,6 +285,7 @@ $no_hits = TRUE;
                   $hit_name = call_user_func(
                     $url_function,
                     $linkout_urlprefix,
+                    $linkout_regex,
                     $hit,
                     array(
                       'query_name' => $query_name,