1
|
<div id="tm-main" class=" uk-section uk-margin-small-top tm-middle" >
|
2
|
<div uk-grid uk-grid>
|
3
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
4
|
|
5
|
<div class="uk-container uk-margin-top">
|
6
|
<div class="uk-article-title custom-article-title">
|
7
|
Link
|
8
|
</div>
|
9
|
|
10
|
<div class="uk-width-1-1">
|
11
|
<helper position="top"></helper>
|
12
|
</div>
|
13
|
<div class="uk-grid helper-grid">
|
14
|
<helper position="left" styleName=" uk-width-1-5 uk-padding-left"></helper>
|
15
|
<div class="uk-width-expand">
|
16
|
|
17
|
<ul class="uk-subnav uk-margin-remove-bottom uk-subnav-divider linkingSteps" uk-margin="">
|
18
|
<li [class]="(step==1)?'uk-active':' '" ><a (click)="step=1;"> 1 Select Projects <span >or Communities </span></a></li>
|
19
|
<li [class]="(step==2)?'uk-active':' '" ><a (click)="step=2;">2 Select Research Results </a></li>
|
20
|
<li [class]="(step==3)?'uk-active':' '" (click)="step=3;"><a [class]="(results.length == 0)?'uk-disabled':''" (click)="show='claim';" >3 Review metadata</a></li>
|
21
|
</ul>
|
22
|
<!--start-over [results]="results" [contexts]="contexts" [projects]="projects" ></start-over-->
|
23
|
<!-- add here pagination to be visible when results list is long -->
|
24
|
<ul *ngIf="step ==2" class=" uk-pagination uk-flex-center uk-margin-auto uk-text-center">
|
25
|
<li *ngIf="step !=1 " (click)="step=step-1;" class="uk-margin-left"><a><span class="uk-margin-small-right" uk-pagination-previous></span> Previous</a></li>
|
26
|
<li *ngIf="step !=3 " (click)="step=step + 1;" >
|
27
|
<a>Next <span uk-pagination-next></span></a>
|
28
|
</li>
|
29
|
<li *ngIf=" step == 3 " (click)="next()" >
|
30
|
<claim-insert [contexts]="contexts" [results]="results" [projects]="projects" [show] = "show"
|
31
|
(showChange)="showChange($event)" [(properties)] = properties></claim-insert>
|
32
|
|
33
|
</li>
|
34
|
</ul>
|
35
|
<ul uk-accordion>
|
36
|
<li>
|
37
|
<h3 class=" uk-text-right uk-margin-remove-vertical uk-width-small uk-margin-auto-left uk-accordion-title basket-title ">
|
38
|
|
39
|
<span class="uk-icon"><svg xml:space="preserve" xmlns:xlink="http://www.w3.org/1999/xlink" height="28px" id="my-box" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="28px" x="0px" xmlns="http://www.w3.org/2000/svg" y="0px"><g> <path d="M480,320v128H32V320h78.859l64.016,96h162.25l64-96H480 M384,32H128L0,288v192h512V288L384,32L384,32z M35.781,288l112-224 h216.438l112,224H384l-64,96H192l-64.016-96H35.781L35.781,288z" fill="#b5b5b5"></path></g> </svg> </span>
|
40
|
<span *ngIf="(projects.length + contexts.length + results.length)> 0" class="uk-badge basket-badge ">{{(projects.length + contexts.length + results.length) | number}}</span>
|
41
|
</h3>
|
42
|
<div class="uk-accordion-content dropbasket uk-padding-small uk-margin uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-grid uk-grid-stack">
|
43
|
<claim-selected-projects title="link Projects" [projects]="projects" [show]="show" [linkType]=linkType
|
44
|
(showChange)="showChange($event)" > </claim-selected-projects>
|
45
|
|
46
|
<claim-selected-contexts title="link Communities" [contexts]="contexts" [projects]="projects" [results]="results" [inlineEntity] = "inlineResult" [show]="show" [linkType]=linkType
|
47
|
(showChange)="showChange($event)" > </claim-selected-contexts>
|
48
|
<claim-selected-results *ngIf="step!=3" title= "Selected Research Results" [results]="results" [bulkMode]="bulkMode" showSearch=false showAccessRights=false>
|
49
|
</claim-selected-results>
|
50
|
</div>
|
51
|
</li>
|
52
|
</ul>
|
53
|
|
54
|
<div *ngIf="step==1">
|
55
|
|
56
|
<ul class=" uk-tab " uk-tab="connect: #tabs; animation: uk-animation-fade">
|
57
|
<li>
|
58
|
<a>Projects ({{projects.length | number}})</a>
|
59
|
</li>
|
60
|
<li>
|
61
|
<a>Communities ({{contexts.length | number}})</a>
|
62
|
</li>
|
63
|
</ul>
|
64
|
<ul id="tabs" class="uk-switcher uk-margin-left uk-width-1-1">
|
65
|
<li>
|
66
|
|
67
|
<claim-projects-search-form [(selectedProjects)]="projects" [(properties)] = properties> </claim-projects-search-form>
|
68
|
</li>
|
69
|
<li>
|
70
|
|
71
|
<claim-contexts-search-form [(selectedList)]="contexts" [projects]="projects" [results]="results" [inlineEntity]="inlineResult" [(properties)]=properties> </claim-contexts-search-form>
|
72
|
</li>
|
73
|
|
74
|
</ul>
|
75
|
</div>
|
76
|
|
77
|
|
78
|
<div *ngIf="step==2 ">
|
79
|
|
80
|
<div class="uk-width-1-1 uk-card uk-card-default uk-padding ">
|
81
|
<div class=" uk-padding-small uk-padding-remove-bottom ">
|
82
|
<span *ngIf="bulkMode" class=" uk-animation uk-float-right">
|
83
|
<span title= "Bulk mode"><i class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="upload" ratio="1"><polyline fill="none" stroke="#000" points="5 8 9.5 3.5 14 8 "></polyline><rect x="3" y="17" width="13" height="1"></rect><line fill="none" stroke="#000" x1="9.5" y1="15" x2="9.5" y2="4"></line></svg></i></span>
|
84
|
<a title= "Switch to Search mode" (click)="bulkMode = !bulkMode;"> <span class="uk-icon">
|
85
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>
|
86
|
</span></a>
|
87
|
</span>
|
88
|
<span *ngIf="!bulkMode" class=" uk-animation uk-float-right">
|
89
|
<a title= "Switch to Bulk mode" (click)="bulkMode = !bulkMode;"><i class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="upload" ratio="1"><polyline fill="none" stroke="#000" points="5 8 9.5 3.5 14 8 "></polyline><rect x="3" y="17" width="13" height="1"></rect><line fill="none" stroke="#000" x1="9.5" y1="15" x2="9.5" y2="4"></line></svg></i></a>
|
90
|
<span title= "Search mode"> <span class="uk-icon">
|
91
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>
|
92
|
</span></span>
|
93
|
</span>
|
94
|
</div>
|
95
|
<claim-result-search-form *ngIf="!bulkMode" [selectedResults]="results" [(properties)]=properties > </claim-result-search-form>
|
96
|
<bulk-claim *ngIf="bulkMode" [results]="results" [(properties)] = properties> </bulk-claim>
|
97
|
</div>
|
98
|
</div>
|
99
|
<div *ngIf="step==3" class="uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l">
|
100
|
<div class=" uk-grid">
|
101
|
<div class="uk-width-expand">
|
102
|
<claim-selected-results title= "Selected Research Results" [results]="results" [bulkMode]="bulkMode" showSearch = false showAccessRights = true>
|
103
|
</claim-selected-results>
|
104
|
</div>
|
105
|
<helper div="link-metadata" styleName="uk-width-medium"></helper>
|
106
|
</div>
|
107
|
</div>
|
108
|
|
109
|
|
110
|
|
111
|
<ul class=" uk-pagination uk-flex-center uk-margin-auto uk-text-center">
|
112
|
<li *ngIf="step !=1 " (click)="step=step-1;" class="uk-margin-left"><a><span class="uk-margin-small-right" uk-pagination-previous></span> Previous</a></li>
|
113
|
<li *ngIf="step !=3 " (click)="step=step + 1;" >
|
114
|
<a>Next <span uk-pagination-next></span></a>
|
115
|
</li>
|
116
|
<li *ngIf=" step == 3 " (click)="next()" >
|
117
|
<claim-insert [contexts]="contexts" [results]="results" [projects]="projects" [show] = "show"
|
118
|
(showChange)="showChange($event)" [(properties)] = properties></claim-insert>
|
119
|
|
120
|
</li>
|
121
|
</ul>
|
122
|
</div>
|
123
|
<helper position="right" styleName=" uk-width-1-5"></helper>
|
124
|
</div>
|
125
|
<helper position="bottom"></helper>
|
126
|
|
127
|
|
128
|
|
129
|
</div>
|
130
|
|
131
|
</div>
|
132
|
</div>
|
133
|
</div>
|