diff --git a/searchPages/searchUtils/searchResult.component.ts b/searchPages/searchUtils/searchResult.component.ts index 18ef6305..ad24d244 100644 --- a/searchPages/searchUtils/searchResult.component.ts +++ b/searchPages/searchUtils/searchResult.component.ts @@ -43,11 +43,15 @@ export class SearchResultComponent implements OnInit, OnChanges { impact[result.doi]=result; }); this.previewResults.forEach(function (result) { - result.identifiers.get("doi").forEach(function (doi) { - if(impact[doi]) { - result.DOI = doi; + if(result.identifiers) { + result.identifiers.get("doi").forEach(function (doi) { + if (impact[doi]) { + result.DOI = doi; + } + + }) } - })}); + }); for (let i = 0; i < this.previewResults.length; i++) { if (this.previewResults[i].DOI) { this.previewResults[i].pop_inf = new Array(); diff --git a/utils/tabs/contents/search-tab.component.ts b/utils/tabs/contents/search-tab.component.ts index 3c75a878..5669114b 100644 --- a/utils/tabs/contents/search-tab.component.ts +++ b/utils/tabs/contents/search-tab.component.ts @@ -24,7 +24,7 @@ import {ErrorCodes} from "../../properties/errorCodes"; + [type]="resultType" [showImpactFactors]="showImpactFactors" >
@@ -45,6 +45,7 @@ export class SearchTabComponent { @Input() public searchNumber: number = 5; @Input() public searchLinkToAdvancedPage: string; @Input() properties: EnvProperties; + @Input() showImpactFactors; public errorCodes: ErrorCodes = new ErrorCodes(); public getEntityName(entityType: string, plural: boolean, full: boolean): string {