[Library|Trunk]
Impact factors: add a check for identifiers add showImpactFactors input in search-tab git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58820 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
3b35ac3b83
commit
2fc71dad0c
|
@ -43,11 +43,15 @@ export class SearchResultComponent implements OnInit, OnChanges {
|
|||
impact[result.doi]=result;
|
||||
});
|
||||
this.previewResults.forEach(function (result) {
|
||||
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<string>();
|
||||
|
|
|
@ -24,7 +24,7 @@ import {ErrorCodes} from "../../properties/errorCodes";
|
|||
<search-result [properties]="properties"
|
||||
[results]="fetch.results"
|
||||
[status]="fetch.searchUtils.status"
|
||||
[type]="resultType">
|
||||
[type]="resultType" [showImpactFactors]="showImpactFactors" >
|
||||
</search-result>
|
||||
|
||||
<div class="uk-text-right">
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue