Skip to content

Commit cd4271f

Browse files
committed
secondary accession url
reanalysis bugs Pan 2018-05-29
1 parent 0c61f5f commit cd4271f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/pages/dataset/dataset.component.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ <h4>
6464
<annotated-text [text]="d.data_protocol" [sections]="data_protocol"></annotated-text>
6565
</span>
6666
</p>
67+
<div *ngIf="d.similars">
6768
<p class="align-justify" *ngIf="reanalysis_of(d)">
6869
<b>REANALYSIS of:</b> <span *ngFor="let s of reanalysis_of(d)"><a [routerLink]="['/dataset',getSourceByDatabaseName(s.database),s.accession]">{{s.accession}}</a></span>
6970
<span *ngIf="reanalysisoverflow(d)">(first 100 items shown)</span>
@@ -75,6 +76,7 @@ <h4>
7576
<p class="align-justify" *ngIf="null!=related_omics(d)">
7677
<b>OTHER RELATED OMICS DATASETS IN:</b> <span href="#" *ngFor="let s of related_omics(d)" ><a [routerLink]="['/dataset',getSourceByDatabaseName(s.database),s.accession]">{{s.accession}}</a> </span>
7778
</p>
79+
</div>
7880
<p class="align-justify" *ngIf="null!=d.instruments">
7981
<b>INSTRUMENT(S):</b>{{d.instruments}}
8082
</p>
@@ -121,8 +123,8 @@ <h4>
121123
<b>SECONDARY ACCESSION(S):</b>&nbsp;
122124

123125
<span *ngFor="let o of d.secondary_accession;">
124-
<a *ngIf="o.split('~').length>1" href="{{o.split('~')[1]}}">{{o.split('~')[0]}}</a>
125-
<a *ngIf="o.split('~').length<=1" >{{o.split('~')[0]}}</a>
126+
<a *ngIf="o.split('~').length>=1" href="{{o.substring(o.indexOf('~')+1)}}">{{o.substring(0,o.indexOf('~'))}}</a>
127+
<a *ngIf="o.split('~').length<1" >{{o}}</a>
126128

127129

128130
<!--<span *ngIf="this.databaseByAccession && this.databaseByAccession[o]">-->

0 commit comments

Comments
 (0)