-
Find Context:
-
-
-
+ (showChange)="showChange($event)" [inlineEntity]="inlineEntity" inline="true" [inlineType]="inlineType" >
-
-
-
-
-
+
+
+
+
+//
+// `
+//
+// })
+// export class InlineClaimContextComponent {
+// constructor ( private _router: Router ) {
+//
+// }
+//
+// @Input() public inlineEntity:any;
+// @Input() public inlineType:string;
+//
+//
+// contexts=[];
+// publications;
+// datasets;
+// show = "context";
+// keyword: string = "";
+//
+// ngOnInit() {
+//
+// }
+// next(){
+// if(this.inlineType === 'dataset'){
+// this.datasets = [];
+// this.datasets.push(this.inlineEntity[0]);
+// }else if(this.inlineType === 'publication'){
+// this.publications = [];
+// this.publications.push(this.inlineEntity[0]);
+// console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
+// }
+// if( this.show == 'context'){
+// this.show='claim';
+// }
+// }
+// prev(){
+// if(this.show == 'claim'){
+// this.show = 'context';
+// }
+// }
+//
+//
+// contextsChange($event) {
+// this.contexts=$event.value;
+// console.log($event.value);
+// }
+//
+// showChange($event) {
+// this.show=$event.value;
+// if(this.show == "end"){
+// this.contexts = [];
+// this.show = "context";
+// }
+// }
+//
+// }
diff --git a/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts b/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts
index 614ba41e..4eae8400 100644
--- a/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts
+++ b/src/app/claimPages/inlineClaimProject/inlineClaimProject.component.ts
@@ -13,49 +13,48 @@ import {ClaimInsertComponent} from '../linking/insertClaim/insertClaim.component
-
Search for Projects:
-
+
-
-
-
+
+
+
-
`
@@ -93,13 +92,13 @@ import {ClaimInsertComponent} from '../linking/insertClaim/insertClaim.component
this.publications.push(this.inlineEntity[0]);
console.info(" result: :targetId: " +this.publications[0].id + "targetType :"+ this.publications[0].type+" targetCollectedFrom:"+ this.publications[0].source+ "targetAccessRights :"+this.publications[0].accessRights+ " targetEmbargoEndDate:"+this.publications[0].embargoEndDate);
}
- if( this.show == 'context'){
+ if( this.show == 'project'){
this.show='claim';
}
}
prev(){
if(this.show == 'claim'){
- this.show = 'context';
+ this.show = 'project';
}
}
diff --git a/src/app/claimPages/linking/claimContext/claimContext.component.ts b/src/app/claimPages/linking/claimContext/claimContext.component.ts
index 7d94dadc..d54dd180 100644
--- a/src/app/claimPages/linking/claimContext/claimContext.component.ts
+++ b/src/app/claimPages/linking/claimContext/claimContext.component.ts
@@ -8,8 +8,9 @@ import {ContextsService} from '../../../services/contexts.service';
@Component({
selector: 'claim-contexts',
template: `
-