Merge branch 'develop' of code-repo.d4science.org:MaDgIK/openaire-library into develop
This commit is contained in:
commit
f9dcdd81cc
|
@ -151,7 +151,7 @@ import {RouterHelper} from "../../utils/routerHelper.class";
|
||||||
<span>Thematic</span>
|
<span>Thematic</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<!-- Projects -->
|
<!-- Projects -->
|
||||||
<span uk-tooltip="Projects" *ngIf="projects && projects.length > 0" [class.truncated]="projects.length > 3">
|
<span uk-tooltip="Funded By" *ngIf="projects && projects.length > 0" [class.truncated]="projects.length > 3">
|
||||||
{{projectNames.slice(0,3).join(', ')}}
|
{{projectNames.slice(0,3).join(', ')}}
|
||||||
</span>
|
</span>
|
||||||
<!-- Organizations -->
|
<!-- Organizations -->
|
||||||
|
@ -238,9 +238,9 @@ export class EntityMetadataComponent {
|
||||||
value = value + ' | ' + (project.acronym ? project.acronym :
|
value = value + ' | ' + (project.acronym ? project.acronym :
|
||||||
(project.title.length > 25 ? (project.title.slice(0, 25) + '...'): project.title));
|
(project.title.length > 25 ? (project.title.slice(0, 25) + '...'): project.title));
|
||||||
}
|
}
|
||||||
if(project.code) {
|
// if(project.code) {
|
||||||
value = value + ' (' + project.code + ')';
|
// value = value + ' (' + project.code + ')';
|
||||||
}
|
// }
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ import {AlertModal} from "../../../utils/modal/alert";
|
||||||
[languages]="languages" [programmingLanguages]="programmingLanguages"
|
[languages]="languages" [programmingLanguages]="programmingLanguages"
|
||||||
[compatibility]="compatibility" [aggregationStatus]="aggregationStatus"
|
[compatibility]="compatibility" [aggregationStatus]="aggregationStatus"
|
||||||
[thematic]="thematic" [type]="type" [prevPath]="prevPath"
|
[thematic]="thematic" [type]="type" [prevPath]="prevPath"
|
||||||
|
[countries]="countries" [projects]="projects"
|
||||||
></entity-metadata>
|
></entity-metadata>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="authors">
|
<div *ngIf="authors">
|
||||||
|
@ -61,4 +62,6 @@ export class LandingHeaderComponent {
|
||||||
@Input() thematic: boolean; // data provider landing
|
@Input() thematic: boolean; // data provider landing
|
||||||
@Input() type; // data provider landing
|
@Input() type; // data provider landing
|
||||||
@Input() prevPath: string = "";
|
@Input() prevPath: string = "";
|
||||||
|
@Input() countries;
|
||||||
|
@Input() projects;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,12 @@ import {EnvProperties} from "../../utils/properties/env-properties";
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'showPublisher, [showPublisher]',
|
selector: 'showPublisher, [showPublisher]',
|
||||||
template: `
|
template: `
|
||||||
|
<ng-container *ngIf="publisher">
|
||||||
|
<span [attr.uk-tooltip]="'cls: uk-active'" [title]="'Publisher'">{{publisher}}</span>
|
||||||
|
<span *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
||||||
|
|| journal['volume'] || journal['eissn'] || journal['issue'])"
|
||||||
|
class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||||
|
</ng-container>
|
||||||
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
||||||
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
||||||
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
||||||
|
@ -64,10 +70,6 @@ import {EnvProperties} from "../../utils/properties/env-properties";
|
||||||
<span *ngIf=" journal['journal'] && (journal['issn'] || journal['eissn'] || journal['lissn'])">)</span>
|
<span *ngIf=" journal['journal'] && (journal['issn'] || journal['eissn'] || journal['lissn'])">)</span>
|
||||||
</span>
|
</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<span *ngIf="publisher" class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
|
||||||
</ng-container>
|
|
||||||
<ng-container *ngIf="publisher">
|
|
||||||
<span [attr.uk-tooltip]="'cls: uk-active'" [title]="'Publisher'">{{publisher}}</span>
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
|
@ -222,7 +222,8 @@
|
||||||
[date]="resultLandingInfo.dateofacceptance" [embargoEndDate]="resultLandingInfo.embargoEndDate"
|
[date]="resultLandingInfo.dateofacceptance" [embargoEndDate]="resultLandingInfo.embargoEndDate"
|
||||||
[publisher]="resultLandingInfo.publisher" [journal]="resultLandingInfo.journal"
|
[publisher]="resultLandingInfo.publisher" [journal]="resultLandingInfo.journal"
|
||||||
[languages]="resultLandingInfo.languages" [programmingLanguages]="resultLandingInfo.programmingLanguages"
|
[languages]="resultLandingInfo.languages" [programmingLanguages]="resultLandingInfo.programmingLanguages"
|
||||||
[prevPath]="prevPath">
|
[prevPath]="prevPath" [countries]="resultLandingInfo.countries"
|
||||||
|
[projects]="resultLandingInfo.fundedByProjects">
|
||||||
</landing-header>
|
</landing-header>
|
||||||
<!-- Labels -->
|
<!-- Labels -->
|
||||||
<!-- Not used anymore - access labels will be in action bars, languages in the landing-header component -->
|
<!-- Not used anymore - access labels will be in action bars, languages in the landing-header component -->
|
||||||
|
|
|
@ -566,7 +566,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
if (this.formAsControl?.validator) {
|
if (this.formAsControl?.validator || this.formAsArray?.validator) {
|
||||||
let validator = this.formControl.validator({} as AbstractControl);
|
let validator = this.formControl.validator({} as AbstractControl);
|
||||||
this.required = (validator && validator.required);
|
this.required = (validator && validator.required);
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,6 +205,9 @@ export class AlertModal implements OnInit, AfterViewInit, OnDestroy {
|
||||||
open() {
|
open() {
|
||||||
if(typeof UIkit !== "undefined") {
|
if(typeof UIkit !== "undefined") {
|
||||||
UIkit.modal(this.element.nativeElement).show();
|
UIkit.modal(this.element.nativeElement).show();
|
||||||
|
if(this.overflowBody) {
|
||||||
|
this.bodyElement.nativeElement.scrollTo(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue