Revision 60619
Added by Konstantina Galouni about 3 years ago
orcid.module.ts | ||
---|---|---|
12 | 12 |
import {ResultLandingService} from "../landingPages/result/resultLanding.service"; |
13 | 13 |
import {LoadingModule} from "../utils/loading/loading.module"; |
14 | 14 |
import {ResultLandingUtilsModule} from "../landingPages/landing-utils/resultLandingUtils.module"; |
15 |
import {IconsModule} from "../utils/icons/icons.module"; |
|
16 |
import {IconsService} from "../utils/icons/icons.service"; |
|
17 |
import {add, preview, refresh, remove} from "../utils/icons/icons"; |
|
15 | 18 |
|
16 | 19 |
@NgModule({ |
17 | 20 |
imports: [ |
18 |
CommonModule, RouterModule, AlertModalModule, LoadingModule, ResultLandingUtilsModule |
|
21 |
CommonModule, RouterModule, AlertModalModule, LoadingModule, ResultLandingUtilsModule, |
|
22 |
IconsModule |
|
19 | 23 |
], |
20 | 24 |
declarations: [ |
21 | 25 |
OrcidComponent, |
... | ... | |
32 | 36 |
}) |
33 | 37 |
|
34 | 38 |
|
35 |
export class OrcidModule{} |
|
39 |
export class OrcidModule{ |
|
40 |
constructor(private iconsService: IconsService) { |
|
41 |
this.iconsService.registerIcons([add, remove, preview, refresh]); |
|
42 |
} |
|
43 |
} |
Also available in: Unified diff
[Trunk | Library]:
1. resultLanding.component.html & result-preview.component.html: Show orcid buttons in all environments (production too) | in <orcid-work> added "resultTitle" property.
2. myOrcidLinks.component.ts: Added "getPersonalDetails()" method and link to advanced research outcomes page, filtered by user's name (if personal details from ORCID fails, use name from AAI - getUserInfo).
3. searchMyOrcidResults.module.ts: Removed PagingModule and added NoLoadPaging.
4. searchMyOrcidResults.component.ts: Added method "totalPages()" to calculate pages in paging.
5. searchMyOrcidResults.component.html:
a. Added <no-load-paging> (instead of custom paging with <paging-no-load>).
b. In <orcid-work> added "resultTitle" property.
c. Fix widths of grid inside card for result preview and orcid buttons.
6. orcid-work.component.ts:
a. Added "resultTitle" @Input property, to show it in notifications, instead of pids.
b. Updated messages for errors and for multiple put-codes.
c. Use "danger" notifications instead of "warning" when an error occurs.
d. For search and my orcid links pages, in orcid buttons, use <icon> for icons | For landing page, updated icons in orcid buttons.
e. Added message "The action will affect your real ORCID iD." in tooltips, when environment == 'beta'.
f. Removed property "procedurePaused" and its usage replaced by "currentAction".
g. [Bug fix] For search pages, added "uk-align-right", in order orcid button not to take width for the whole line.
h. [Bug fix] In method "getOrcidWorks()" check "Session.isLoggedIn()" was missing.
7. orcid.component.ts: If personal details from ORCID fails, use name from AAI - getUserInfo.
8. orcid.module.ts: Added IconsModule and registered icons: add, remove, preview, refresh in IconsService.
9. searchResult.component.ts: Call "orcidService.getPutCodes()" in all environments (production too).