Linking:search results: Correct search by crossref DOI number appeared, show no results for Datacite
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@53491 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
fc82a3719a
commit
4f8a366174
|
@ -171,7 +171,7 @@ private getCrossrefResults (term: string, size : number, page : number) {
|
|||
if(data != null) {
|
||||
this.crossrefResults = data;
|
||||
this.crossrefPage=page;
|
||||
this.crossrefResultsNum = data['total-results'];
|
||||
this.crossrefResultsNum =data.length;
|
||||
if(data.items == 0){
|
||||
this._searchCrossrefService.searchCrossrefResults(term, size, page, this.properties.searchCrossrefAPIURL, true).subscribe(
|
||||
data => {
|
||||
|
@ -693,7 +693,9 @@ openaireORPPageChange($event) {
|
|||
this.datacitePage=page;
|
||||
this.dataciteResultsNum = data.length;
|
||||
this.dataciteStatus = this.errorCodes.DONE;
|
||||
|
||||
if(this.dataciteResultsNum == 0){
|
||||
this.dataciteStatus = this.errorCodes.NONE;
|
||||
}
|
||||
|
||||
},
|
||||
err => {
|
||||
|
|
|
@ -8,6 +8,8 @@ export class ConnectHelper{
|
|||
if(domain.indexOf("beta")!=-1){
|
||||
domain = domain.substr(domain.indexOf(".")+1,domain.length);
|
||||
domain = domain.substr(0,domain.indexOf("."));
|
||||
}else if(domain.indexOf("test.")!=-1){
|
||||
return null;
|
||||
}else{
|
||||
domain = domain.substr(0,domain.indexOf("."));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue