add eosc data transfer action button in landing

update properties
This commit is contained in:
argirok 2022-05-18 13:30:00 +03:00
parent 5fbdac1dc3
commit ba409585c1
4 changed files with 13 additions and 2 deletions

View File

@ -66,6 +66,12 @@
<orcid-work [resultId]="id" [resultTitle]="resultLandingInfo.title" [resultLandingInfo]="resultLandingInfo"
[pids]="pidsArrayString" [pageType]="'landing'">
</orcid-work>
</li>
<li *ngIf=" properties.enableEoscDataTransfer && resultLandingInfo.resultType == 'dataset' &&
resultLandingInfo.identifiers.get('doi').length > 0 && resultLandingInfo.identifiers.get('doi').join('').indexOf('zenodo.')!=-1"
class="uk-text-center">
<egi-transfer-data [dois]="resultLandingInfo.identifiers.get('doi')" [isOpen]="egiTransferModalOpen"></egi-transfer-data>
</li>
</ul>
</div>
</div>

View File

@ -136,7 +136,7 @@ export class ResultLandingComponent {
public noCommunities: boolean = false;
public rightSidebarOffcanvasClicked: boolean = false;
public egiTransferModalOpen = false;
constructor(private _resultLandingService: ResultLandingService,
private _vocabulariesService: ISVocabulariesService,
private _piwikService: PiwikService,
@ -194,6 +194,9 @@ export class ResultLandingComponent {
}
this.initMetaAndLinks(this.type);
}
if(data["egiTransfer"] && data["egiTransfer"] == 't'){
this.egiTransferModalOpen = true;
}
this.updateDescription("");
this.metricsClicked = false;

View File

@ -35,6 +35,7 @@ import {IconsModule} from "../../utils/icons/icons.module";
import {IconsService} from "../../utils/icons/icons.service";
import {graph, link, quotes} from "../../utils/icons/icons";
import {InputModule} from "../../sharedComponents/input/input.module";
import {EGIDataTransferModule} from "../../../utils/transferData.module";
@NgModule({
imports: [
@ -43,7 +44,7 @@ import {InputModule} from "../../sharedComponents/input/input.module";
MetricsModule, AltMetricsModule, Schema2jsonldModule, SEOServiceModule,
DeletedByInferenceModule, ShowAuthorsModule, HelperModule, ResultLandingUtilsModule, AlertModalModule,
AnnotationModule, LandingHeaderModule, NoLoadPaging, ResultPreviewModule, FeedbackModule, TabsModule, LoadingModule,
OrcidModule, MatFormFieldModule, MatSelectModule, IconsModule, InputModule
OrcidModule, MatFormFieldModule, MatSelectModule, IconsModule, InputModule, EGIDataTransferModule
],
declarations: [
ResultLandingComponent

View File

@ -13,6 +13,7 @@ export interface EnvProperties {
useLongCache?: boolean;
showAddThis?: boolean;
showContent?: boolean;
enableEoscDataTransfer?:boolean;
metricsAPIURL?: string;
framesAPIURL?: string;
statisticsFrameAPIURL?: string;