[develop | WIP | UPDATED] Search author: allow keyword to be orcid url, show properly single author results
This commit is contained in:
parent
bd46630319
commit
02f42e773a
|
@ -69,7 +69,7 @@ export class SearchResearcherComponent extends BaseComponent implements OnInit
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.authorsRendered = 0;
|
this.authorsRendered = 0;
|
||||||
if(Identifier.isValidORCID(this.keyword)){
|
if(Identifier.isValidORCID(this.keyword)){
|
||||||
this.getOrcidAuthor(this.keyword, true);
|
this.getOrcidAuthor(this.keyword.indexOf(properties.orcidURL)!=-1?this.keyword.split(properties.orcidURL)[1]:this.keyword, true, -1);
|
||||||
}else{
|
}else{
|
||||||
this.getOrcidAuthors(this.keyword)
|
this.getOrcidAuthors(this.keyword)
|
||||||
}
|
}
|
||||||
|
@ -84,11 +84,11 @@ export class SearchResearcherComponent extends BaseComponent implements OnInit
|
||||||
data => {
|
data => {
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
this.orcidStatus = this.errorCodes.LOADING;
|
this.orcidStatus = this.errorCodes.LOADING;
|
||||||
|
this.authors.push(data);
|
||||||
if(count ==-1) {
|
if(count ==-1) {
|
||||||
this.getOpenaireResultsFor(0,1);
|
this.getOpenaireResultsFor(0,1);
|
||||||
}else{
|
}else{
|
||||||
data.resultsCount = count;
|
data.resultsCount = count;
|
||||||
this.authors.push(data);
|
|
||||||
this.authorsToShow.push(data);
|
this.authorsToShow.push(data);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
@ -153,9 +153,11 @@ private getOpenaireResultsFor(start, end){
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}else{
|
}else{
|
||||||
|
this.orcidStatus = this.errorCodes.DONE;
|
||||||
if(this.authorsToShow.length == 0){
|
if(this.authorsToShow.length == 0){
|
||||||
this.orcidStatus = this.errorCodes.NONE;
|
this.orcidStatus = this.errorCodes.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private getOpenaireResultsObs(author){
|
private getOpenaireResultsObs(author){
|
||||||
|
|
Loading…
Reference in New Issue