Преглед изворни кода

Added links to InterPro reports and removed noIPR lines from report

stephen пре 13 година
родитељ
комит
33ae6f5541

+ 10 - 3
extensions/tripal_analysis_interpro/theme/tripal_feature/tripal_feature_interpro_results.tpl.php

@@ -32,12 +32,15 @@ if(count($results) > 0){
      foreach($terms as $term){ 
        $ipr_id = $term[0];
        $ipr_name = $term[1];
+       if(strcmp($ipr_id,'noIPR')==0){
+          continue;
+       }
        $class = 'tripal_feature-table-odd-row tripal-table-odd-row';
        if($j % 2 == 0 ){
          $class = 'tripal_feature-table-even-row tripal-table-even-row';
        }?>
        <tr class="<?php print $class ?>">
-         <td><?php print $ipr_id ?></td>
+         <td><a href="http://www.ebi.ac.uk/interpro/IEntry?ac=<?php print $ipr_id ?>" target="_ipr"><?php print $ipr_id ?></a></td>
          <td><?php print $ipr_name ?></td>         
        </tr>
        <?php
@@ -56,10 +59,14 @@ if(count($results) > 0){
           $matches = $term['matches'];
           $ipr_id = $term['ipr_id'];
           $ipr_name = $term['ipr_name'];
-          $ipr_type = $term['ipr_type']; ?>          
+          $ipr_type = $term['ipr_type']; 
+          if(strcmp($ipr_id,'noIPR')==0){
+             continue;
+          } 
+          ?>          
             <tr>
               <td colspan="4" style="padding-left: 0px">ORF: <?php print $orf['orf_id'] ?>, Length: <?php print $orf['orf_length'] ?> <br>
-                              IPR Term: <?php print "$ipr_id $ipr_name ($ipr_type)"; ?></th>
+                              IPR Term: <a href="http://www.ebi.ac.uk/interpro/IEntry?ac=<?php print $ipr_id ?>" target="_ipr"><?php print $ipr_id ?></a> <?php print " $ipr_name ($ipr_type)"; ?></th>
             </tr>
             <tr style="border-top: solid 1px;">
               <th>Method</th>

+ 1 - 1
extensions/tripal_analysis_interpro/tripal_analysis_interpro.module

@@ -180,7 +180,7 @@ function chado_analysis_interpro_load($node){
  *  
  */
 function chado_analysis_interpro_insert($node){
-  // insert the analysistripal_core_generate_chado_var
+   // insert the analysistripal_core_generate_chado_var
    chado_analysis_insert($node);
 
    // set the type for this analysis