-
{{author.fullName}}
-
-
ORCID
-
-
-
{{" "}}
-
{{" "}}
-
-
Harvested from ORCID Public Data File
-
Derived by OpenAIRE algorithms or harvested from 3d party repositories
-
-
+
+
+
+
{{author.fullName}}
+
+
ORCID
-
-
- {{author.fullName}} in OpenAIRE
-
-
-
-
-
-
-
+
+
{{" "}}
+
{{" "}}
+
+
Harvested from ORCID Public Data File
+
Derived by OpenAIRE algorithms or harvested
+ from 3d party repositories
+
+
+
+
+
+
+ {{author.fullName}} in OpenAIRE
+
+
+
+
+
+
+
+
+
Authors:
-
-
-
-
authorsLimit" class="uk-text-meta">
- +{{authors.length-authorsLimit | number}} more
+
+
+
+ authorsLimit" class="uk-text-meta">
+ +{{authors.length - authorsLimit | number}} more
- authorsLimit && !viewAll">
+ authorsLimit && !viewAll">
- +{{authors.length-authorsLimit | number}} Authors
+ +{{authors.length - authorsLimit | number}} Authors
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
`
})
@@ -131,11 +152,11 @@ export class ShowAuthorsComponent {
public properties: EnvProperties = properties;
public routerHelper: RouterHelper = new RouterHelper();
- testBrowser: boolean;
+ isBrowser: boolean;
public clipboard;
constructor(private route: ActivatedRoute, @Inject(PLATFORM_ID) private platformId: string) {
- this.testBrowser = isPlatformBrowser(platformId);
+ this.isBrowser = isPlatformBrowser(platformId);
}
ngOnInit() {}
diff --git a/utils/authors/showAuthors.module.ts b/utils/authors/showAuthors.module.ts
index f98f42e5..e01f0f20 100644
--- a/utils/authors/showAuthors.module.ts
+++ b/utils/authors/showAuthors.module.ts
@@ -6,10 +6,12 @@ import {RouterModule} from '@angular/router';
import {ShowAuthorsComponent} from './showAuthors.component';
import {AlertModalModule} from "../modal/alertModal.module";
import {FullScreenModalModule} from "../modal/full-screen-modal/full-screen-modal.module";
+import {MobileDropdownModule} from "../mobile-dropdown/mobile-dropdown.module";
+import {IconsModule} from "../icons/icons.module";
@NgModule({
imports: [
- CommonModule, FormsModule, RouterModule, AlertModalModule, FullScreenModalModule
+ CommonModule, FormsModule, RouterModule, AlertModalModule, FullScreenModalModule, MobileDropdownModule, IconsModule
],
declarations: [
ShowAuthorsComponent
@@ -20,4 +22,4 @@ import {FullScreenModalModule} from "../modal/full-screen-modal/full-screen-moda
ShowAuthorsComponent
]
})
-export class ShowAuthorsModule { }
\ No newline at end of file
+export class ShowAuthorsModule { }
diff --git a/utils/mobile-dropdown/mobile-dropdown.component.ts b/utils/mobile-dropdown/mobile-dropdown.component.ts
index 8a24d7e9..ffe4380f 100644
--- a/utils/mobile-dropdown/mobile-dropdown.component.ts
+++ b/utils/mobile-dropdown/mobile-dropdown.component.ts
@@ -1,10 +1,10 @@
-import {Component, Input, OnInit} from "@angular/core";
+import {Component, ElementRef, Input, OnInit} from "@angular/core";
@Component({
selector: 'mobile-dropdown',
template: `
-
-
+
+
@@ -15,22 +15,48 @@ import {Component, Input, OnInit} from "@angular/core";
`
})
export class MobileDropdownComponent implements OnInit{
- @Input() toggle: HTMLLinkElement;
+ @Input() toggle: HTMLAnchorElement;
public opened: boolean = false;
+ private static MOBILE_DROPDOWN_CONTAINER = 'mobile-dropdown-container';
+
+ constructor(private element: ElementRef) {
+ }
ngOnInit() {
if(this.toggle) {
this.toggle.onclick = (ev) => {
- this.opened = !this.opened;
+ ev.preventDefault();
+ ev.stopPropagation();
+ if(this.opened) {
+ this.close();
+ } else {
+ this.open();
+ }
}
}
}
open() {
- this.opened = true;
+ if(!this.opened) {
+ let body = document.getElementsByTagName('body')[0];
+ let container = document.getElementById(MobileDropdownComponent.MOBILE_DROPDOWN_CONTAINER);
+ if(!container) {
+ container = document.createElement('div');
+ container.setAttribute('id', MobileDropdownComponent.MOBILE_DROPDOWN_CONTAINER);
+ body.append(container);
+ }
+ let parent = this.element.nativeElement.parentElement;
+ parent.removeChild(this.element.nativeElement);
+ container.append(this.element.nativeElement);
+ this.opened = true;
+ body.setAttribute('style', 'overflow-y: hidden');
+ }
}
close() {
- this.opened = false;
+ if(this.opened) {
+ this.opened = false;
+ document.getElementsByTagName('body')[0].setAttribute('style', '');
+ }
}
}
diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html
index f2120b2a..d8608abb 100644
--- a/utils/result-preview/result-preview.component.html
+++ b/utils/result-preview/result-preview.component.html
@@ -123,7 +123,7 @@
-