diff --git a/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.html b/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.html
index aea0ba98..cda6dab9 100644
--- a/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.html
+++ b/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.html
@@ -46,7 +46,7 @@
You have selected {{selected.length}} claim(s)
-
0 " class = "uk-alert uk-alert-primary " [innerHTML]="deleteMessage">
+
0 " [innerHTML]="deleteMessage">
diff --git a/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts b/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts
index e6495c27..705ed266 100644
--- a/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts
+++ b/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts
@@ -454,10 +454,10 @@ export class DisplayClaimsComponent {
this.resultsNum = this.resultsNum - res.deletedIds.length;
this.loading.close();
if(res.deletedIds.length>0){
- this.deleteMessage=this.deleteMessage+'
'+res.deletedIds.length+' claim(s) successfully deleted.
';
+ this.deleteMessage=this.deleteMessage+'
'+res.deletedIds.length+' claim(s) successfully deleted.
';
}
if(res.notFoundIds.length>0){
- this.deleteMessage=this.deleteMessage+'
'+res.notFoundIds.length+' claim(s) couldn\'t be deleted.
';
+ this.deleteMessage=this.deleteMessage+'
'+res.notFoundIds.length+' claim(s) couldn\'t be deleted.
';
}
});
}
diff --git a/portal-2/src/app/claims/claim-utils/service/claims.service.ts b/portal-2/src/app/claims/claim-utils/service/claims.service.ts
index 01f35f78..6e006272 100644
--- a/portal-2/src/app/claims/claim-utils/service/claims.service.ts
+++ b/portal-2/src/app/claims/claim-utils/service/claims.service.ts
@@ -64,9 +64,9 @@ export class ClaimsService {
deleteClaimById(claimId:string,token:string):any{
console.warn('Trying to delete claim with id : '+claimId);
let url = this.baseUrl +"claims/"+claimId+"?token="+token;
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.delete( url, options).map(request =>
request.json())
+ // let headers = new Headers({ 'Content-Type': 'application/json' });
+ // let options = new RequestOptions({ headers: headers });
+ return this.http.delete( url, this.getOptions()).map(request => request.json())
// .do(request => console.info("After delete" ))
.catch(this.handleError);
@@ -80,9 +80,9 @@ export class ClaimsService {
url=url+(url.length >0 ?"&":"")+"claimId="+claimId;
}
url= this.baseUrl +"claims/bulk?"+url+"&token="+token;
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.delete( url, options).map(request => request.json())
+ // let headers = new Headers({ 'Content-Type': 'application/json' });
+ // let options = new RequestOptions({ headers: headers });
+ return this.http.delete( url, this.getOptions()).map(request => request.json())
// .do(request => console.info("After delete" ))
.catch(this.handleError);
@@ -92,9 +92,9 @@ export class ClaimsService {
let url = this.baseUrl +"claims/bulk"+"?token="+token;
let body = JSON.stringify( claims );
console.warn('Json body: : '+body);
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.post(url, body, options)
+ // let headers = new Headers({ 'Content-Type': 'application/json' });
+ // let options = new RequestOptions({ headers: headers });
+ return this.http.post(url, body, this.getOptions())
.map(res => res.json())
.do(request => console.info("Insert Response:"+request.status) )
.catch(this.handleError);
@@ -104,9 +104,9 @@ export class ClaimsService {
console.warn('Trying toinsert claim : '+claim);
let url = this.baseUrl +"claims"+"?token="+token;
let body = JSON.stringify( claim );
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.post(url, body, options)
+ // let headers = new Headers({ 'Content-Type': 'application/json' });
+ // let options = new RequestOptions({ headers: headers });
+ return this.http.post(url, body, this.getOptions())
.map(res => res.json())
.do(request => console.info("Insert Response:"+request.status) )
.catch(this.handleError);
@@ -117,9 +117,9 @@ export class ClaimsService {
let url = this.baseUrl +"feed/bulk"+"?token="+token;
let body = JSON.stringify( records );
console.warn('Json body: : '+body);
- let headers = new Headers({ 'Content-Type': 'application/json' });
- let options = new RequestOptions({ headers: headers });
- return this.http.post(url, body, options)
+ // let headers = new Headers({ 'Content-Type': 'application/json' });
+ // let options = new RequestOptions({ headers: headers });
+ return this.http.post(url, body, this.getOptions())
.map(res => res.json())
.do(request => console.info("Insert Response:"+request) )
.catch(this.handleError);
@@ -149,4 +149,11 @@ export class ClaimsService {
});
}
+ private getOptions(){
+ let headers = new Headers();
+ headers.append('Content-Type', 'application/json');
+ let options = new RequestOptions({ headers: headers });
+ return options;
+ }
+
}
diff --git a/portal-2/src/app/claims/claim-utils/service/claimsService.module.ts b/portal-2/src/app/claims/claim-utils/service/claimsService.module.ts
index 5272312e..d38d0f8d 100644
--- a/portal-2/src/app/claims/claim-utils/service/claimsService.module.ts
+++ b/portal-2/src/app/claims/claim-utils/service/claimsService.module.ts
@@ -12,9 +12,12 @@ import {ClaimsService} from './claims.service';
declarations: [
],
providers:[
- ClaimsService
+ ClaimsService,
+
],
exports: [
]
})
+
+
export class ClaimServiceModule { }
diff --git a/portal-2/src/app/claims/claim-utils/startOver.component.ts b/portal-2/src/app/claims/claim-utils/startOver.component.ts
index 281cc6d3..3740cc2d 100644
--- a/portal-2/src/app/claims/claim-utils/startOver.component.ts
+++ b/portal-2/src/app/claims/claim-utils/startOver.component.ts
@@ -4,7 +4,7 @@ import {ClaimResult} from '../claim-utils/claimEntities.class';
@Component({
selector: 'start-over',
- template: ``,
+ template: ``,
})
export class StartOverComponent {
diff --git a/portal-2/src/app/claims/linking/linkingGeneric.component.ts b/portal-2/src/app/claims/linking/linkingGeneric.component.ts
index 98e228b2..4882f7cb 100644
--- a/portal-2/src/app/claims/linking/linkingGeneric.component.ts
+++ b/portal-2/src/app/claims/linking/linkingGeneric.component.ts
@@ -6,6 +6,7 @@ import {ClaimProject, ClaimResult} from '../claim-utils/claimEntities.class';
import {SearchPublicationsService} from '../../services/searchPublications.service';
import {SearchDatasetsService} from '../../services/searchDatasets.service';
import { Meta} from '../../../angular2-meta';
+declare var UIkit:any;
@Component({
selector: 'linking-generic',
@@ -14,12 +15,27 @@ import { Meta} from '../../../angular2-meta';
-
+
+
+
+
+
+
+
+
Linking Functioanlity:
+
TODO: Put some useful information here...
+
+
+
+
+
-
-
-
-
+
+
+
-
-
+
+
@@ -68,8 +83,8 @@ import { Meta} from '../../../angular2-meta';