Revision 60193
Added by Konstantinos Triantafyllou over 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/connect/connectHelper.ts | ||
---|---|---|
4 | 4 |
export class ConnectHelper { |
5 | 5 |
|
6 | 6 |
public static getCommunityFromDomain(domain: string): string{ |
7 |
//domain = "beta.covid-19.openaire.eu"; //for testing
|
|
7 |
domain = "beta.covid-19.openaire.eu"; //for testing |
|
8 | 8 |
domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix |
9 | 9 |
if (domain.indexOf('openaire.eu') === -1) { |
10 | 10 |
return null; |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/annotation/annotation.component.ts | ||
---|---|---|
20 | 20 |
@Component({ |
21 | 21 |
selector: 'b2note', |
22 | 22 |
template: ` |
23 |
<div class="sideInfoTitle uk-margin-small-bottom">Annotations</div> |
|
23 |
<div *ngIf="annotations && annotations.length > 0" class="sideInfoTitle uk-margin-small-bottom">Annotations</div>
|
|
24 | 24 |
<div class="b2note"> |
25 | 25 |
<form #form ngNoForm *ngIf="pid && user" |
26 | 26 |
[action]="properties.b2noteAPIURL + 'widget'" |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/result/resultLanding.component.html | ||
---|---|---|
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 disabled"
|
|
111 |
[attr.uk-tooltip]="!pid?'Annotations are only available for resources with a PID (persistent identifier) like DOI, handle, PMID':
|
|
112 |
'Annotations are only available for logged in users'">
|
|
113 |
<span class="uk-icon-button uk-button-primary uk-icon disabled">
|
|
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':
|
|
112 |
'Annotations are available only for logged in users'">
|
|
113 |
<span class="uk-icon-button uk-icon uk-disabled">
|
|
114 | 114 |
<img src="assets/common-assets/b2note.png"> |
115 | 115 |
</span> |
116 | 116 |
<span class="uk-margin-small-left">add annotation</span> |
Also available in: Unified diff
[Library | Trunk]: 1. Hide Annotations title if annotation list is empty. 2. Make more obvious when add annotation is disable