[trunk]: Library + Explore: Remove unnecessary logs.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54778 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
c6b84c171e
commit
c96508cc15
|
@ -17,7 +17,7 @@ export class ClaimsService {
|
||||||
let key = url;
|
let key = url;
|
||||||
return this.http.get(url, CustomOptions.getAuthOptions())
|
return this.http.get(url, CustomOptions.getAuthOptions())
|
||||||
.map(request => <any> request.json())
|
.map(request => <any> request.json())
|
||||||
.do(request => console.info("Get claims: offset = "+(size*(page-1)) + " limit ="+size ))
|
//.do(request => console.info("Get claims: offset = "+(size*(page-1)) + " limit ="+size ))
|
||||||
.catch(this.handleError);
|
.catch(this.handleError);
|
||||||
}
|
}
|
||||||
getClaims( size : number, page : number, keyword:string, sortby: string, descending: boolean, types: string, apiUrl:string):any {
|
getClaims( size : number, page : number, keyword:string, sortby: string, descending: boolean, types: string, apiUrl:string):any {
|
||||||
|
|
|
@ -15,7 +15,7 @@ export class MailPrefsService {
|
||||||
|
|
||||||
return this.http.get(url, CustomOptions.getAuthOptions())
|
return this.http.get(url, CustomOptions.getAuthOptions())
|
||||||
.map(request => <any> request.json())
|
.map(request => <any> request.json())
|
||||||
.do(request => console.info("Get user email preferences for communityId= "+communityId ));
|
//.do(request => console.info("Get user email preferences for communityId= "+communityId ));
|
||||||
//.catch(this.handleError);
|
//.catch(this.handleError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@ export class MailPrefsService {
|
||||||
return this.http.get(url, CustomOptions.getAuthOptions())
|
return this.http.get(url, CustomOptions.getAuthOptions())
|
||||||
//.timeoutWith(100, Observable.throw(response)) // goes to error
|
//.timeoutWith(100, Observable.throw(response)) // goes to error
|
||||||
//.timeoutWith(100, Observable.of(response)) // goes to
|
//.timeoutWith(100, Observable.of(response)) // goes to
|
||||||
.do(request => console.info(request))
|
//.do(request => console.info(request))
|
||||||
.map(request => <any> request.json())
|
.map(request => <any> request.json())
|
||||||
.do(request => console.info("Get user email preferences for OpenAIRE" ));
|
//.do(request => console.info("Get user email preferences for OpenAIRE" ));
|
||||||
//.catch(this.handleError);
|
//.catch(this.handleError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,12 +38,12 @@ export class MailPrefsService {
|
||||||
let url = apiUrl +"users/notification/save";
|
let url = apiUrl +"users/notification/save";
|
||||||
|
|
||||||
let body = JSON.stringify( notification );
|
let body = JSON.stringify( notification );
|
||||||
console.warn('Json body: : '+body);
|
//console.warn('Json body: : '+body);
|
||||||
let headers = new Headers({ 'Content-Type': 'application/json' });
|
let headers = new Headers({ 'Content-Type': 'application/json' });
|
||||||
let options = new RequestOptions({ headers: headers });
|
let options = new RequestOptions({ headers: headers });
|
||||||
return this.http.post(url, body, CustomOptions.getAuthOptionsWithBody())
|
return this.http.post(url, body, CustomOptions.getAuthOptionsWithBody())
|
||||||
.map(res => res.json())
|
.map(res => res.json())
|
||||||
.do(request => console.info("Insert Response:"+request.status) );
|
//.do(request => console.info("Insert Response:"+request.status) );
|
||||||
//.catch(this.handleError);
|
//.catch(this.handleError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -342,8 +342,8 @@ export class OrganizationComponent {
|
||||||
console.log("Error downloading the file.");
|
console.log("Error downloading the file.");
|
||||||
this.closeLoading();
|
this.closeLoading();
|
||||||
this.confirmOpenCsvError();
|
this.confirmOpenCsvError();
|
||||||
},
|
};/*,
|
||||||
() => console.log('Completed file download.'));
|
() => console.log('Completed file download.'));*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private downloadPublicationsFile(funder: string, funderId:string, count:number){
|
private downloadPublicationsFile(funder: string, funderId:string, count:number){
|
||||||
|
@ -442,8 +442,8 @@ export class OrganizationComponent {
|
||||||
console.log("Error downloading the file.");
|
console.log("Error downloading the file.");
|
||||||
this.closeLoading();
|
this.closeLoading();
|
||||||
this.confirmOpenCsvError();
|
this.confirmOpenCsvError();
|
||||||
},
|
};/*,
|
||||||
() => console.log('Completed file download.')
|
() => console.log('Completed file download.')*/
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -398,8 +398,8 @@ actionsAfterGettingProjectInfo(){
|
||||||
console.log("Error downloading the file.");
|
console.log("Error downloading the file.");
|
||||||
this.closeLoading();
|
this.closeLoading();
|
||||||
this.confirmOpenCsvError();
|
this.confirmOpenCsvError();
|
||||||
},
|
};/*,
|
||||||
() => console.log('Completed file download.')
|
() => console.log('Completed file download.')*/
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,11 +124,11 @@ export class SearchDownloadComponent {
|
||||||
//newWindow.close();
|
//newWindow.close();
|
||||||
this.closeLoading();
|
this.closeLoading();
|
||||||
this.confirmOpenCsvError();
|
this.confirmOpenCsvError();
|
||||||
},
|
};/*,
|
||||||
() => {
|
() => {
|
||||||
console.log('Completed file download.');
|
console.log('Completed file download.');
|
||||||
//setTimeout(function(){ newWindow.close(); }, 500);
|
//setTimeout(function(){ newWindow.close(); }, 500);
|
||||||
}
|
}*/
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -234,7 +234,7 @@ public getAggregatorResults(id:string, page: number, size: number, properties:En
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
console.info("status: "+err.status);
|
//console.info("status: "+err.status);
|
||||||
//TODO check erros (service not available, bad request)
|
//TODO check erros (service not available, bad request)
|
||||||
// if( ){
|
// if( ){
|
||||||
// this.searchUtils.status = ErrorCodes.ERROR;
|
// this.searchUtils.status = ErrorCodes.ERROR;
|
||||||
|
|
|
@ -203,7 +203,7 @@ public getAggregatorResults(id:string, page: number, size: number, properties:En
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
console.info("status: "+err.status);
|
//console.info("status: "+err.status);
|
||||||
//TODO check erros (service not available, bad request)
|
//TODO check erros (service not available, bad request)
|
||||||
if(err.status == '404') {
|
if(err.status == '404') {
|
||||||
this.searchUtils.status = this.errorCodes.NOT_FOUND;
|
this.searchUtils.status = this.errorCodes.NOT_FOUND;
|
||||||
|
|
|
@ -233,7 +233,7 @@ public getAggregatorResults(id:string, page: number, size: number, properties:En
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
console.info("status: "+err.status);
|
//console.info("status: "+err.status);
|
||||||
//TODO check erros (service not available, bad request)
|
//TODO check erros (service not available, bad request)
|
||||||
// if( ){
|
// if( ){
|
||||||
// this.searchUtils.status = ErrorCodes.ERROR;
|
// this.searchUtils.status = ErrorCodes.ERROR;
|
||||||
|
|
|
@ -38,8 +38,8 @@ export class PiwikService {
|
||||||
((referrer != null && referrer.length > 0)?('&urlref='+StringUtils.URIEncode(referrer)):'');
|
((referrer != null && referrer.length > 0)?('&urlref='+StringUtils.URIEncode(referrer)):'');
|
||||||
//console.log("Piwik - trackDownload: "+url);
|
//console.log("Piwik - trackDownload: "+url);
|
||||||
|
|
||||||
return this.http.get( url)
|
return this.http.get( url);
|
||||||
.do(request => console.info("Piwik request completed" ));
|
//.do(request => console.info("Piwik request completed" ));
|
||||||
|
|
||||||
}
|
}
|
||||||
private getUserAgent(){
|
private getUserAgent(){
|
||||||
|
|
|
@ -9,7 +9,7 @@ export class PreviousRouteRecorder implements CanDeactivate<any> {
|
||||||
}
|
}
|
||||||
canDeactivate(component: any): Observable<boolean> | boolean {
|
canDeactivate(component: any): Observable<boolean> | boolean {
|
||||||
if (typeof localStorage !== 'undefined') {
|
if (typeof localStorage !== 'undefined') {
|
||||||
console.log("In PreviousRouteRecorder : "+this.router.url );
|
//console.log("In PreviousRouteRecorder : "+this.router.url );
|
||||||
localStorage.setItem('previousRoute', this.router.url);
|
localStorage.setItem('previousRoute', this.router.url);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue