[Library | new-theme]: resultLanding.component.ts: [Bug fix] Added check if "resultLandingInfo.hostedBy_collectedFrom" is initialized | dropdown-filter.component.ts: [Bug fix] In method "isOpen()" added check if in client side.
This commit is contained in:
parent
9c194a3a56
commit
ac70b8c260
|
@ -793,9 +793,9 @@ export class ResultLandingComponent {
|
|||
|| (resultLandingInfo.description && resultLandingInfo.description[0] && this.hasKeyword(resultLandingInfo.description[0],abstract_words))
|
||||
) &&
|
||||
((resultLandingInfo.publisher && resultLandingInfo.publisher.toLowerCase() == "zenodo") ||
|
||||
resultLandingInfo.hostedBy_collectedFrom.filter(value => {
|
||||
(resultLandingInfo.hostedBy_collectedFrom && resultLandingInfo.hostedBy_collectedFrom.filter(value => {
|
||||
return value.downloadNames && value.downloadNames.filter(name => {return name && name.toLowerCase().indexOf("zenodo") != 1}).length > 0
|
||||
}).length > 0));
|
||||
}).length > 0)));
|
||||
// console.log("spam content " + allow)
|
||||
//common titles/ description / authors
|
||||
let common_titles = ["introduction", "editorial", "book reviews", "preface", "reviews", "none", "book review", "foreword", "conclusion", "review", "reply","einleitung","short notices","erratum","discussion", "letters to the editor","letter to the editor","reviews of books",":{unav)","editorial board"];
|
||||
|
|
|
@ -36,7 +36,7 @@ export class DropdownFilterComponent {
|
|||
@ViewChild("dropdownElement") dropdownElement: ElementRef;
|
||||
|
||||
get isOpen() {
|
||||
return this.dropdownElement && UIkit.dropdown(this.dropdownElement.nativeElement).isActive();
|
||||
return (typeof document !== 'undefined') && this.dropdownElement && UIkit.dropdown(this.dropdownElement.nativeElement).isActive();
|
||||
}
|
||||
|
||||
closeDropdown() {
|
||||
|
|
Loading…
Reference in New Issue