Revision 43109
Added by Argiro Kokogiannaki almost 8 years ago
inlineClaimProject.component.ts | ||
---|---|---|
13 | 13 |
|
14 | 14 |
|
15 | 15 |
<div *ngIf="showComp" class="panel-body well well-lg"> |
16 |
<h6>Search for Projects:</h6> |
|
17 |
<div class="row" > |
|
16 |
<div class="row" > |
|
18 | 17 |
<claim-projects [selectedProjects]="projects" (projectsChange)="projectsChange($event)" inline="true" > </claim-projects> |
19 | 18 |
|
20 | 19 |
<claim-selected [projects]="projects" |
21 | 20 |
(projectsChange)="projectsChange($event)" |
22 | 21 |
(showChange)="showChange($event)" [inlineEntity]="inlineEntity" inline="true" [inlineType]="inlineType" > </claim-selected> |
23 | 22 |
</div> |
24 |
<claim-insert (showChange)="showChange($event)" inline="true" [projects]="projects" [publications]="publications" [datasets]="datasets" showButtton="false" ></claim-insert>
|
|
25 |
<button (click)="insert()" [class]="(enableButton)?'btn btn-primary':'btn btn-primary disabled'" style="float:right">Finish </button>
|
|
26 |
<button (click)="cancel()" [class]="(enableButton)?'btn ':'btn disabled'" style="float:left">Cancel </button>
|
|
23 |
<claim-insert (showChange)="showChange($event)" inline="true" [projects]="projects" [publications]="publications" [datasets]="datasets" showButton="false" ></claim-insert> |
|
24 |
<button (click)="insert()" [class]="(enableButton)?'btn btn-xs btn-primary':'btn btn-primary btn-xs disabled'" style="float:right">Finish </button>
|
|
25 |
<button (click)="cancel()" [class]="(enableButton)?'btn btn-xs btn-default ':'btn btn-xs btn-default disabled'" style="float:left">Cancel </button>
|
|
27 | 26 |
<!-- <div *ngIf=" show == 'claim'" > |
28 | 27 |
<claim-selected [projects]="projects" [inlineEntity]="inlineEntity" inline="true" [inlineType]="inlineType" > </claim-selected> |
29 |
<claim-insert (showChange)="showChange($event)" inline="true" [projects]="projects" [publications]="publications" [datasets]="datasets" showButtton="false" ></claim-insert>
|
|
28 |
<claim-insert (showChange)="showChange($event)" inline="true" [projects]="projects" [publications]="publications" [datasets]="datasets" showButton="false" ></claim-insert> |
|
30 | 29 |
</div> |
31 | 30 |
<nav> |
32 | 31 |
<ul class="pager"> |
33 |
<li *ngIf="show != 'context'" class="previous" (click)="prev()"><a ><span aria-hidden="true">←</span> Previous</a></li>
|
|
32 |
<li *ngIf="show != 'project'" class="previous" (click)="prev()"><a ><span aria-hidden="true">←</span> Previous</a></li>
|
|
34 | 33 |
<li class="next" *ngIf="show != 'claim'" (click)="next()" ><a >Next <span aria-hidden="true">→</span></a></li> |
35 | 34 |
</ul> |
36 | 35 |
</nav> |
37 | 36 |
--> |
38 | 37 |
</div> |
39 | 38 |
|
40 |
<!-- <h3>Find Context</h3>
|
|
39 |
<!-- <h3>Find Project</h3>
|
|
41 | 40 |
|
42 |
<div *ngIf="show=='context'" >
|
|
41 |
<div *ngIf="show=='project'" >
|
|
43 | 42 |
|
44 | 43 |
|
45 |
<claim-projects [selectedList]="contexts" (contextsChange)="contextsChange($event)" > </claim-contexts>
|
|
44 |
<claim-projects [selectedList]="projects" (projectsChange)="projectsChange($event)" > </claim-projects>
|
|
46 | 45 |
|
47 | 46 |
<h3>Link to</h3> |
48 |
<claim-selected [contexts]="contexts"
|
|
49 |
(contextsChange)="contextsChange($event)"
|
|
47 |
<claim-selected [projects]="projects"
|
|
48 |
(projectsChange)="projectsChange($event)"
|
|
50 | 49 |
(showChange)="showChange($event)" [inlineEntity]="inlineEntity" inline="true" [inlineType]="inlineType" > </claim-selected> |
51 | 50 |
|
52 | 51 |
|
53 | 52 |
|
54 |
<button (click)="claim()" class="btn btn-primary" style="float:right">Finish</button> |
|
53 |
<button (click)="claim()" class="btn btn-primary btn-xs" style="float:right">Finish</button>
|
|
55 | 54 |
|
56 | 55 |
</div> |
57 | 56 |
<div *ngIf="show=='claim'" > |
58 |
<claim-insert showAccessRights="true" [contexts]="contexts" [publications]="publications" [datasets]="datasets" ></claim-insert>
|
|
57 |
<claim-insert showAccessRights="true" [projects]="projects" [publications]="publications" [datasets]="datasets" ></claim-insert>
|
|
59 | 58 |
</div>--> |
60 | 59 |
|
61 | 60 |
` |
... | ... | |
93 | 92 |
this.publications.push(this.inlineEntity[0]); |
94 | 93 |
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); |
95 | 94 |
} |
96 |
if( this.show == 'context'){
|
|
95 |
if( this.show == 'project'){
|
|
97 | 96 |
this.show='claim'; |
98 | 97 |
} |
99 | 98 |
} |
100 | 99 |
prev(){ |
101 | 100 |
if(this.show == 'claim'){ |
102 |
this.show = 'context';
|
|
101 |
this.show = 'project';
|
|
103 | 102 |
} |
104 | 103 |
} |
105 | 104 |
|
Also available in: Unified diff
more for inline linking in publication landing page