2021-07-14 13:19:57 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {CommonModule} from '@angular/common';
|
2021-01-13 19:23:31 +01:00
|
|
|
|
2021-07-14 13:19:57 +02:00
|
|
|
import {RouterModule} from '@angular/router';
|
2021-01-13 19:23:31 +01:00
|
|
|
|
|
|
|
import {OrcidComponent} from './orcid.component';
|
2021-07-14 13:19:57 +02:00
|
|
|
import {OrcidService} from './orcid.service';
|
|
|
|
import {OrcidWorkComponent} from './orcid-work.component';
|
|
|
|
import {AlertModalModule} from '../utils/modal/alertModal.module';
|
|
|
|
import {ResultLandingService} from '../landingPages/result/resultLanding.service';
|
|
|
|
import {LoadingModule} from '../utils/loading/loading.module';
|
|
|
|
import {ResultLandingUtilsModule} from '../landingPages/landing-utils/resultLandingUtils.module';
|
|
|
|
import {IconsModule} from '../utils/icons/icons.module';
|
2022-04-16 09:47:30 +02:00
|
|
|
import {IconsService} from "../utils/icons/icons.service";
|
|
|
|
import {orcid_add, orcid_bin} from "../utils/icons/icons";
|
2023-02-21 15:10:21 +01:00
|
|
|
import {FullScreenModalModule} from "../utils/modal/full-screen-modal/full-screen-modal.module";
|
2023-12-14 13:01:06 +01:00
|
|
|
import {LogServiceModule} from "../utils/log/LogService.module";
|
2024-02-28 13:33:44 +01:00
|
|
|
import {OrcidRoutingModule} from "./orcid-routing.module";
|
2021-01-13 19:23:31 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2024-02-28 13:33:44 +01:00
|
|
|
CommonModule, RouterModule, OrcidRoutingModule, AlertModalModule, LoadingModule, ResultLandingUtilsModule,
|
2023-12-14 13:01:06 +01:00
|
|
|
IconsModule, FullScreenModalModule, LogServiceModule
|
2021-01-13 19:23:31 +01:00
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
OrcidComponent,
|
|
|
|
OrcidWorkComponent
|
|
|
|
],
|
|
|
|
providers:[
|
|
|
|
OrcidService, ResultLandingService
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
OrcidComponent,
|
|
|
|
OrcidWorkComponent
|
|
|
|
]
|
|
|
|
})
|
|
|
|
|
|
|
|
|
[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).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60619 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-11 02:40:53 +01:00
|
|
|
export class OrcidModule{
|
2022-04-16 09:47:30 +02:00
|
|
|
constructor(private iconsService: IconsService) {
|
|
|
|
this.iconsService.registerIcons([orcid_add, orcid_bin])
|
|
|
|
}
|
[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).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60619 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-11 02:40:53 +01:00
|
|
|
}
|