diff --git a/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts b/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts index ba23cd03..e0acad3d 100644 --- a/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts +++ b/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts @@ -36,11 +36,14 @@ import { ErrorCodes} from '../../utils/properties/openaireProperties'; --> @@ -55,12 +58,15 @@ import { ErrorCodes} from '../../utils/properties/openaireProperties';
No results found
diff --git a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html index 64fe33f4..9be05844 100644 --- a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html +++ b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html @@ -18,11 +18,15 @@
@@ -40,11 +44,14 @@
@@ -84,8 +91,13 @@
No results found
diff --git a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts index 1484167f..7fffefa7 100644 --- a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts +++ b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts @@ -106,9 +106,9 @@ private getCrossrefResults (term: string, size : number, page : number) { this.crossrefResultsNum = data['total-results']; this.crossrefStatus = this.errorCodes.DONE; + }else{ + this.crossrefStatus = this.errorCodes.ERROR; } - this.crossrefStatus = this.errorCodes.ERROR; - }, err =>{ console.error(err.status); @@ -116,6 +116,8 @@ private getCrossrefResults (term: string, size : number, page : number) { } ); + }else{ + this.crossrefStatus = this.errorCodes.DONE; } } }, @@ -149,8 +151,9 @@ private getCrossrefResults (term: string, size : number, page : number) { this.crossrefResultsNum = data['total-results']; this.crossrefStatus = this.errorCodes.DONE; + }else{ + this.crossrefStatus = this.errorCodes.ERROR; } - this.crossrefStatus = this.errorCodes.ERROR; }, err => {