304 lines
16 KiB
HTML
304 lines
16 KiB
HTML
<div id="tm-main" class="landing uk-section uk-padding-remove tm-middle">
|
|
<div class="tm-main">
|
|
<!-- TODO: Error messages -->
|
|
<div></div>
|
|
|
|
<div *ngIf="organizationInfo" class="organization">
|
|
<div *ngIf="!showFeedback" class="uk-grid" uk-grid>
|
|
<!-- left column -->
|
|
<div class="landing-left-sidebar-width landing-left-sidebar-border landing-background-light-color">
|
|
<div class="uk-flex uk-flex-column uk-flex-right landing-sidebar-height uk-sticky"
|
|
uk-sticky="bottom: true" [attr.offset]="offset">
|
|
<div class="uk-margin-large-bottom uk-align-center">
|
|
<div class="uk-text-meta">Actions</div>
|
|
<ul class="uk-list">
|
|
<!-- Share -->
|
|
<li class="uk-text-center">
|
|
<a (click)="openAddThisModal()" [title]="'Share this organization in your social networks'"
|
|
[attr.uk-tooltip]="'pos: right; cls: uk-active landing-action-tooltip landing-action-tooltip-portal uk-text-small uk-padding-small'">
|
|
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
|
<icon name="share" visuallyHidden="share"></icon>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<!-- Download content lists -->
|
|
<li class="uk-text-center"
|
|
[title]="'Download content lists'"
|
|
[attr.uk-tooltip]="'pos: right; cls: uk-active landing-action-tooltip landing-action-tooltip-portal uk-text-small uk-padding-small'">
|
|
<a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openDownloadReportModal()">
|
|
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
|
<icon name="download" visuallyHidden="download"></icon>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<!-- Download project lists -->
|
|
<li class="uk-text-center"
|
|
[title]="'Download project lists'"
|
|
[attr.uk-tooltip]="'pos: right; cls: uk-active landing-action-tooltip landing-action-tooltip-portal uk-text-small uk-padding-small'">
|
|
<a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openDownloadFunderReportModal()">
|
|
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
|
<icon name="download" visuallyHidden="download"></icon>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- center/right column -->
|
|
<div *ngIf="organizationInfo" class="uk-width-expand uk-padding-remove uk-margin-large-left uk-margin-large-right landing-background-default-color">
|
|
<!-- Graph and feedback -->
|
|
<ng-template #graph_and_feedback_template>
|
|
<div class="uk-flex uk-margin-small-top uk-margin-small-bottom">
|
|
<!-- Last Index Info-->
|
|
<div class="uk-width-2-3@m uk-width-1-2 graph">
|
|
<icon name="graph" customClass="uk-text-primary"></icon>
|
|
<span class="uk-margin-small-left uk-text-baseline uk-text-meta">
|
|
Powered by <a href="https://graph.openaire.eu" target="_blank" class="uk-text-primary">OpenAIRE Research Graph</a>
|
|
</span>
|
|
<span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-meta">
|
|
. Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
|
|
</span>
|
|
</div>
|
|
<!--Feedback-->
|
|
<div *ngIf="properties.reCaptchaSiteKey" class="uk-width-expand uk-text-right">
|
|
<span class="uk-text-meta uk-text-xsmall">Anything wrong?</span>
|
|
<a (click)="showFeedback = true; scroll()" class="uk-text-xsmall"> Report an Issue</a>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
<div #graph_and_feedback id="graph_and_feedback" class="uk-text-xsmall uk-visible@m" uk-sticky="bottom: true;" [attr.offset]="graph_offset">
|
|
<ng-container *ngTemplateOutlet="graph_and_feedback_template"></ng-container>
|
|
</div>
|
|
<!-- Main content -->
|
|
<div class="uk-margin-medium-top">
|
|
<!-- Schema -->
|
|
<schema2jsonld *ngIf="organizationInfo" [data]=organizationInfo
|
|
[URL]="properties.domain + properties.baseLink+this.properties.searchLinkToOrganization+organizationInfo.relcanId"
|
|
type="organization">
|
|
</schema2jsonld>
|
|
<!-- Helper -->
|
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
|
[texts]="pageContents['top']"></helper>
|
|
<!-- Versions -->
|
|
<span *ngIf="organizationInfo.deletedByInferenceIds" class="uk-text-primary uk-flex uk-flex-middle">
|
|
<icon flex="true" ratio="0.8" name="auto_awesome_motion"></icon>
|
|
<a (click)="openDeletedByInference()" class="uk-text-primary uk-text-small uk-margin-small-left">
|
|
View all {{organizationInfo.deletedByInferenceIds.length}} versions
|
|
</a>
|
|
</span>
|
|
<!-- Landing header -->
|
|
<landing-header [properties]="properties" [title]="organizationInfo.title.name"
|
|
[subTitle]="(organizationInfo.name
|
|
&& organizationInfo.title.name !== organizationInfo.name)?organizationInfo.name:null"
|
|
[entityType]="'organization'">
|
|
</landing-header>
|
|
<!-- Basic info -->
|
|
<div class="uk-text-small">
|
|
<!-- Web Page -->
|
|
<div *ngIf="organizationInfo.title && organizationInfo.title.url" class="uk-margin-small-bottom">
|
|
<span class="uk-text-meta">Web page: </span>
|
|
<a [href]="organizationInfo.title.url" target="_blank" class="uk-button uk-button-text uk-text-lowercase uk-text-normal custom-external">
|
|
{{organizationInfo.title.url}}
|
|
</a>
|
|
</div>
|
|
<!-- Country -->
|
|
<div *ngIf="organizationInfo.country && !organizationInfo.country.toLowerCase().includes('unknown')">
|
|
<span class="uk-text-meta">Country: </span>{{organizationInfo.country}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Tabs section -->
|
|
<div id="main-tabs-div" uk-sticky="bottom: true; media: @m" [attr.offset]="offset" cls-active="active">
|
|
<div class="uk-padding uk-padding-remove-horizontal uk-padding-remove-bottom">
|
|
<showTitle *ngIf="stickyHeader" [titleName]="organizationInfo.title.name" classNames="uk-margin-remove-bottom" class="uk-visible@m"></showTitle>
|
|
<my-tabs (selectedActiveTab)="onSelectActiveTab($event)" [offsetForSticky]="offset" [(isSticky)]="stickyHeader">
|
|
<my-tab [active]="true" [tabTitle]="'Funding / Projects'" [tabId]="'projects'"
|
|
[tabNumber]="fetchProjects.searchUtils.totalResults > 0 ? fetchProjects.searchUtils.totalResults : ''">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchDataproviders && fetchDataproviders.searchUtils.totalResults > 0"
|
|
[tabTitle]="'Content Providers'" [tabId]="'dataProviders'"
|
|
[tabNumber]="fetchDataproviders.searchUtils.totalResults">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchPublications && fetchPublications.searchUtils.totalResults > 0"
|
|
[tabNumber]="fetchPublications.searchUtils.totalResults"
|
|
[tabTitle]="'Publications'" [tabId]="'publications'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchDatasets && fetchDatasets.searchUtils.totalResults > 0"
|
|
[tabNumber]="fetchDatasets.searchUtils.totalResults"
|
|
[tabTitle]="'Research Data'" [tabId]="'datasets'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchSoftware && fetchSoftware.searchUtils.totalResults > 0"
|
|
[tabNumber]="fetchSoftware.searchUtils.totalResults"
|
|
[tabTitle]="'Software'" [tabId]="'software'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchOrps && fetchOrps.searchUtils.totalResults > 0"
|
|
[tabNumber]="fetchOrps.searchUtils.totalResults"
|
|
[tabTitle]="'Other Research'" [tabId]="'other'">
|
|
</my-tab>
|
|
</my-tabs>
|
|
</div>
|
|
</div>
|
|
<!-- Tabs content section -->
|
|
<div id="landing-sections" class="uk-text-small">
|
|
<div id="projects" class="landing-section landing-section-height-auto uk-padding uk-padding-remove-horizontal">
|
|
<projectsInModal [fetchProjects]="fetchProjects"
|
|
[organizationId]="organizationId" [properties]=properties>
|
|
</projectsInModal>
|
|
</div>
|
|
<div *ngIf="fetchDataproviders && fetchDataproviders.searchUtils.totalResults > 0"
|
|
id="dataProviders" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<search-tab [fetch]="fetchDataproviders" resultType="dataprovider"
|
|
[params]="getParamsForSearchLink()"
|
|
[searchLinkToAdvancedPage]="properties.searchLinkToAdvancedDataProviders"
|
|
[properties]="properties">
|
|
</search-tab>
|
|
</div>
|
|
<div *ngIf="fetchPublications && fetchPublications.searchUtils.totalResults > 0"
|
|
id="publications" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<search-tab [fetch]="fetchPublications" resultType="publication"
|
|
[params]="getParamsForSearchLink('publications')"
|
|
[searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
|
|
[properties]="properties">
|
|
</search-tab>
|
|
</div>
|
|
<div *ngIf="fetchDatasets && fetchDatasets.searchUtils.totalResults > 0"
|
|
id="datasets" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<search-tab [fetch]="fetchDatasets" resultType="dataset"
|
|
[params]="getParamsForSearchLink('datasets')"
|
|
[searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
|
|
[properties]="properties">
|
|
</search-tab>
|
|
</div>
|
|
<div *ngIf="fetchSoftware && fetchSoftware.searchUtils.totalResults > 0"
|
|
id="software" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<search-tab [fetch]="fetchSoftware" resultType="software"
|
|
[params]="getParamsForSearchLink('software')"
|
|
[searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
|
|
[properties]="properties">
|
|
</search-tab>
|
|
</div>
|
|
<div *ngIf="fetchOrps && fetchOrps.searchUtils.totalResults > 0"
|
|
id="other" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<search-tab [fetch]="fetchOrps" resultType="other"
|
|
[params]="getParamsForSearchLink('other')"
|
|
[searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
|
|
[properties]="properties">
|
|
</search-tab>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Feedback -->
|
|
<feedback *ngIf="organizationInfo && properties.reCaptchaSiteKey" [organizationInfo]="organizationInfo"
|
|
[properties]="properties" [entityType]="'organization'" [fields]="feedbackFields"
|
|
[(showForm)]="showFeedback">
|
|
</feedback>
|
|
</div>
|
|
|
|
<!-- MODALS -->
|
|
<!-- Other versions -->
|
|
<modal-alert #AlertModalDeletedByInference *ngIf="organizationInfo && organizationInfo.deletedByInferenceIds" large="true">
|
|
<organizationsDeletedByInference *ngIf="deleteByInferenceOpened"
|
|
[id]="organizationInfo.objIdentifier"
|
|
[ids]="organizationInfo.deletedByInferenceIds"
|
|
[modal]="AlertModalDeletedByInference"
|
|
[type]="'organizations'">
|
|
</organizationsDeletedByInference>
|
|
</modal-alert>
|
|
<!-- Share -->
|
|
<modal-alert #addThisModal classBody="uk-flex uk-flex-center uk-flex-middle">
|
|
<addThis></addThis>
|
|
</modal-alert>
|
|
<!-- Download content lists -->
|
|
<modal-alert #downloadReportModal>
|
|
<div class="uk-padding-small uk-margin-small-left uk-margin-small-right">
|
|
<div class="uk-padding-small uk-padding-remove-vertical">
|
|
<div class="uk-animation-slide-top-small">
|
|
<ul class="uk-list uk-margin-remove-bottom" *ngIf="total > 0">
|
|
<li [attr.uk-tooltip]="total > 0 ? 'cls: uk-invisible' : 'cls: uk-active'"
|
|
title="No report available">
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
[class]="total > 0 ? '' : 'uk-disabled uk-text-muted'"
|
|
(click)="downloadFile(getCSVAffiliated('results'), 'results' + '-report')">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
all research outcomes (CSV)
|
|
</div>
|
|
</li>
|
|
<li [attr.uk-tooltip]="fetchPublications.searchUtils.totalResults > 0 ? 'cls: uk-invisible' : 'cls: uk-active'"
|
|
title="No report available">
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
[class]="fetchPublications.searchUtils.totalResults > 0 ? '' : 'uk-disabled uk-text-muted'"
|
|
(click)="downloadFile(getCSVAffiliated('publications'), 'publications' + '-report')">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
publications (CSV)
|
|
</div>
|
|
</li>
|
|
<li [attr.uk-tooltip]="fetchDatasets.searchUtils.totalResults > 0 ? 'cls: uk-invisible' : 'cls: uk-active'"
|
|
title="No report available">
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
[class]="fetchDatasets.searchUtils.totalResults > 0 ? '' : 'uk-disabled uk-text-muted'"
|
|
(click)="downloadFile(getCSVAffiliated('datasets'), 'datasets' + '-report')">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
research data (CSV)
|
|
</div>
|
|
</li>
|
|
<li [attr.uk-tooltip]="fetchSoftware.searchUtils.totalResults > 0 ? 'cls: uk-invisible' : 'cls: uk-active'"
|
|
title="No report available">
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
[class]="fetchSoftware.searchUtils.totalResults > 0 ? '' : 'uk-disabled uk-text-muted'"
|
|
(click)="downloadFile(getCSVAffiliated('software'), 'software' + '-report')">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
software (CSV)
|
|
</div>
|
|
</li>
|
|
<li [attr.uk-tooltip]="fetchOrps.searchUtils.totalResults > 0 ? 'cls: uk-invisible' : 'cls: uk-active'"
|
|
title="No report available">
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
[class]="fetchOrps.searchUtils.totalResults > 0 ? '' : 'uk-disabled uk-text-muted'"
|
|
(click)="downloadFile(getCSVAffiliated('other'), 'other' + '-report')">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
other research products (CSV)
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<div *ngIf="total == 0" class="uk-text-muted">
|
|
No reports available
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</modal-alert>
|
|
<!-- Download project lists -->
|
|
<modal-alert #downloadFunderReportModal>
|
|
<div class="uk-padding-small uk-margin-small-left uk-margin-small-right">
|
|
<div class="uk-padding-small uk-padding-remove-vertical" *ngIf="fetchProjects.funders && fetchProjects.funders.length > 0">
|
|
<div input type="select" placeholder="Select a funder to download report" inputClass="flat x-small"
|
|
[options]="fetchProjects.funders" [(value)]="funder"></div>
|
|
<div class="uk-animation-slide-top-small uk-margin-medium-top" *ngIf="funder && funder != ''">
|
|
<ul class="uk-list uk-margin-remove-bottom">
|
|
<li>
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
(click)="downloadFile(getFunderProjects(), funder.name + '-projects-report')">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
projects (CSV)
|
|
</div>
|
|
</li>
|
|
<li *ngFor="let contentType of contentTypes">
|
|
<div class="uk-flex uk-flex-middle uk-button uk-button-link uk-text-normal"
|
|
(click)="confirmOpenApplyAll(contentType[0])">
|
|
<icon name="download" flex="true" class="uk-margin-small-right"></icon>
|
|
{{contentType[1]}} (CSV)
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</modal-alert>
|
|
<modal-alert #AlertModalApplyAll (alertOutput)="confirmCloseApplyAll()"></modal-alert>
|
|
<modal-alert #AlertModalCsvError></modal-alert>
|
|
<modal-loading></modal-loading>
|