fix the query for searching software dois in claims| clear result before a new search is done

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52236 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-05-25 13:07:18 +00:00
parent 707b80ed71
commit b0323c3ca6
2 changed files with 9 additions and 2 deletions

View File

@ -127,20 +127,26 @@ export class ClaimResultSearchFormComponent {
this.reloadOrcid = true;
}
if((this.searchSource == "all" || this.searchSource == "openaire") && this.reloadOpenaire){
this.openairePubs = [];
this.openaireData = [];
this.openaireSoftware = [];
this.searchOpenairePubs(this.keyword, this.size, 1);
this.searchOpenaireData(this.keyword,this.size,1);
this.searchOpenaireSoftware(this.keyword,this.size,1);
this.reloadOpenaire = false;
}
if((this.searchSource == "all" || this.searchSource == "crossref")&&this.reloadCrossref){
this.crossrefResults = [];
this.getCrossrefResults(this.keyword, this.size,1);
this.reloadCrossref = false;
}
if((this.searchSource == "all" || this.searchSource == "datacite")&& this.reloadDatacite){
this.dataciteResults =[];
this.searchDatacite(this.keyword,this.size,1);
this.reloadDatacite = false;
}
if((this.searchSource == "all" || this.searchSource == "orcid")&& this.reloadOrcid){
this.orcidResultsToShow=[];
this.searchOrcid(this.keyword);
this.reloadOrcid = false;
}
@ -303,7 +309,7 @@ private getCrossrefResults (term: string, size : number, page : number) {
this.orcidResultsNum = null;
//passing structures in order to fill them in service
this._searchOrcidService.searchOrcidAuthor(term, this.authorIds,
this._searchOrcidService.searchOrcidAuthor(term.replace(/\s/g, ""), this.authorIds,
this.authors, this.properties, addId).subscribe(
data => {
if(data != null && data == true && addId) {
@ -468,6 +474,7 @@ private orcidPageChange($event) {
}
private openairePubsPageChange($event) {
this.openairePubsPage=$event.value;
this.openairePubs = [];
this.searchOpenairePubs(this.keyword,this.size,this.openairePubsPage);
}
datacitePageChange($event) {

View File

@ -65,7 +65,7 @@ export class SearchSoftwareService {
}
searchSoftwareByDois (DOIs: string[], refineParams:string, page: number, size: number, refineFields:string[], properties:EnvProperties ):any {
let link = properties.searchResourcesAPIURL+"software";
let link = properties.searchAPIURLLAst+"software";
let url = link+"?";
var doisParams = "";