Revision 60222
Added by Konstantinos Triantafyllou over 3 years ago
resultLanding.component.html | ||
---|---|---|
101 | 101 |
</a> |
102 | 102 |
</li> |
103 | 103 |
<li *ngIf="properties.b2noteAPIURL"> |
104 |
<a *ngIf="user && pid" class="uk-link-text uk-text-bold uk-text-uppercase" (click)="annotation.toggleAnnotation($event)">
|
|
104 |
<a *ngIf="isLoggedIn && pid" class="uk-link-text uk-text-bold uk-text-uppercase" (click)="annotation.toggleAnnotation($event)">
|
|
105 | 105 |
<span class="uk-icon-button uk-button-primary uk-icon"> |
106 | 106 |
<img src="assets/common-assets/b2note.png"> |
107 | 107 |
</span> |
108 | 108 |
<span class="uk-margin-small-left">add annotation</span> |
109 | 109 |
</a> |
110 |
<span *ngIf="!pid || !user" class="uk-link-text uk-text-bold uk-text-uppercase uk-text-muted"
|
|
111 |
[attr.uk-tooltip]="!pid?'Annotations are available only for resources with a PID (persistent identifier) like DOI, handle, PMID': |
|
110 |
<span *ngIf="!pid || !isLoggedIn" class="uk-link-text uk-text-bold uk-text-uppercase uk-text-muted"
|
|
111 |
[attr.uk-tooltip]="!pid?'Annotations are available only for resources with a PID (persistent identifier) like DOI, handle, PMID':
|
|
112 | 112 |
'Annotations are available only for logged in users'"> |
113 | 113 |
<span class="uk-icon-button uk-icon uk-disabled"> |
114 | 114 |
<img src="assets/common-assets/b2note.png"> |
... | ... | |
501 | 501 |
</div> |
502 | 502 |
<!-- B2 Note--> |
503 | 503 |
<div *ngIf="properties.b2noteAPIURL && resultLandingInfo" class="uk-margin-medium-top"> |
504 |
<b2note #annotation [id]="id" [landingInfo]="resultLandingInfo" (userEmitter)="userInit($event)" (pidEmitter)="pidInit($event)"></b2note>
|
|
504 |
<b2note #annotation [id]="id" [landingInfo]="resultLandingInfo" (pidEmitter)="pidInit($event)"></b2note> |
|
505 | 505 |
</div> |
506 | 506 |
</div> |
507 | 507 |
</div> |
Also available in: Unified diff
[Library | Trunk]: Remove getUserInfo from annotation component