File tree Expand file tree Collapse file tree
gocam_view/templates/gocam_view Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ||
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 ) {
You can’t perform that action at this time.
0 commit comments