[Trunk|Library]: #4256: organization.component.html:
Hide 'Publications of organization (CSV) - based on the affiliation information' button if no publications. Hide APP BOX when no CSV buttons exist. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55063 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
0e66e3ac90
commit
321ac18aec
|
@ -106,112 +106,6 @@
|
|||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!--
|
||||
<ul class="uk-tab uk-visible@m" uk-tab="connect: #tab-content">
|
||||
<li (click)="activeTab='Publications'" [class]="activeTab == 'Publications'?'uk-active':''">
|
||||
<a>
|
||||
Publications
|
||||
<span class="uk-badge uk-badge-notification">
|
||||
{{fetchPublications.searchUtils.totalResults | number}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li (click)="activeTab='Projects'; projectsClicked=true;"
|
||||
[class]="activeTab == 'Projects'?'uk-active':''">
|
||||
<a>
|
||||
Projects
|
||||
<span class="uk-badge uk-badge-notification">
|
||||
{{fetchProjects.searchUtils.totalResultsNoFilters | number}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li (click)="activeTab='Content Providers'; searchDataprovidersInit()"
|
||||
[class]="activeTab == 'Content Providers'?'uk-active':''">
|
||||
<a>
|
||||
Content Providers
|
||||
<span class="uk-badge uk-badge-notification">
|
||||
{{fetchDataproviders.searchUtils.totalResults | number}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul> -->
|
||||
|
||||
<!-- <div class="uk-hidden@m uk-margin-top">
|
||||
<button class="uk-button uk-button-default" type="button">
|
||||
<span uk-navbar-toggle-icon></span> <span class="uk-margin-small-left">{{activeTab}}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<ul id="toggle-small-tabs" class="uk-subnav uk-subnav-pill uk-dropdown uk-hidden@m" uk-switcher="connect: #tab-content" uk-dropdown="mode: click" uk-toggle="target: #toggle-small-tabs">
|
||||
<li (click)="activeTab='Publications'" [class]="activeTab == 'Publications'?'uk-active':''">
|
||||
<a>
|
||||
Publications
|
||||
<span class="uk-badge uk-badge-notification">
|
||||
{{fetchPublications.searchUtils.totalResults | number}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li (click)="activeTab='Projects'; projectsClicked=true;"
|
||||
[class]="activeTab == 'Projects'?'uk-active':''">
|
||||
<a>
|
||||
Projects
|
||||
<span class="uk-badge uk-badge-notification">
|
||||
{{fetchProjects.searchUtils.totalResultsNoFilters | number}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li (click)="activeTab='Content Providers'; searchDataprovidersInit()"
|
||||
[class]="activeTab == 'Content Providers'?'uk-active':''">
|
||||
<a>
|
||||
Content Providers
|
||||
<span class="uk-badge uk-badge-notification">
|
||||
{{fetchDataproviders.searchUtils.totalResults | number}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul> -->
|
||||
|
||||
<!-- <div class="uk-margin custom-tab-content">
|
||||
|
||||
<div *ngIf="activeTab=='Publications'" class="uk-animation-fade">
|
||||
<errorMessages [status]="[fetchPublications.searchUtils.status]" [type]="'publications'"></errorMessages>
|
||||
|
||||
<div *ngIf="fetchPublications.searchUtils.totalResults > 0">
|
||||
<div class = "uk-text-right" *ngIf = "fetchPublications.searchUtils.totalResults > 10">
|
||||
<a [queryParams]="routerHelper.createQueryParams(['organization', 'og'], [organizationId, 'and'])"
|
||||
routerLinkActive="router-link-active" [routerLink]="linkToSearchPublications" class="uk-button uk-button-text">
|
||||
View all {{fetchPublications.searchUtils.totalResults | number}} results
|
||||
</a>
|
||||
</div>
|
||||
<tab-result [(results)]="fetchPublications.results"
|
||||
[(status)]= "fetchPublications.status"
|
||||
type="publication" urlParam="articleId">
|
||||
</tab-result>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="activeTab=='Projects'" class="uk-animation-fade">
|
||||
<searchingProjectsTab *ngIf="projectsClicked" [(fetchProjects)]="fetchProjects" [organizationId]="organizationId" [(properties)]=properties></searchingProjectsTab>
|
||||
</div>
|
||||
|
||||
<div *ngIf="activeTab=='Content Providers'" class="uk-animation-fade">
|
||||
<errorMessages [status]="[fetchDataproviders.searchUtils.status]" [type]="'content providers'"></errorMessages>
|
||||
|
||||
<div *ngIf="fetchDataproviders.searchUtils.totalResults > 0">
|
||||
|
||||
<div class = "uk-text-right" *ngIf = "fetchDataproviders.searchUtils.totalResults > 10">
|
||||
<a [queryParams]="routerHelper.createQueryParams(['organization', 'og'], [organizationId, 'and'])"
|
||||
routerLinkActive="router-link-active" [routerLink]="linkToSearchDataproviders" class="uk-button uk-button-text">
|
||||
View all {{fetchDataproviders.searchUtils.totalResults | number}} results
|
||||
</a>
|
||||
</div>
|
||||
<tab-result [(results)]="fetchDataproviders.results"
|
||||
[(status)]= "fetchDataproviders.status"
|
||||
type="dataprovider" urlParam="datasourceId">
|
||||
</tab-result>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="uk-width-large@m uk-width-1-1@s">
|
||||
|
@ -219,7 +113,7 @@
|
|||
<div>
|
||||
Share - Bookmark<addThis ></addThis>
|
||||
</div>
|
||||
<div class="uk-margin-medium-top uk-margin-medium-bottom">
|
||||
<div *ngIf="fetchPublications.searchUtils.totalResults > 0 || (fetchProjects && fetchProjects.funders.length > 0)" class="uk-margin-medium-top uk-margin-medium-bottom">
|
||||
<div class="uk-text-center uk-text-large">
|
||||
Application Box
|
||||
</div>
|
||||
|
@ -245,7 +139,7 @@
|
|||
</a>
|
||||
</li>
|
||||
</ng-container>
|
||||
<li>
|
||||
<li *ngIf="fetchPublications.searchUtils.totalResults > 0">
|
||||
<!-- url = this.downloadURLAPI+"format=csv-special&type=publications&fq=(((oaftype exact result) and (resulttypeid exact publication)) and (relprojectid exact '"+projects[index].id+"'))"-->
|
||||
|
||||
<!-- <a class="clickable" (click)="downloadFile(downloadURLAPI+'/organizations/'+organizationId+'?type=publications&format=csv')"> -->
|
||||
|
|
Loading…
Reference in New Issue