@@ -190,15 +190,15 @@ function RecordOverview(props) {
190190 }
191191 const rawValue = record . attributes [ attributeName ] ;
192192 if ( rawValue == null ) return '' ;
193- return formatAttributeValue ( rawValue ) ;
193+ return renderAttributeValue ( rawValue ) ;
194194 }
195195
196196 return (
197197 < div
198198 className = "eupathdb-RecordOverview"
199- data-gene-type = { r ( 'gene_type' ) }
200- data-num-user-comments = { r ( 'num_user_comments' ) }
201- data-apollo = { r ( 'show_apollo' ) }
199+ data-gene-type = { record . attributes [ 'gene_type' ] }
200+ data-num-user-comments = { record . attributes [ 'num_user_comments' ] }
201+ data-apollo = { record . attributes [ 'show_apollo' ] }
202202 >
203203 < div
204204 onMouseOver = { ( event ) => {
@@ -253,7 +253,7 @@ function RecordOverview(props) {
253253 { r ( 'strain' ) }
254254 < Link
255255 style = { { fontSize : '90%' , marginLeft : '1em' } }
256- to = { `/record/dataset/${ r ( 'dataset_id' ) } ` }
256+ to = { `/record/dataset/${ record . attributes [ 'dataset_id' ] } ` }
257257 >
258258 < i className = "fa fa-database" > </ i > Data set
259259 </ Link >
@@ -274,7 +274,7 @@ function RecordOverview(props) {
274274 </ a >
275275 </ div >
276276 < div data-show-num-user-comments = "0" data-label = "User Comments" >
277- < a href = "{r( 'user_comment_link_url')}" >
277+ < a href = { record . attributes [ 'user_comment_link_url' ] } >
278278 Add the first < i className = "fa fa-comment" > </ i >
279279 </ a >
280280 </ div >
@@ -284,11 +284,7 @@ function RecordOverview(props) {
284284 < dt > Community Annotations</ dt >
285285 < dd >
286286 < a
287- href = { `https://apollo.veupathdb.org/annotator/loadLink?organism=${ r (
288- 'apollo_ident'
289- ) } &loc=${ r ( 'sequence_id' ) } :${ r ( 'start_min' ) } ..${ r (
290- 'end_max'
291- ) } &tracks=gene%2CRNA-Seq%20Evidence%20for%20Introns%2CCommunity%20annotations%20from%20Apollo`}
287+ href = { `https://apollo.veupathdb.org/annotator/loadLink?organism=${ record . attributes [ 'apollo_ident' ] } &loc=${ record . attributes [ 'sequence_id' ] } :${ record . attributes [ 'start_min' ] } ..${ record . attributes [ 'end_max' ] } &tracks=gene%2CRNA-Seq%20Evidence%20for%20Introns%2CCommunity%20annotations%20from%20Apollo` }
292288 >
293289 View / Update
294290 </ a > { ' ' }
@@ -303,20 +299,22 @@ function RecordOverview(props) {
303299 </ div >
304300
305301 < div className = "eupathdb-RecordOverviewRight" >
306- < div className = "GeneOverviewIntent" > { r ( 'data_release_policy' ) } </ div >
302+ < div className = "GeneOverviewIntent" >
303+ { record . attributes [ 'data_release_policy' ] }
304+ </ div >
307305 < div className = "eupathdb-ThumbnailsTitle" > Shortcuts</ div >
308306 < div className = "eupathdb-ThumbnailsContainer" >
309307 < Shortcuts { ...props } />
310308 </ div >
311309 < div className = "eupathdb-RecordOverviewItem" >
312310 Also see { r ( 'source_id' ) } in the{ ' ' }
313- < a href = "{r( 'jbrowseLink')}" target = "_blank" >
311+ < a href = { record . attributes [ 'jbrowseLink' ] } target = "_blank" >
314312 Genome Browser
315313 </ a >
316314 < span data-show-gene-type = "protein coding" >
317315 { ' ' }
318316 or{ ' ' }
319- < a href = { ` ${ r ( 'pbrowseLink' ) } ` } target = "_blank" >
317+ < a href = { record . attributes [ 'pbrowseLink' ] } target = "_blank" >
320318 Protein Browser
321319 </ a >
322320 </ span >
0 commit comments