Project

General

Profile

1
<metadata-preview *ngIf="showOptions.show=='claim' && properties" class="uk-margin-top"
2
                  [results]="results" [sources]="sources"
3
                  [localStoragePrefix]="localStoragePrefix" [inlineEntity]="inlineEntity"
4
                  [showOptions]="showOptions" [properties]=properties [pageContents]="pageContents"
5
                  [defaultColors]="(communityId?false:true)" [communityId]="communityId"
6
>
7
</metadata-preview>
8
<div id="tm-main" class="uk-section  uk-padding-remove-top tm-middle" *ngIf="showOptions.show != 'claim'">
9
  <div class="uk-grid">
10
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
11
      <schema2jsonld *ngIf="url" [URL]="url" name="Link your research results" type="other"></schema2jsonld>
12
      <div [class]="((showOptions.show == 'claim')?'':' uk-margin-top ')+' uk-container uk-container-large '">
13
        <div>
14
          <!-- <div class="uk-width-1-1">
15
            <helper position="top"></helper>
16
          </div> -->
17
          <div class="uk-grid  helper-grid">
18
<!--            <helper position="left" styleName=" uk-width-1-5 uk-padding-left"></helper>-->
19
            <div class="uk-width-expand">
20

    
21
              <div *ngIf="properties" class="uk-section uk-section-default uk-padding-remove-top">
22

    
23
                <div style=""
24
                     [class]="((showOptions.show == 'claim')?'':' uk-margin-top ')+' uk-container uk-container-large '">
25
                  <div class="uk-grid" *ngIf="showOptions.show!='claim'">
26
                    <div class="uk-width-2-3">
27
                      <div class="uk-h5">
28
                           <span *ngIf="showOptions.show!='source' && showOptions.show != 'claim'">
29
                             <span>LINK TO </span>
30
                             <select [(ngModel)]="showOptions.show" class="uk-select uk-width-auto  uk-text-bold "
31
                                     *ngIf="showOptions.linkToEntities.length > 1">
32
                               <option *ngIf="showOptions.linkToEntities.indexOf('project')!=-1 "
33
                                       value="project">PROJECTS</option>
34
                               <option *ngIf="showOptions.linkToEntities.indexOf('result')!=-1 " value="result">RESEARCH
35
                                 RESULTS</option>
36
                               <option *ngIf="showOptions.linkToEntities.indexOf('context')!=-1 " value="context">COMMUNITIES
37
                               </option>
38
                             </select>
39
                             <span class=" uk-width-auto  uk-text-bold "
40
                                   *ngIf="showOptions.linkToEntities.length ==1">
41
                               <span *ngIf="showOptions.linkToEntities.indexOf('project')!=-1 "
42
                                     value="project">PROJECTS</span>
43
                               <span *ngIf="showOptions.linkToEntities.indexOf('result')!=-1 " value="result">RESEARCH
44
                                 RESULTS</span>
45
                               <span *ngIf="showOptions.linkToEntities.indexOf('context')!=-1 " value="context">COMMUNITIES
46
                               </span>
47
                             </span>
48
                           </span>
49
                        <span *ngIf="showOptions.show=='source'" class="uk-text-bold">
50
                            ADD LINKING SOURCES
51
                           </span>
52

    
53
                      </div>
54
                      <div *ngIf="showOptions.show=='source'">
55
                        <claim-result-search-form [selectedResults]="sources" [properties]=properties
56
                                                  [localStoragePrefix]="localStoragePrefix+'sources'" [basketLimit]="basketLimit"
57
                        ></claim-result-search-form>
58
                      </div>
59
                      <div *ngIf="showOptions.show=='project'">
60
                        <claim-projects-search-form [selectedProjects]="results" [properties]=properties
61
                                                    [localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"
62
                        ></claim-projects-search-form>
63
                      </div>
64
                      <div *ngIf="showOptions.show=='context'">
65
                        <claim-contexts-search-form [communityId]=communityId [results]="results" [sources]="sources"
66
                                                    [properties]=properties
67
                                                    [localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"
68
                        ></claim-contexts-search-form>
69
                      </div>
70
                      <div *ngIf="showOptions.show=='result'">
71
                        <claim-result-search-form [selectedResults]="results" [properties]=properties
72
                                                  [localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"
73
                        ></claim-result-search-form>
74
                      </div>
75

    
76
                    </div>
77
                    <!-- Basket-->
78
                    <div *ngIf="showOptions.show != 'claim'" class="uk-width-1-3" style="">
79
                      <div class="linksbasketheader uk-margin-bottom uk-text-bold uk-h5">
80
                        LINKS BASKET
81
                      </div>
82
                      <div class="linksbasket uk-inline uk-width-1-1" style="">
83
                        <div *ngIf="inlineEntity == null">
84
                          <div class="linksbaskettitles  uk-padding-small uk-animation-toggle"
85
                               (click)="showOptions.showBasketSources()"
86
                               [style.cursor]="(showOptions.show!='source'?'pointer':'default')">
87
                            <div class="uk-h6 uk-margin-remove portal-color" >
88
                              SOURCES ({{(sources.length) | number}})
89
                              <span *ngIf="showOptions.show!='source' && !showOptions.basketShowSources"
90
                                    class="uk-icon"><svg width="20"
91
                                                         height="20"
92
                                                         viewBox="0 0 20 20"
93
                                                         xmlns="http://www.w3.org/2000/svg"
94
                                                         icon="chevron-left"
95
                                                         ratio="1"><polyline
96
                                fill="none" stroke="#000" stroke-width="1.03" points="13 16 7 10 13 4"></polyline></svg></span>
97
                              <span *ngIf="showOptions.show!='source' &&  showOptions.basketShowSources"
98
                                    class="uk-icon"><svg width="20"
99
                                                         height="20"
100
                                                         viewBox="0 0 20 20"
101
                                                         xmlns="http://www.w3.org/2000/svg"
102
                                                         icon="chevron-down"
103
                                                         ratio="1"><polyline
104
                                fill="none" stroke="#000" stroke-width="1.03" points="16 7 10 13 4 7"></polyline></svg></span>
105
                            </div>
106
                            Research results to link
107
                          </div>
108

    
109
                          <div *ngIf="showOptions.basketShowSources"
110
                               class="  uk-margin-remove-top uk-height-medium  uk-overflow-auto ">
111
                            <div class="uk-background-muted uk-padding-small  " style="min-height: 17px;">
112
                              <div *ngIf="showOptions.show != 'source'" class="uk-text-center">
113
                                <a (click)="showOptions.showSource()">
114
                                  <!--span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="plus" ratio="1"><rect x="9" y="1" width="1" height="17"></rect><rect x="1" y="9" width="17" height="1"></rect></svg></span-->
115
                                  Edit sources</a>
116
                              </div>
117
                              <start-over *ngIf="showOptions.show == 'source' && (sources.length)> 0"
118
                                          [results]="sources"
119
                                          [localStoragePrefix]="localStoragePrefix+'sources'"
120
                                          message="all sources" class="uk-float-right"></start-over>
121
                              <bulk-claim *ngIf="showOptions.show == 'source'" [results]="sources"
122
                                          [properties]=properties
123
                                          [localStoragePrefix]="localStoragePrefix+'sources'" [basketLimit]="basketLimit"
124
                              >
125
                              </bulk-claim>
126

    
127
                            </div>
128
                            <div class="uk-animation-slide-top-small  uk-padding-small">
129

    
130
                              <div *ngIf="(sources.length) == 0 " class="uk-alert no-selected-message uk-text-center">
131
                                No Sources added yet. Start adding sources from the left panel. Or upload a DOI's CSV file.
132
                              </div>
133
                              <div *ngIf="sources.length >= basketLimit "
134
                                   class="uk-alert uk-alert-warning uk-text-center">
135
                                Basket reached the size limit. No more sources can be added.
136
                              </div>
137
                              <claim-selected-results [results]="sources"
138
                                                      [localStoragePrefix]="localStoragePrefix+'sources'" class=""
139
                                                      [enableRemove]="showOptions.show == 'source'">
140
                              </claim-selected-results>
141
                              <div id="test1"></div>
142
                            </div>
143
                          </div>
144
                        </div>
145
                        <div *ngIf="inlineEntity"
146
                             class="linkInlineEntity   uk-padding-small">
147
                          <div class="uk-h6 linkInlineEntity uk-margin-small-bottom ">
148
                            SOURCE
149

    
150
                          </div>
151
                          <claim-title [entity]="inlineEntity" [slice]="true" [sliceSize]="45"
152
                                       [shortVersion]="true"></claim-title>
153
                          <div class="uk-margin-small-top">
154
                            <span class="uk-label custom-label linkInlineEntityLabel"
155
                                  title="Type">{{inlineEntity.type}}</span>
156
                            <span *ngIf="inlineEntity.project">
157
                            <span class="uk-label custom-label linkInlineEntityLabel"
158
                                  title="Funder">{{inlineEntity.project.funderName}}</span>
159
                              <!--                            <span class="uk-label custom-label " title="Type">{{inlineEntity.type}}</span>-->
160
                          </span>
161
                            <span *ngIf="inlineEntity.result">
162
                            <span class="uk-label custom-label linkInlineEntityLabel "
163
                                  title="Access mode">{{inlineEntity.result.accessRights}}</span>
164
                          </span>
165
                          </div>
166

    
167
                        </div>
168
                        <div *ngIf="showOptions.show !='source'">
169
                          <div class=" linksbaskettitles   uk-padding-small  uk-animation-toggle" (click)="showOptions.basketShowLinksTo=!showOptions.basketShowLinksTo;
170
                            showOptions.basketShowSources=!showOptions.basketShowLinksTo ">
171
                            <div *ngIf="!inlineEntity"> <!--Enable toggle -->
172
                              <span class="uk-h6 uk-margin-remove portal-color" >
173
                                  LINK TO ({{(results.length)  | number}})
174
                                  <span *ngIf="!showOptions.basketShowLinksTo" class="uk-icon"><svg width="20"
175
                                                                                                    height="20"
176
                                                                                                    viewBox="0 0 20 20"
177
                                                                                                    xmlns="http://www.w3.org/2000/svg"
178
                                                                                                    icon="chevron-left"
179
                                                                                                    ratio="1"><polyline
180
                                    fill="none" stroke="#000" stroke-width="1.03"
181
                                    points="13 16 7 10 13 4"></polyline></svg></span>
182
                                  <span *ngIf="showOptions.basketShowLinksTo" class="uk-icon"><svg width="20"
183
                                                                                                   height="20"
184
                                                                                                   viewBox="0 0 20 20"
185
                                                                                                   xmlns="http://www.w3.org/2000/svg"
186
                                                                                                   icon="chevron-down"
187
                                                                                                   ratio="1"><polyline
188
                                    fill="none" stroke="#000" stroke-width="1.03"
189
                                    points="16 7 10 13 4 7"></polyline></svg></span>
190
                                </span>
191
                            </div>
192
                            <div *ngIf="inlineEntity"> <!--Inline Entity - no toggle -->
193
                              <span class="uk-h6 uk-margin-remove portal-color">
194
                                  LINK TO ({{(results.length)  | number}})
195
                                  </span>
196
                            </div>
197

    
198

    
199
                            <div class="linksBasketSubtitles">
200
                              Entities to link with the sources
201
                            </div>
202
                          </div>
203
                          <div *ngIf="showOptions.basketShowLinksTo"
204
                               class="uk-height-medium  uk-overflow-auto">
205
                            <div  *ngIf="  (results.length)> 0 || showOptions.show=='result'"
206
                                  class="uk-background-muted uk-padding-small  " style="min-height: 17px;">
207
                              <start-over *ngIf="  (results.length)> 0"
208
                                          [results]="results" [localStoragePrefix]="localStoragePrefix+'results'"
209
                                          message="all results (projects, communities, research results)"
210
                                          class="uk-float-right"></start-over>
211
                              <bulk-claim *ngIf="showOptions.show=='result'" [results]="results" [properties]=properties
212
                                          [localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"></bulk-claim>
213
                            </div>
214

    
215
                            <div class="uk-padding-small uk-animation-slide-top-small">
216
                              <div *ngIf="results.length >= basketLimit "
217
                                   class="uk-alert uk-alert-warning uk-text-center">
218
                                Basket reached the size limit. No more entities can be added.
219
                              </div>
220
                              <claim-selected-results sectionTitle="Selected Results" [results]="results"
221
                                                      [localStoragePrefix]="localStoragePrefix+'results'">
222
                              </claim-selected-results>
223
                              <div *ngIf="(results.length) == 0 " class="uk-alert no-selected-message uk-text-center">
224
                                No entities to link with the sources. Start adding entities from the left panel.
225
                              </div>
226

    
227
                            </div>
228
                          </div>
229
                        </div>
230

    
231

    
232
                      </div>
233
                      <div *ngIf="showOptions.show=='source'"
234
                           [class]="((sources.length)>0?'linksbaskettitlesPortalColor ':'uk-disabled')+ ' linksbaskettitles uk-padding-small'"
235
                           (click)="openSelectionModal(); ">
236
                        <!--show = linkTo; basketShowSources=false;
237
                           basketShowLinksTo=true;-->
238
                        <div class="uk-h6 uk-margin-remove portal-color">CONTINUE TO - LINK TO <span
239
                          *ngIf="results.length > 0">({{(results.length)  | number}})</span>
240
                          <span class="uk-icon uk-float-right uk-text-bold uk-margin-small-right">
241
                          <svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
242
                               icon="chevron-right" ratio="1.5"><polyline fill="none" stroke="#000" stroke-width="1.03"
243
                                                                          points="7 4 13 10 7 16"></polyline></svg>
244
                          </span>
245
                        </div>
246
                        <div class="linksBasketSubtitles">
247
                          Entities to link with the sources
248
                        </div>
249
                      </div>
250
                      <div *ngIf="showOptions.show!='source'"
251
                           [class]="((results.length)>0?'linksbaskettitlesPortalColor ':'uk-disabled')+ ' linksbaskettitles uk-margin-small-top uk-padding-small'"
252
                           style="height:auto !important; " (click)="showOptions.show = 'claim'; scrollUp();">
253

    
254
                        <div class="uk-margin-remove portal-color uk-text-center">
255
                          FINISH LINKING
256
                          <span class="uk-icon uk-float-right uk-text-bold uk-margin-small-right">
257
                          <svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
258
                               icon="chevron-right" ratio="1.5"><polyline fill="none" stroke="#000" stroke-width="1.03"
259
                                                                          points="7 4 13 10 7 16"></polyline></svg>
260
                          </span>
261
                        </div>
262
                      </div>
263
                    </div>
264
                  </div>
265
                  <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" [texts]="pageContents['bottom']"></helper>
266
                </div>
267

    
268

    
269
<!--                <helper position="right" styleName=" uk-width-1-5"></helper>-->
270
              </div>
271
<!--              <helper position="bottom"></helper>-->
272
            </div>
273

    
274

    
275
          </div>
276

    
277
        </div>
278
      </div>
279
    </div>
280
  </div>
281
</div>
282

    
283
<modal-alert (alertOutput)="closeSelectionModal($event)" >
284
  <div class="uk-grid uk-text-center uk-margin-expand uk-padding uk-child-width-1-3">
285

    
286
    <div *ngIf="showOptions.linkToEntities.indexOf('project')!=-1 " (click)="closeSelectionModal('project')"
287
         style="cursor:pointer;">
288
      <button class="uk-icon-button portal-button">
289
        <span class="uk-icon">
290
                        <svg height="20" icon="album" ratio="1" viewBox="0 0 20 20" width="20"
291
                             xmlns="http://www.w3.org/2000/svg"><rect height="1" width="10" x="5" y="2"></rect><rect
292
                          height="1" width="14" x="3" y="4"></rect><rect fill="none" height="11" stroke="#000"
293
                                                                         width="17" x="1.5" y="6.5"></rect></svg></span>
294
      </button>
295
      <div>Projects</div>
296
    </div>
297
    <div *ngIf="showOptions.linkToEntities.indexOf('result')!=-1 " (click)="closeSelectionModal('result')"
298
         style="cursor:pointer;">
299
      <button class="uk-icon-button portal-button">
300
         <span class="uk-icon">
301
                           <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
302
                                xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
303
                                                                         width="12" x="3.5" y="2.5"></rect><polyline
304
                             fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>
305
      </button>
306
      <div>Research results</div>
307
    </div>
308
    <div *ngIf="showOptions.linkToEntities.indexOf('context')!=-1 " (click)="closeSelectionModal('context')"
309
         style="cursor:pointer;">
310
      <button class="uk-icon-button portal-button">
311
        <span class="uk-icon">
312
                           <svg height="20" icon="users" ratio="1" viewBox="0 0 20 20" width="20"
313
                                xmlns="http://www.w3.org/2000/svg"><circle cx="7.7" cy="8.6" fill="none" r="3.5"
314
                                                                           stroke="#000" stroke-width="1.1"></circle><path
315
                             d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3" fill="none"
316
                             stroke="#000" stroke-width="1.1"></path><path
317
                             d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"
318
                             fill="none" stroke="#000" stroke-width="1.1"></path></svg></span>
319
      </button>
320
      <div>Communities</div>
321
    </div>
322

    
323
  </div>
324
</modal-alert>
(1-1/3)