480 lines
30 KiB
HTML
480 lines
30 KiB
HTML
<div class="landing uk-section uk-padding-remove tm-middle">
|
|
<div class="tm-main">
|
|
<div class="dataprovider">
|
|
<div *ngIf="!showFeedback" class="uk-grid uk-margin-remove-left" uk-grid>
|
|
|
|
<!-- left box - actions -->
|
|
<div id="landing-left-sidebar" *ngIf="dataProviderInfo" class="uk-visible@s uk-padding-remove-horizontal">
|
|
<div class="uk-flex uk-flex-column uk-flex-between uk-flex-center uk-sticky"
|
|
uk-sticky="bottom: true" [attr.offset]="offset">
|
|
<div class="uk-align-center uk-text-center uk-margin-medium-top uk-flex uk-flex-column uk-flex-between">
|
|
<ng-container *ngIf="dataProviderInfo && hasMetrics">
|
|
<metrics [pageViews]="pageViews"
|
|
[id]="datasourceId" [entityType]="'datasources'"
|
|
[viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
|
|
(metricsResults)="metricsResults($event)" [properties]=properties>
|
|
</metrics>
|
|
</ng-container>
|
|
</div>
|
|
<div class="uk-margin-large-bottom uk-align-center">
|
|
<div class="uk-text-meta uk-text-uppercase">Actions</div>
|
|
<ul class="uk-list">
|
|
<!-- Share -->
|
|
<li class="uk-text-center">
|
|
<a (click)="openAddThisModal()"
|
|
[title]="'Share this '+openaireEntities.DATASOURCE+' in your social networks'"
|
|
[attr.uk-tooltip]="'pos: right; cls: uk-active 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>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- center box-->
|
|
<div class="uk-width-expand uk-padding-remove uk-background-default">
|
|
<div *ngIf="errorMessage.length > 0 || showLoading" class="uk-container uk-flex uk-flex-center uk-height-viewport uk-position-relative">
|
|
<div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger uk-width-2-3 uk-margin-xlarge-top"
|
|
role="alert">{{errorMessage}}</div>
|
|
<div *ngIf="showLoading" class="uk-position-center">
|
|
<loading></loading>
|
|
</div>
|
|
</div>
|
|
|
|
<ng-template #graph_and_feedback_template>
|
|
<div class="uk-flex uk-margin-small-top uk-margin-small-bottom" [class.uk-invisible]="!dataProviderInfo">
|
|
<!-- Last Index Info-->
|
|
<div class="uk-width-2-3@m uk-width-1-2">
|
|
<icon name="graph" customClass="text-graph"></icon>
|
|
<span class="uk-margin-small-left uk-text-baseline">
|
|
<span class="uk-text-meta">Powered by </span>
|
|
<a href="https://graph.openaire.eu" target="_blank" class="text-graph">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">See an issue?</span>
|
|
<a (click)="showFeedback = true; scroll()" class="uk-text-xsmall"> Report it here</a>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
|
|
<div #graph_and_feedback id="graph_and_feedback" class="uk-padding uk-padding-remove-vertical uk-blur-background uk-text-xsmall uk-visible@m"
|
|
uk-sticky="bottom: true;" [attr.offset]="graph_offset">
|
|
<ng-container *ngTemplateOutlet="graph_and_feedback_template"></ng-container>
|
|
</div>
|
|
|
|
<div class="uk-margin-large-left uk-margin-large-right" [style]="'margin-bottom: '+graph_height+'px'">
|
|
|
|
<ng-container *ngIf="dataProviderInfo">
|
|
<div [attr.style]="'margin-top: '+(graph_height? 'calc(40px + 20px - '+graph_height+'px)': '40px')">
|
|
<!-- schema.org-->
|
|
<schema2jsonld [data]=dataProviderInfo
|
|
[URL]="canonicalUrl"
|
|
type="datasource"
|
|
[otherURL]="(dataProviderInfo.provenance)?provenanceUrls:null"></schema2jsonld>
|
|
<!-- Actions for mobile viewport -->
|
|
<div class="uk-flex uk-flex-right uk-margin-medium-bottom uk-hidden@s">
|
|
<div>
|
|
<a (click)="openAddThisModal()"
|
|
[title]="'Share this '+openaireEntities.DATASOURCE+' in your social networks'"
|
|
[attr.uk-tooltip]="'pos: right; cls: uk-active 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>
|
|
</div>
|
|
</div>
|
|
|
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
|
[texts]="pageContents['top']"></helper>
|
|
|
|
<landing-header [properties]="properties" [title]="dataProviderInfo.title.name"
|
|
[subTitle]="(dataProviderInfo.officialName
|
|
&& dataProviderInfo.title.name !== dataProviderInfo.officialName)?dataProviderInfo.officialName:null"
|
|
[types]="dataProviderInfo.type ? [dataProviderInfo.type] : null">
|
|
</landing-header>
|
|
|
|
<!-- Labels -->
|
|
<div class="uk-margin-bottom uk-grid uk-grid-small uk-flex-middle" uk-grid>
|
|
<ng-container *ngIf="dataProviderInfo.compatibility &&
|
|
!(dataProviderInfo.compatibility.info == 'not available' && type == 'service')">
|
|
<div>
|
|
<span class="uk-label uk-text-truncate" title="Compatibility">
|
|
<a *ngIf="dataProviderInfo.compatibility.id"
|
|
[queryParams]="{datasourceId: dataProviderInfo.compatibility.id}" routerLinkActive="router-link-active"
|
|
[routerLink]="properties.searchLinkToDataProvider.split('?')[0]">
|
|
{{dataProviderInfo.compatibility.info}}
|
|
<ng-container *ngIf="dataProviderInfo.compatibility.name">{{dataProviderInfo.compatibility.name}}</ng-container>
|
|
</a>
|
|
<span *ngIf="!dataProviderInfo.compatibility.id">
|
|
{{dataProviderInfo.compatibility.info}}
|
|
</span>
|
|
<span *ngIf="dataProviderInfo.compatibility.name && !dataProviderInfo.compatibility.id">
|
|
{{dataProviderInfo.compatibility.name}}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</ng-container>
|
|
<ng-container *ngIf="dataProviderInfo.aggregationStatus && dataProviderInfo.aggregationStatus.fulltexts && dataProviderInfo.aggregationStatus.fulltexts > 0">
|
|
<div>
|
|
<span class="uk-label uk-text-truncate">OpenAIRE Text Mining</span>
|
|
</div>
|
|
</ng-container>
|
|
<ng-container *ngIf="dataProviderInfo.countries && removeUnknown(dataProviderInfo.countries).length > 0">
|
|
<ng-container *ngFor="let country of removeUnknown(dataProviderInfo.countries)">
|
|
<div>
|
|
<span class="uk-label label-country" title="Country">{{country}}</span>
|
|
</div>
|
|
</ng-container>
|
|
</ng-container>
|
|
<ng-container *ngIf="dataProviderInfo.thematic">
|
|
<div>
|
|
<span class="uk-label uk-text-truncate">Thematic</span>
|
|
</div>
|
|
</ng-container>
|
|
</div>
|
|
|
|
<!-- Web Page -->
|
|
<div *ngIf="dataProviderInfo.title && dataProviderInfo.title.url"
|
|
class="uk-text-small uk-margin-small-top">
|
|
<span class="uk-text-meta">Web page: </span>
|
|
<a [href]="dataProviderInfo.title.url" target="_blank"
|
|
class="uk-button uk-button-text uk-text-lowercase uk-text-normal custom-external">
|
|
{{dataProviderInfo.title.url}}
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Identifiers -->
|
|
<div *ngIf="dataProviderInfo.identifiers && dataProviderInfo.identifiers.size > 0" class="uk-margin-small-top uk-text-small">
|
|
<showIdentifiers [identifiers]="dataProviderInfo.identifiers" [showViewAll]="true"></showIdentifiers>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="main-tabs-div" class="uk-sticky uk-blur-background"
|
|
uk-sticky="bottom: true; media: @m" [attr.offset]="offset">
|
|
<div class="uk-padding uk-padding-remove-horizontal uk-padding-remove-bottom">
|
|
<landing-header *ngIf="stickyHeader" class="uk-visible@m"
|
|
[properties]="properties" [title]="dataProviderInfo.title.name"
|
|
[subTitle]="(dataProviderInfo.officialName
|
|
&& dataProviderInfo.title.name !== dataProviderInfo.officialName)?dataProviderInfo.officialName:null"
|
|
[types]="dataProviderInfo.type ? [dataProviderInfo.type] : null"
|
|
isSticky="true">
|
|
</landing-header>
|
|
<!-- <showTitle *ngIf="stickyHeader" [titleName]="dataProviderInfo.title.name" classNames="uk-margin-remove-bottom" class="uk-visible@m"></showTitle>-->
|
|
<my-tabs (selectedActiveTab)="onSelectActiveTab($event)" [offsetForSticky]="offset" [(isSticky)]="stickyHeader">
|
|
<my-tab [tabTitle]="'Summary'" [tabId]="'summary'" [active]="true"></my-tab>
|
|
<my-tab *ngIf="fetchProjects.searchUtils.totalResults > 0"
|
|
[tabTitle]="openaireEntities.PROJECTS" [tabNumber]="fetchProjects.searchUtils.totalResults"
|
|
[tabId]="'projects'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchDataproviders.searchUtils.totalResults > 0"
|
|
[tabTitle]="openaireEntities.DATASOURCES" [tabNumber]="fetchDataproviders.searchUtils.totalResults"
|
|
[tabId]="'datasources'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchPublications.searchUtils.totalResults > 0"
|
|
[tabTitle]="openaireEntities.PUBLICATIONS" [tabNumber]="fetchPublications.searchUtils.totalResults"
|
|
[tabId]="'publications'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchDatasets.searchUtils.totalResults > 0"
|
|
[tabTitle]="openaireEntities.DATASETS" [tabNumber]="fetchDatasets.searchUtils.totalResults"
|
|
[tabId]="'datasets'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchSoftware.searchUtils.totalResults > 0"
|
|
[tabTitle]="openaireEntities.SOFTWARE" [tabNumber]="fetchSoftware.searchUtils.totalResults"
|
|
[tabId]="'software'">
|
|
</my-tab>
|
|
<my-tab *ngIf="fetchOrps.searchUtils.totalResults > 0"
|
|
[tabTitle]="openaireEntities.OTHER" [tabNumber]="fetchOrps.searchUtils.totalResults"
|
|
[tabId]="'other'">
|
|
</my-tab>
|
|
<my-tab *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
|
|
|| fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
|
|
[tabTitle]="'Related '+openaireEntities.DATASOURCES" [tabId]="'relatedDatasources'">
|
|
</my-tab>
|
|
<my-tab *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
|
|
|| fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
|
|
[tabTitle]="'Statistics'" customClass="statistics" [tabId]="'statistics'" [active]="false">
|
|
</my-tab>
|
|
</my-tabs>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="landing-sections" class="uk-text-small">
|
|
<div id="summary" class="landing-section landing-section-height-auto">
|
|
<div class="uk-card uk-card-default card-tab uk-grid uk-margin-remove-left uk-margin-medium-top uk-margin-medium-bottom">
|
|
<div *ngIf="!(hasPrimaryInfo || (!aggregationStatusIsInitialized || hasAggregationStatusInfo)) && !hasSecondaryInfo"
|
|
class="uk-width-expand uk-height-small uk-flex uk-flex-center uk-flex-middle">
|
|
<div class="uk-animation-fade uk-text-meta uk-text-large">
|
|
No summary information available
|
|
</div>
|
|
</div>
|
|
<div *ngIf="hasPrimaryInfo || (!aggregationStatusIsInitialized || hasAggregationStatusInfo)"
|
|
class="uk-width-expand uk-padding uk-inline">
|
|
<!-- Description -->
|
|
<div *ngIf="dataProviderInfo.description && dataProviderInfo.description.length > 0"
|
|
class="uk-margin-medium-bottom">
|
|
<div class="uk-text-justify ">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Description</div>
|
|
<div class=" uk-height-max-medium uk-overflow-auto">
|
|
<div *ngFor="let description of dataProviderInfo.description" class="uk-margin-small-bottom "
|
|
[innerHtml]="description"></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<ul *ngIf="hasJournalInfo" class="uk-list uk-margin-medium-bottom uk-margin-remove-top">
|
|
<showPublisher [journal]="dataProviderInfo.journal" [properties]="properties"></showPublisher>
|
|
</ul>
|
|
|
|
<div *ngIf="hasAggregationStatusInfo || dataProviderInfo.fundedContent"
|
|
class="uk-margin-medium-bottom uk-animation-fade uk-animation-fast">
|
|
<span *ngIf="dataProviderInfo.aggregationStatus?.fulltexts && dataProviderInfo.aggregationStatus?.fulltexts != -1"
|
|
class="uk-margin-right uk-display-inline-block">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Collected full-texts</div>
|
|
{{dataProviderInfo.aggregationStatus.fulltexts | number}}
|
|
</span>
|
|
<span *ngIf="dataProviderInfo.fundedContent && dataProviderInfo.fundedContent > 0"
|
|
class="uk-display-inline-block">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Results with funding information</div>
|
|
{{dataProviderInfo.fundedContent | number}}
|
|
</span>
|
|
</div>
|
|
<div *ngIf="!aggregationStatusIsInitialized || !dataProviderInfo.fundedContent"
|
|
class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert">
|
|
<span class="loading-gif uk-align-center"></span>
|
|
</div>
|
|
|
|
<div *ngIf="dataProviderInfo.countries != undefined && dataProviderInfo.countries.length > 0"
|
|
class="uk-margin-medium-bottom">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Countries</div>
|
|
{{dataProviderInfo.countries.join(", ")}}
|
|
</div>
|
|
|
|
<div *ngIf="dataProviderInfo.jurisdiction" class="uk-margin-medium-bottom">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Jurisdiction</div>
|
|
{{dataProviderInfo.jurisdiction}}
|
|
</div>
|
|
|
|
<div *ngIf="dataProviderInfo.contentpolicy" class="uk-margin-medium-bottom">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Content policy</div>
|
|
{{dataProviderInfo.contentpolicy}}
|
|
</div>
|
|
|
|
<!-- Subjects -->
|
|
<div *ngIf="dataProviderInfo.subjects && dataProviderInfo.subjects.length > 0"
|
|
class="uk-margin-medium-bottom uk-margin-bottom">
|
|
<div class="uk-height-max-medium uk-overflow-auto">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Subjects </div>
|
|
<span>{{dataProviderInfo.subjects.slice(0, lessBtnSubjects ? dataProviderInfo.subjects.length : thresholdSubjects).join(", ")}}</span>
|
|
<span *ngIf="dataProviderInfo.subjects.length > thresholdSubjects && !lessBtnSubjects"> ... </span>
|
|
</div>
|
|
<div *ngIf="dataProviderInfo.subjects.length > thresholdSubjects && !lessBtnSubjects"
|
|
class="uk-width-1-1 uk-text-right">
|
|
<a (click)="viewAllSubjectsClick();" class="view-more-less-link">
|
|
View all {{dataProviderInfo.subjects.length | number}} subjects
|
|
</a>
|
|
</div>
|
|
<div *ngIf="viewAllSubjects && lessBtnSubjects" class="uk-width-1-1 uk-text-right">
|
|
<a (click)="viewAllSubjects = !viewAllSubjects; lessBtnSubjects=false;" class="view-more-less-link">View less subjects</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div *ngIf="hasSecondaryInfo"
|
|
[class]="'uk-inline uk-padding uk-padding-remove-horizontal ' + (hasPrimaryInfo?'uk-width-1-3@m': 'uk-width-expand')">
|
|
<div class="uk-padding uk-padding-remove-vertical uk-height-1-1">
|
|
<div *ngIf="dataProviderInfo.oaiPmhURL || dataProviderInfo.provenance?.size > 0"
|
|
class="uk-margin-medium-bottom">
|
|
<div *ngIf="dataProviderInfo.oaiPmhURL" class="uk-margin-medium-bottom">
|
|
<div class="uk-text-meta uk-margin-small-bottom">OAI-PMH</div>
|
|
<a target="_blank" href="{{dataProviderInfo.oaiPmhURL}}" class="custom-external">
|
|
{{dataProviderInfo.oaiPmhURL}}
|
|
</a>
|
|
</div>
|
|
<div *ngIf="dataProviderInfo.provenance?.size > 0" class="uk-display-inline-block">
|
|
<div class="uk-text-meta uk-margin-small-bottom">Detailed information @ </div>
|
|
<span *ngFor="let provenance of getKeys(dataProviderInfo.provenance); let i=index">
|
|
<a *ngIf="dataProviderInfo.provenance.get(provenance).url.length == 1" class="custom-external uk-link-text"
|
|
target="_blank" href="{{dataProviderInfo.provenance.get(provenance).url}}">
|
|
{{provenance}}
|
|
</a>
|
|
<ng-container *ngIf="dataProviderInfo.provenance.get(provenance).url.length > 1">
|
|
<span class="custom-external">{{provenance}}</span>
|
|
<ng-container *ngFor="let url of dataProviderInfo.provenance.get(provenance).url; let i=index">
|
|
[<a target="_blank" href="{{url}}">{{i}}</a>]
|
|
</ng-container>
|
|
</ng-container>
|
|
<span *ngIf="i < dataProviderInfo.provenance.size-1">, </span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="dataProviderInfo.organizations && dataProviderInfo.organizations.length > 0"
|
|
class="uk-margin-medium-bottom">
|
|
<div class="uk-text-meta uk-margin-small-bottom">{{openaireEntities.ORGANIZATIONS}}</div>
|
|
<ng-container *ngTemplateOutlet="organizations_template; context: { threshold: lessBtnOrganizations ? dataProviderInfo.organizations.length : thresholdOrganizations }"></ng-container>
|
|
|
|
<div *ngIf="dataProviderInfo.organizations.length > thresholdOrganizations && !lessBtnOrganizations"
|
|
class="uk-width-1-1 uk-text-right">
|
|
<a (click)="viewAllOrganizationsClick();" class="view-more-less-link">
|
|
View all {{dataProviderInfo.organizations.length | number}} organizations
|
|
</a>
|
|
</div>
|
|
<div *ngIf="viewAllOrganizations && lessBtnOrganizations" class="uk-width-1-1 uk-text-right">
|
|
<a (click)="viewAllOrganizations = !viewAllOrganizations; lessBtnOrganizations=false;" class="view-more-less-link">View less organizations</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Projects-->
|
|
<ng-container *ngIf="fetchProjects.searchUtils.totalResults > 0">
|
|
<div id="projects" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<search-tab [fetch]="fetchProjects" resultType="project"
|
|
[params]="getParamsForSearchLink()"
|
|
[searchLinkToAdvancedPage]="properties.searchLinkToAdvancedProjects"
|
|
[properties]="properties">
|
|
</search-tab>
|
|
</div>
|
|
</ng-container>
|
|
<!-- Datasources -->
|
|
<ng-container *ngIf="fetchDataproviders.searchUtils.totalResults > 0">
|
|
<div id="datasources" 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>
|
|
</ng-container>
|
|
<!--Publications-->
|
|
<ng-container *ngIf="fetchPublications.searchUtils.totalResults > 0">
|
|
<div 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>
|
|
</ng-container>
|
|
<!--Research Data-->
|
|
<ng-container *ngIf="fetchDatasets.searchUtils.totalResults > 0">
|
|
<div 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>
|
|
</ng-container>
|
|
<!--Software-->
|
|
<ng-container *ngIf="fetchSoftware.searchUtils.totalResults > 0">
|
|
<div 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>
|
|
</ng-container>
|
|
<!--Other-->
|
|
<ng-container *ngIf="fetchOrps.searchUtils.totalResults > 0">
|
|
<div 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>
|
|
</ng-container>
|
|
<!--Related Datasources-->
|
|
<ng-container *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
|
|
|| fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)">
|
|
<div id="relatedDatasources" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<relatedDatasourcesTab
|
|
[dataproviderId]="datasourceId"
|
|
[results]="dataProviderInfo.relatedDatasources"
|
|
[loading]="loadingRelatedDatasources"
|
|
[fetchResults]="fetchAggregatorsResults"
|
|
[collectedFromName]="dataProviderInfo.title.name"
|
|
[properties]=properties
|
|
[modal]="relatedDatasourcesModal">
|
|
</relatedDatasourcesTab>
|
|
</div>
|
|
</ng-container>
|
|
<!--Statistics-->
|
|
<ng-container *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
|
|
|| fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)">
|
|
|
|
<div id="statistics" class="landing-section uk-padding uk-padding-remove-horizontal">
|
|
<div class="uk-text-meta uk-text-large uk-text-uppercase uk-margin-medium-bottom">Statistics</div>
|
|
<errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status,
|
|
fetchSoftware.searchUtils.status, fetchOrps.searchUtils.status]"
|
|
[type]="'statistics'" tab_error_class=true></errorMessages>
|
|
<div *ngIf="statsClicked &&
|
|
(fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
|
|
|| fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)">
|
|
<statisticsTab [fetchPublications]="fetchPublications" [fetchDatasets]="fetchDatasets"
|
|
[fetchSoftware]="fetchSoftware" [fetchOther]="fetchOrps"
|
|
[datasourceId]="datasourceId">
|
|
</statisticsTab>
|
|
</div>
|
|
</div>
|
|
</ng-container>
|
|
</div>
|
|
<div class="uk-text-xsmall uk-hidden@m"><ng-container *ngTemplateOutlet="graph_and_feedback_template"></ng-container></div>
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
|
[texts]="pageContents['bottom']"></helper>
|
|
</ng-container>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<feedback *ngIf="dataProviderInfo && properties.reCaptchaSiteKey" [dataProviderInfo]="dataProviderInfo"
|
|
[properties]="properties" [entityType]="getTypeName()" [fields]="feedbackFields"
|
|
[(showForm)]="showFeedback"></feedback>
|
|
|
|
<modal-alert *ngIf="dataProviderInfo" #addThisModal classBody="uk-flex uk-flex-center uk-flex-middle">
|
|
<addThis></addThis>
|
|
</modal-alert>
|
|
|
|
<modal-alert *ngIf="dataProviderInfo && dataProviderInfo.organizations" #organizationsModal>
|
|
<ng-container *ngTemplateOutlet="organizations_template; context: { threshold: dataProviderInfo.organizations.length}"></ng-container>
|
|
</modal-alert>
|
|
|
|
<ng-template #organizations_template let-threshold="threshold">
|
|
<span *ngFor="let organization of dataProviderInfo.organizations.slice(0, threshold); let i=index" class="uk-text-small"
|
|
[attr.uk-tooltip]="organization.acronym && organization.name ? 'pos:right; delay:10' : 'cls: uk-invisible'"
|
|
[title]="organization.name">
|
|
<a *ngIf="organization.id" class="uk-link-text"
|
|
[queryParams]="{organizationId: organization.id}" routerLinkActive="router-link-active"
|
|
[routerLink]="properties.searchLinkToOrganization.split('?')[0]">
|
|
{{(organization.acronym) ? organization.acronym : ''}}
|
|
{{(!organization.acronym && organization.name) ? organization.name : ''}}
|
|
</a>
|
|
<span *ngIf="!organization.id">
|
|
<span *ngIf="organization.acronym">{{organization.acronym}}</span>
|
|
<span *ngIf="!organization.acronym && organization.name">{{organization.name}}</span>
|
|
<span *ngIf="(i < dataProviderInfo.organizations.length-1)">,</span>
|
|
</span>
|
|
<span *ngIf="(i < dataProviderInfo.organizations.length-1)">, </span>
|
|
</span>
|
|
<span *ngIf="dataProviderInfo.organizations.length > threshold"> ... </span>
|
|
</ng-template>
|
|
|
|
<modal-alert *ngIf="dataProviderInfo && dataProviderInfo.subjects" #subjectsModal>
|
|
<span>{{dataProviderInfo.subjects.join(", ")}}</span>
|
|
</modal-alert>
|