Skip to content

Commit

Permalink
Merge pull request #1082 from Ferrisx4/1077-legacy_content
Browse files Browse the repository at this point in the history
1077 legacy content
  • Loading branch information
bradfordcondon committed Sep 8, 2020
2 parents ff72064 + 47570f3 commit 51312b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class data__protein_sequence extends ChadoField {
WHERE
FR.object_id = :feature_id and
CVT.name = 'polypeptide' and
RCVT.name = 'derives_from'
RCVT.name IN ('derives_from', 'part_of')
ORDER BY FR.rank ASC
";
$proteins = chado_query($sql, [':feature_id' => $feature->feature_id]);
Expand All @@ -108,4 +108,4 @@ class data__protein_sequence extends ChadoField {
$num_seqs++;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class so__transcript_formatter extends ChadoFieldFormatter {
$loc = $transcript['SO:0000735'];
$type = $transcript['rdfs:type'];

// Add a link i there is an entity.
// Add a link if there is an entity.
if (array_key_exists('entity', $item['value']) and $item['value']['entity']) {
list($entity_type, $entity_id) = explode(':', $item['value']['entity']);
$feature_name = l($feature_name, "bio_data/" . $entity_id, ['attributes' => ['target' => "_blank"]]);
Expand Down

0 comments on commit 51312b0

Please sign in to comment.