Skip to content

Commit 8963097

Browse files
committed
Swap BP and occurs_in in panel
Refs pombase/pombase-gocam#129
1 parent a354b87 commit 8963097

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

gocam_view/templates/gocam_view/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,17 @@
927927
newContent += '</div>';
928928
}
929929

930+
if (currentData.part_of_process) {
931+
const label = currentData.part_of_process.label;
932+
const id = currentData.part_of_process.id;
933+
newContent += '<div class="part-of-process term-link">part of: ' + makeLink(id, label);
934+
const parent = currentData.part_of_process.part_of_parent;
935+
if (parent) {
936+
newContent += '<div>part of: ' + makeLink(parent.id, parent.label) + '</div>';
937+
}
938+
newContent += '</div>';
939+
}
940+
930941
if (currentData.occurs_in) {
931942
for (const occursIn of currentData.occurs_in) {
932943
const component = occursIn.complex_component ||
@@ -945,17 +956,6 @@
945956
newContent += '<div class="term-link">located in: ' + makeLink(id, label) + '</div>';
946957
}
947958

948-
if (currentData.part_of_process) {
949-
const label = currentData.part_of_process.label;
950-
const id = currentData.part_of_process.id;
951-
newContent += '<div class="part-of-process term-link">part of: ' + makeLink(id, label);
952-
const parent = currentData.part_of_process.part_of_parent;
953-
if (parent) {
954-
newContent += '<div>part of: ' + makeLink(parent.id, parent.label) + '</div>';
955-
}
956-
newContent += '</div>';
957-
}
958-
959959
if (currentData.has_part_genes && currentData.has_part_genes.length > 0) {
960960
newContent += '<div><div>complex members:</div><ul class="complex-members-list">';
961961
for (const id of currentData.has_part_genes) {

0 commit comments

Comments
 (0)