Skip to content
Snippets Groups Projects
Commit db75d913 authored by Anthony Bretaudeau's avatar Anthony Bretaudeau
Browse files

simpliyf title

parent a61c788a
No related branches found
No related tags found
No related merge requests found
......@@ -87,12 +87,16 @@
$feat_nav = "";
if ($node->type == "chado_feature") {
// Links between mrna and proteins
if ($node->feature->type_id->name == "mRNA") {
$feat_nav = "You are viewing an mRNA, more information available on the corresponding ".l("polypeptide page", "node/".$node->feature->all_relationships['object']['derives from']['polypeptide'][0]->record->subject_id->nid);
}
else if ($node->feature->type_id->name == "polypeptide") {
$feat_nav = "You are viewing a polypeptide, more information available on the corresponding ".l("mRNA page", "node/".$node->feature->all_relationships['subject']['derives from']['mRNA'][0]->record->object_id->nid);
}
// Simplify node title for mRNA and proteins
$title = strstr($title, ', ');
}
?>
<header id="masthead" class="site-header" role="banner">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment