Skip to content

Commit

Permalink
secondary accession url
Browse files Browse the repository at this point in the history
reanalysis bugs

Pan 2018-05-29
  • Loading branch information
hll3939092 committed May 29, 2018
1 parent 0c61f5f commit cd4271f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/pages/dataset/dataset.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ <h4>
<annotated-text [text]="d.data_protocol" [sections]="data_protocol"></annotated-text>
</span>
</p>
<div *ngIf="d.similars">
<p class="align-justify" *ngIf="reanalysis_of(d)">
<b>REANALYSIS of:</b> <span *ngFor="let s of reanalysis_of(d)"><a [routerLink]="['/dataset',getSourceByDatabaseName(s.database),s.accession]">{{s.accession}}</a></span>
<span *ngIf="reanalysisoverflow(d)">(first 100 items shown)</span>
Expand All @@ -75,6 +76,7 @@ <h4>
<p class="align-justify" *ngIf="null!=related_omics(d)">
<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>
</p>
</div>
<p class="align-justify" *ngIf="null!=d.instruments">
<b>INSTRUMENT(S):</b>{{d.instruments}}
</p>
Expand Down Expand Up @@ -121,8 +123,8 @@ <h4>
<b>SECONDARY ACCESSION(S):</b>&nbsp;

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


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

0 comments on commit cd4271f

Please sign in to comment.