[Connect|Trunk]: Curators, Affiliation and Invite componenents: On short View, title must not be changed.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56894 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
6e16d55032
commit
5b84ca8adc
|
@ -26,7 +26,7 @@
|
|||
<div *ngIf="showLoading" class="uk-animation-fade uk-width-1-1" role="alert">
|
||||
<span class="loading-gif uk-align-center"></span>
|
||||
</div>
|
||||
<div *ngIf="fullView"
|
||||
<div *ngIf="longView"
|
||||
class="uk-child-width-1-5@l uk-child-width-1-3@m uk-child-width-1-2@s
|
||||
uk-text-center uk-grid-match uk-grid-small uk-grid-margin uk-margin-remove"
|
||||
uk-height-match="target: > div > .uk-card > .affiliation-content > .affiliation-logo"
|
||||
|
@ -50,7 +50,7 @@
|
|||
Related Organizations ({{affiliations.length}})
|
||||
</div>
|
||||
|
||||
<div *ngIf="!fullView" [class]="'uk-position-relative uk-visible-toggle'" tabindex="-1"
|
||||
<div *ngIf="!longView" [class]="'uk-position-relative uk-visible-toggle'" tabindex="-1"
|
||||
[attr.uk-slider]="sliderOptions">
|
||||
<div
|
||||
[class]="'uk-align-center uk-width-'+(affiliations.length >= affiliationsInSlider ? affiliationsInSlider : affiliations.length)+'-'+affiliationsInSlider">
|
||||
|
@ -88,6 +88,6 @@
|
|||
</div>
|
||||
</ng-container>
|
||||
|
||||
<!--<div *ngIf="affiliations.length == 0 && fullView" class="uk-animation-fade uk-alert uk-alert-primary" role="alert">-->
|
||||
<!--<div *ngIf="affiliations.length == 0 && longView" class="uk-animation-fade uk-alert uk-alert-primary" role="alert">-->
|
||||
<!-- No affiliations available-->
|
||||
<!--</div>-->
|
||||
|
|
|
@ -15,7 +15,7 @@ import {PiwikHelper} from "../utils/piwikHelper";
|
|||
})
|
||||
export class AffiliationsComponent {
|
||||
@Input() getAffiliationsFromAPI: boolean = false;
|
||||
@Input() fullView: boolean = false;
|
||||
@Input() longView: boolean = false;
|
||||
@Input() communityFirstPage: boolean = false;
|
||||
@Input() affiliationsInSlider: number = 5;
|
||||
@Input() affiliations: Affiliation[] = [];
|
||||
|
@ -49,7 +49,7 @@ export class AffiliationsComponent {
|
|||
}
|
||||
|
||||
this.properties = data.envSpecific;
|
||||
|
||||
if(this.longView) {
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, PiwikHelper.getSiteId(this.communityId, this.properties.environment)).subscribe();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ export class AffiliationsComponent {
|
|||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
this.updateDescription("OpenAIRE - Connect, Community Gateway, research community, organizations");
|
||||
|
||||
}
|
||||
if(this.getAffiliationsFromAPI) {
|
||||
this.showLoading = true;
|
||||
this.affiliationService.initAffiliations(this.properties, this.properties.communityAPI + this.communityId + "/organizations");
|
||||
|
|
|
@ -521,7 +521,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div *ngIf="isRouteEnabled('/curators')" class="uk-width-3-5@m uk-width-1-1@s uk-margin-top">
|
||||
<curators [main]="false" [managers]="community.managers" [communityId]="communityId"></curators>
|
||||
<curators [longView]="false" [managers]="community.managers" [communityId]="communityId"></curators>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -532,7 +532,7 @@
|
|||
<ng-container *ngIf=" isRouteEnabled('/organizations')">
|
||||
<div class="uk-container uk-margin-bottom uk-grid">
|
||||
<div class="uk-width-expand uk-padding-remove">
|
||||
<affiliations [fullView]="false" [getAffiliationsFromAPI]="true" [communityFirstPage]="true"></affiliations>
|
||||
<affiliations [longView]="false" [getAffiliationsFromAPI]="true" [communityFirstPage]="true"></affiliations>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld>
|
||||
|
||||
<ng-container *ngIf="main else child">
|
||||
<ng-container *ngIf="longView else shortView">
|
||||
<div class="image-front-topbar uk-section-default uk-position-relative"
|
||||
uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}"
|
||||
tm-header-transparent="light">
|
||||
|
@ -46,7 +46,7 @@
|
|||
<div class="uk-width-expand uk-margin-left uk-text-meta uk-flex-first">
|
||||
Affiliations
|
||||
</div>
|
||||
<affiliations [fullView]="false" [affiliations]="curator.affiliations"
|
||||
<affiliations [longView]="false" [affiliations]="curator.affiliations"
|
||||
[affiliationsInSlider]="curator.affiliations.length"
|
||||
class="uk-width-2-3"></affiliations>
|
||||
</div>
|
||||
|
@ -56,7 +56,7 @@
|
|||
<div class="uk-text-meta uk-margin-small-bottom">
|
||||
Affiliations
|
||||
</div>
|
||||
<affiliations [fullView]="false" [affiliations]="curator.affiliations"></affiliations>
|
||||
<affiliations [longView]="false" [affiliations]="curator.affiliations"></affiliations>
|
||||
</div>
|
||||
<div class="uk-width-1-1 uk-first-column uk-margin-top uk-height-max-large uk-overflow-auto">
|
||||
<div class="uk-text-meta uk-margin-small-bottom">
|
||||
|
@ -88,7 +88,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-template #child>
|
||||
<ng-template #shortView>
|
||||
<span *ngIf=" curators && curators.length > 0" class="lowOpacityColor uk-width-1-1">
|
||||
Curators
|
||||
</span>
|
||||
|
|
|
@ -21,7 +21,7 @@ import {PiwikHelper} from "../utils/piwikHelper";
|
|||
export class CuratorsComponent {
|
||||
@Input() managers: string[];
|
||||
@Input() communityId = null;
|
||||
@Input() main = true;
|
||||
@Input() longView = true;
|
||||
public downloadUrl = null;
|
||||
public showLoading = true;
|
||||
|
||||
|
@ -52,7 +52,7 @@ export class CuratorsComponent {
|
|||
this.route.data.subscribe((data: { envSpecific: EnvProperties }) => {
|
||||
this.showLoading = true;
|
||||
this.properties = data.envSpecific;
|
||||
|
||||
if(this.longView) {
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, PiwikHelper.getSiteId(this.communityId, this.properties.environment)).subscribe();
|
||||
}
|
||||
|
@ -61,9 +61,9 @@ export class CuratorsComponent {
|
|||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
this.updateDescription("OpenAIRE - Connect, Community Gateway, research community");
|
||||
|
||||
}
|
||||
this.downloadUrl = this.properties.utilsService + '/download/';
|
||||
if(!this.main) {
|
||||
if(!this.longView) {
|
||||
let emails = this.managers.join();
|
||||
this.curatorsService.getCurators(this.properties,
|
||||
this.properties.adminToolsAPIURL + '/curator?emails=' + emails).subscribe(curators => {
|
||||
|
|
|
@ -10,9 +10,11 @@ import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
|||
template: `
|
||||
<div class=" uk-section tm-middle uk-container uk-padding-remove-top uk-margin-top" id="tm-main">
|
||||
<div class="uk-container uk-margin-bottom">
|
||||
<div class="uk-article-title custom-article-title uk-margin-bottom"> Organizations related to the community</div>
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
|
||||
<affiliations [fullView]="true" [getAffiliationsFromAPI]="true"></affiliations>
|
||||
<div class="uk-article-title custom-article-title uk-margin-bottom"> Organizations related to the community
|
||||
</div>
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||
[texts]="pageContents['top']"></helper>
|
||||
<affiliations [longView]="true" [getAffiliationsFromAPI]="true"></affiliations>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
|
|
|
@ -100,6 +100,7 @@ export class InviteComponent implements OnInit {
|
|||
this.communityId = communityId['communityId'];
|
||||
}
|
||||
|
||||
if(this.longView) {
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, PiwikHelper.getSiteId(this.communityId, this.properties.environment)).subscribe();
|
||||
}
|
||||
|
@ -108,7 +109,7 @@ export class InviteComponent implements OnInit {
|
|||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
this.updateDescription("OpenAIRE - Connect, Community Gateway, research community, invite");
|
||||
|
||||
}
|
||||
this.communityIdParam = (this.properties.environment != "development") ? {} : {communityId: this.communityId};
|
||||
if (this.communityId != null && this.communityId != '') {
|
||||
//this.getDivContents();
|
||||
|
|
Loading…
Reference in New Issue