Project

General

Profile

« Previous | Next » 

Revision ce347d23

Added by Katja Luther almost 5 years ago

ref #8182: add link to ncbi for blast result

View differences:

modules/cdm_dataportal/includes/occurrences.inc
1323 1323
    foreach ($data as $row_data){
1324 1324
        $pathToSpecimen = path_to_specimen_by_accession_number($row_data['id']);
1325 1325
        $specimenPageLink = l($row_data['id'], $pathToSpecimen, array('attributes' => array('target' => '_blank')));
1326

  
1326
        $ncbiLink = l($row_data['id'], 'https://www.ncbi.nlm.nih.gov/nuccore/'.$row_data['id'].'?report=graph', array('attributes' => array('target' => '_blank')));
1327 1327
        $rows[] =  array(
1328 1328
            'data' => array(
1329 1329
                array(
......
1340 1340
                    'data' => $row_data['hsp_align_length'],
1341 1341
                ),
1342 1342
                array(
1343
                   'data' => $row_data['hsp_identity'],
1343
                   'data' => $ncbiLink,
1344 1344
                ),
1345 1345
                array(
1346 1346
                    'data' => $row_data['hsp_identity']/$row_data['hsp_align_length']*100,
......
1385 1385
                'data' => "",
1386 1386
                'class' => array('expand_column')
1387 1387
            ),
1388
                        "Name", "Accession Number", "Align Length", "Identity", "% Identity"),
1388
                        "Name", "Accession Number", "Align Length", "NCBI", "% Identity"),
1389 1389
        "#rows" => $rows,
1390 1390
        "#attributes" => array(
1391 1391
            "id" => $tableId,

Also available in: Unified diff