Project

General

Profile

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 software">
6

    
7
    <div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning  uk-margin-large-top" role="alert">{{warningMessage}}</div>
8
    <div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger  uk-margin-large-top" role="alert">{{errorMessage}}</div>
9
    <div [style.display]="showLoading ? 'inline' : 'none'" class="uk-animation-fade uk-margin-large-top  uk-width-1-1" role="alert"><img src="./assets/loading.gif" class="uk-align-center" alt="Loading"></div>
10

    
11
    <div *ngIf="softwareInfo != null" uk-grid>
12
        <div class="uk-width-3-4@l uk-width-3-4@xl uk-width-3-4@m uk-width-1-1@s">
13
            <showTitle   [title]="softwareInfo.title"></showTitle>
14
            <span *ngIf="softwareInfo.types.length > 0"class="uk-label custom-label label-blue label-software " title="Type">{{softwareInfo.types.join(", ")}}</span>
15
            <span *ngIf="softwareInfo.title && softwareInfo.title.accessMode" [class]="'uk-label custom-label label-green label-'+ softwareInfo.title.accessMode " ><!--span [class]="softwareInfo.title.accessMode" -->{{softwareInfo.title.accessMode}}<!--/span--></span>
16
            <span *ngIf="softwareInfo.underCurationMessage" class="uk-label custom-label label-yellow "  >
17
              <span uk-tooltip="pos:right; delay:10"
18
                  title="{{buildCurationTooltip()}}">
19
              <i>Record in preview</i>
20
              <i class="uk-icon-info-circle"></i>
21
            </span></span>
22
            <!--div *ngIf="softwareInfo.underCurationMessage">
23
              <span uk-tooltip="pos:right; delay:10"
24
                    title="{{buildCurationTooltip()}}">
25
                <i>Record in preview</i>
26
                <i class="uk-icon-info-circle"></i>
27
              </span>
28
            </div-->
29

    
30
            <div class= " uk-margin-top">
31
                <showAuthors [authors]="softwareInfo.authors" searchPage="software"></showAuthors>
32
                <span *ngIf="softwareInfo.date != ''">({{softwareInfo.date}})</span>
33
            </div>
34

    
35
            <ul class="uk-list">
36
                <li *ngIf="softwareInfo.publisher"><span class="uk-text-bold">Publisher:</span> {{softwareInfo.publisher}}</li>
37

    
38
                <li *ngIf="softwareInfo.embargoEndDate"><span class="uk-text-bold">Embargo end date:</span> {{softwareInfo.embargoEndDate}}</li>
39
                 <li *ngIf="softwareInfo.identifiers && softwareInfo.identifiers.size > 0">
40
                  <showIdentifiers [identifiers]="softwareInfo.identifiers"></showIdentifiers>
41
                </li>
42
                <li *ngIf="softwareInfo.subjects ||softwareInfo.otherSubjects ||  softwareInfo.classifiedSubjects">
43
                  <showSubjects [subjects]="softwareInfo.subjects"
44
                  [otherSubjects]="softwareInfo.otherSubjects"
45
                  [classifiedSubjects]="softwareInfo.classifiedSubjects">
46
                </showSubjects>
47
                </li>
48
            </ul>
49

    
50
            <div *ngIf="softwareInfo.description" class="uk-margin-bottom uk-text-justify descriptionText">
51
              {{softwareInfo.description}}
52
            </div>
53

    
54
            <!--div class="uk-clearfix"><div class="uk-button-group uk-float-right  uk-margin-top">
55
                <button class="uk-button uk-button-small uk-button-action">
56
                  <span class="uk-icon"   >
57
                         <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="link" ratio="1"><path fill="none" stroke="#000" stroke-width="1.1" d="M10.625,12.375 L7.525,15.475 C6.825,16.175 5.925,16.175 5.225,15.475 L4.525,14.775 C3.825,14.074 3.825,13.175 4.525,12.475 L7.625,9.375"></path><path fill="none" stroke="#000" stroke-width="1.1" d="M9.325,7.375 L12.425,4.275 C13.125,3.575 14.025,3.575 14.724,4.275 L15.425,4.975 C16.125,5.675 16.125,6.575 15.425,7.275 L12.325,10.375"></path><path fill="none" stroke="#000" stroke-width="1.1" d="M7.925,11.875 L11.925,7.975"></path></svg></span>
58
                  Link this software to
59
                </button>
60
                <div class="uk-inline">
61
                    <button class="uk-button uk-button-small uk-button-action" type="button">
62
                      <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="triangle-down" ratio="1"><polygon points="5 7 15 7 10 12"></polygon></svg></span>
63
                    </button>
64
                    <div uk-dropdown="mode: click; boundary: ! .uk-button-group; boundary-align: true;"
65
                    class="uk-dropdown uk-dropdown-boundary uk-dropdown-bottom-left" style="top: 40px;    left: -236.5px;">
66
                        <ul class="uk-nav uk-dropdown-nav uk-padding-small" >
67
                            <li><a class="uk-width-1-1" [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','project'])"   routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
68
                               Projects</a></li>
69
                            <li><a  class="uk-width-1-1"[queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','context'])"   routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
70
                               Communities</a></li>
71
                            <li><a   class="uk-width-1-1"  [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','result'])"   routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
72
                              Other research results</a></li>
73
                        </ul>
74

    
75
                    </div>
76
                </div>
77
            </div></div-->
78

    
79

    
80
            <ul class="uk-tab uk-visible@m" uk-tab="connect: #tab-content">
81
                <li (click)="activeTab='Related Research Results'"
82
                    [class]="activeTab == 'Related Research Results'?'uk-active':''">
83
                     <a>
84
                         Related Research Results
85
                         <span class="uk-badge uk-badge-notification">
86
                             {{relatedResearchResultsNum}}
87
                         </span>
88
                     </a>
89
                 </li>
90

    
91
                <li (click)="activeTab='Similar Research Results'"
92
                    [class]="activeTab == 'Similar Research Results'?'uk-active':''">
93
                    <a>
94
                        Similar Research Results
95
                        <span *ngIf="!softwareInfo.similarResearchResults" class="uk-badge uk-badge-notification">0</span>
96
                        <span *ngIf="softwareInfo.similarResearchResults" class="uk-badge uk-badge-notification">
97
                            {{softwareInfo.similarResearchResults.length}}
98
                        </span>
99
                    </a>
100
                </li>
101

    
102
                <li (click)="metricsClicked=true; activeTab='Metrics'"
103
                    [class]="activeTab == 'Metrics'?'uk-active':''">
104
                    <a>
105
                        Metrics  <!--i class="icon-line-chart"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 36 36"  style="fill:currentColor;">
106
  <path d="M4.415 31.713h31.704v4.529h-36.233v-36.233h4.529zM10.077 29.447c-1.877 0-3.396-1.521-3.396-3.396s1.521-3.396 3.396-3.396c0.101 0 0.199 0.006 0.297 0.014l3.652-6.086c-0.348-0.534-0.551-1.171-0.551-1.855 0-1.877 1.521-3.396 3.396-3.396s3.396 1.521 3.396 3.396c0 0.685-0.203 1.321-0.551 1.855l3.652 6.086c0.098-0.009 0.196-0.014 0.297-0.014 0.076 0 0.151 0.004 0.225 0.009l6.028-10.549c-0.373-0.546-0.592-1.204-0.592-1.916 0-1.877 1.521-3.396 3.396-3.396s3.396 1.521 3.396 3.396c0 1.877-1.521 3.396-3.396 3.396-0.076 0-0.151-0.004-0.225-0.009l-6.028 10.549c0.373 0.546 0.592 1.204 0.592 1.916 0 1.877-1.521 3.396-3.396 3.396s-3.396-1.521-3.396-3.396c0-0.684 0.203-1.321 0.551-1.855l-3.652-6.086c-0.098 0.009-0.196 0.014-0.297 0.014s-0.199-0.006-0.297-0.014l-3.652 6.086c0.348 0.534 0.551 1.171 0.551 1.855 0 1.877-1.521 3.396-3.396 3.396z"></path>
107
</svg></i-->
108
                    </a>
109
                </li>
110
            </ul>
111

    
112
            <button class="uk-button uk-button-default uk-hidden@m" type="button">
113
              <span uk-navbar-toggle-icon></span> <span class="uk-margin-small-left">{{activeTab}}</span>
114
            </button>
115

    
116
            <ul id="toggle-small-tabs" class="uk-subnav uk-subnav-pill uk-dropdown uk-hidden@m" uk-switcher="connect: #tab-content" uk-dropdown="mode: click" uk-toggle="target: #toggle-small-tabs">
117
              <li (click)="activeTab='Related Research Results'"
118
                  [class]="activeTab == 'Related Research Results'?'uk-active':''">
119
                     <a>
120
                         Related Research Results
121
                         <span class="uk-badge uk-badge-notification">
122
                             {{relatedResearchResultsNum}}
123
                         </span>
124
                     </a>
125
                 </li>
126

    
127
                <li (click)="activeTab='Similar Research Results'"
128
                    [class]="activeTab == 'Similar Research Results'?'uk-active':''">
129
                    <a>
130
                        Similar Research Results
131
                        <span *ngIf="!softwareInfo.similarResearchResults" class="uk-badge uk-badge-notification">0</span>
132
                        <span *ngIf="softwareInfo.similarResearchResults" class="uk-badge uk-badge-notification">
133
                            {{softwareInfo.similarResearchResults.length}}
134
                        </span>
135
                    </a>
136
                </li>
137

    
138
                <li (click)="metricsClicked=true; activeTab='Metrics'"
139
                    [class]="activeTab == 'Metrics'?'uk-active':''">
140
                    <a>
141
                        Metrics<!--i class="icon-line-chart"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 36 36"  style="fill:currentColor;">
142
<path d="M4.415 31.713h31.704v4.529h-36.233v-36.233h4.529zM10.077 29.447c-1.877 0-3.396-1.521-3.396-3.396s1.521-3.396 3.396-3.396c0.101 0 0.199 0.006 0.297 0.014l3.652-6.086c-0.348-0.534-0.551-1.171-0.551-1.855 0-1.877 1.521-3.396 3.396-3.396s3.396 1.521 3.396 3.396c0 0.685-0.203 1.321-0.551 1.855l3.652 6.086c0.098-0.009 0.196-0.014 0.297-0.014 0.076 0 0.151 0.004 0.225 0.009l6.028-10.549c-0.373-0.546-0.592-1.204-0.592-1.916 0-1.877 1.521-3.396 3.396-3.396s3.396 1.521 3.396 3.396c0 1.877-1.521 3.396-3.396 3.396-0.076 0-0.151-0.004-0.225-0.009l-6.028 10.549c0.373 0.546 0.592 1.204 0.592 1.916 0 1.877-1.521 3.396-3.396 3.396s-3.396-1.521-3.396-3.396c0-0.684 0.203-1.321 0.551-1.855l-3.652-6.086c-0.098 0.009-0.196 0.014-0.297 0.014s-0.199-0.006-0.297-0.014l-3.652 6.086c0.348 0.534 0.551 1.171 0.551 1.855 0 1.877-1.521 3.396-3.396 3.396z"></path>
143
  </svg></i-->
144
                    </a>
145
                </li>
146
            </ul>
147

    
148
            <!--ul id="tab-content" class="uk-switcher uk-margin custom-tab-content"-->
149
            <div class="uk-margin custom-tab-content">
150
                <div *ngIf="activeTab=='Related Research Results'" class="uk-animation-fade">
151
                    <div *ngIf="!softwareInfo.relatedResearchResults" class = "uk-alert  uk-alert-primary" >
152
                        No related research results available
153
                    </div>
154
                    <div *ngIf="softwareInfo.relatedResearchResults">
155
                        <div *ngFor="let provenanceaction of getKeys(softwareInfo.relatedResearchResults)">
156
                            <div class="uk-text-large">{{provenanceaction}}</div>
157

    
158
                            <tabTable [info]="softwareInfo.relatedResearchResults.get(provenanceaction)"></tabTable>
159
                        </div>
160
                    </div>
161
                </div>
162

    
163
                <div *ngIf="activeTab=='Similar Research Results'" class="uk-animation-fade">
164
                    <div  *ngIf="!softwareInfo.similarResearchResults"  class = "uk-alert  uk-alert-primary" >
165
                        No similar research results available
166
                    </div>
167
                    <div *ngIf="softwareInfo.similarResearchResults">
168
                        <tabTable [info]="softwareInfo.similarResearchResults"></tabTable>
169
                    </div>
170
                </div>
171
                <div *ngIf="activeTab=='Metrics'" class="uk-animation-fade">
172
                  <!-- Page Views: {{pageViews}} -->
173
                    <metrics [pageViews]="pageViews"
174
                        [id]="softwareId" [entityType]="'results'" [entity]="'Software'"
175
                        (metricsResults)="metricsResults($event)">
176
                    </metrics>
177
                    <i-frame *ngIf="metricsClicked && totalViews > 0"
178
                        [url]=viewsFrameUrl width="100%" height="250">
179
                    </i-frame>
180
                    <i-frame *ngIf="metricsClicked && totalDownloads > 0"
181
                        [url]=downloadsFrameUrl width="100%" height="250">
182
                    </i-frame>
183
                </div>
184
            <!--/ul-->
185
          </div>
186
        </div>
187

    
188
        <div class="uk-width-1-4@l uk-width-1-4@xl uk-width-1-4@m uk-width-1-1@s">
189
          <div  >
190
            Share - Bookmark
191
            <addThis></addThis>
192
          </div>
193
          <altmetrics *ngIf="softwareInfo.identifiers && softwareInfo.identifiers.get('doi')"
194
             id="{{softwareInfo.identifiers.get('doi')[0]}}" type="doi">
195
          </altmetrics >
196
            <ul class="uk-list ">
197

    
198
                <li *ngIf="softwareInfo.downloadFrom && softwareInfo.downloadFrom.size > 0">
199
                    <dl class="uk-description-list-line">
200
                        <dt class="title">Download from</dt>
201
                        <dd class="line"
202
                            *ngFor="let key of getKeys(softwareInfo.downloadFrom) let i=index"   >
203
                            <div *ngIf="i<5 || showAllDownloadFrom"
204
                                  class="{{softwareInfo.downloadFrom.get(key)['bestAccessMode']}}">
205
                                <span [class]="softwareInfo.downloadFrom.get(key)['url'].length > 0 ? 'custom-external custom-icon' : ''">
206
                                    <span *ngIf="softwareInfo.downloadFrom.get(key)['url'].length > 1">
207
                                        {{key}}
208
                                        <span *ngFor="let url of softwareInfo.downloadFrom.get(key)['url']; let i=index;">
209
                                            <a  href="{{url}}" target="_blank"
210
                                                [attr.uk-tooltip]="softwareInfo.downloadFrom.get(key)['accessMode'][i] ? 'pos:right; delay:10' : 'cls: uk-invisible'"
211
                                                [title]="softwareInfo.downloadFrom.get(key)['accessMode'][i]">
212
                                                [{{i+1}}]
213
                                            </a>
214
                                        </span>
215
                                    </span>
216
                                    <a *ngIf="softwareInfo.downloadFrom.get(key)['url'].length == 1"
217
                                        href="{{softwareInfo.downloadFrom.get(key)['url']}}"
218
                                        target="_blank"
219
                                        [attr.uk-tooltip]="softwareInfo.downloadFrom.get(key)['bestAccessMode'] ? 'pos:right; delay:10' : 'cls: uk-invisible'"
220
                                        [title]="softwareInfo.downloadFrom.get(key)['bestAccessMode']">
221
                                        {{key}}
222
                                    </a>
223
                                    <span *ngIf="softwareInfo.downloadFrom.get(key)['url'].length == 0"
224
                                          [attr.uk-tooltip]="softwareInfo.downloadFrom.get(key)['bestAccessMode'] ? 'pos:right; delay:10' : 'cls: uk-invisible'"
225
                                          [title]="softwareInfo.downloadFrom.get(key)['bestAccessMode']">
226
                                        {{key}}
227
                                    </span>
228
                                </span>
229
                            </div>
230
                        </dd>
231
                        <dd *ngIf="showAllDownloadFrom" class="uk-text-right">
232
                            <a class="uk-text-muted" (click)="showAllDownloadFrom = !showAllDownloadFrom;">
233
                                View less
234
                            </a>
235
                        </dd>
236
                        <dd *ngIf="!showAllDownloadFrom && softwareInfo.downloadFrom.size > 5">...</dd>
237
                        <dd *ngIf="!showAllDownloadFrom && softwareInfo.downloadFrom.size > 5" class="uk-text-right">
238
                            <a class="uk-text-muted" (click)="showAllDownloadFrom = !showAllDownloadFrom;">
239
                                View more
240
                            </a>
241
                        </dd>
242
                    </dl>
243
                </li>
244
                <li *ngIf="softwareInfo.publishedIn && softwareInfo.publishedIn.size > 0">
245
                  <publishedIn [publishedIn]="softwareInfo.publishedIn"></publishedIn>
246
                </li>
247
                <li *ngIf="softwareInfo.fundedByProjects != undefined && softwareInfo.fundedByProjects.length > 0">
248
                  <fundedBy [fundedByProjects]="softwareInfo.fundedByProjects"></fundedBy>
249
                </li>
250

    
251
                <li  *ngIf="softwareInfo.contexts && softwareInfo.contexts.length >0 ">
252
                    <dl class="uk-description-list-line" >
253
                        <dt class="title">Related to </dt>
254
                        <dd class="line" *ngFor="let item of softwareInfo.contexts">
255
                          <span *ngIf = "!item['inline']" >
256
                            <span>{{item['labelContext']}}</span>
257
                            <span *ngIf="item['labelCategory']">-> {{item['labelCategory']}}</span>
258
                            <span *ngIf="item['labelConcept']">: {{item['labelConcept']}}</span>
259
                          </span>
260
                          <mark *ngIf = "item['inline']" >
261
                            <span>{{item['labelContext']}}</span>
262
                            <span *ngIf="item['labelCategory']">-> {{item['labelCategory']}}</span>
263
                            <span *ngIf="item['labelConcept']">: {{item['labelConcept']}}</span>
264
                          </mark>
265
                        </dd>
266

    
267
                    </dl>
268

    
269
                </li>
270

    
271
                <li><citeThis [result]="softwareInfo" [id]="softwareId" type="software"></citeThis></li>
272
                <li *ngIf="softwareInfo.collectedFrom && softwareInfo.collectedFrom.length > 0">
273
                    <dl class="uk-description-list-line">
274
                        <dt>Collected from</dt>
275
                        <dd  *ngFor="let item of softwareInfo.collectedFrom let i=index">
276
                            <!--a href="{{item['url']}}"-->
277
                            <a *ngIf="i<5 || showAllCollectedFrom"
278
                                [queryParams]="{datasourceId: item.id}" routerLinkActive="router-link-active" routerLink="/search/dataprovider">
279
                                    {{item['name']}}
280
                            </a>
281
                        </dd>
282
                        <dd *ngIf="showAllCollectedFrom" class="uk-text-right">
283
                            <a class="uk-text-muted" (click)="showAllCollectedFrom = !showAllCollectedFrom;">
284
                                View less
285
                            </a>
286
                        </dd>
287
                        <dd *ngIf="!showAllCollectedFrom && softwareInfo.collectedFrom.length > 5">...</dd>
288
                        <dd *ngIf="!showAllCollectedFrom && softwareInfo.collectedFrom.length > 5" class="uk-text-right">
289
                            <a class="uk-text-muted" (click)="showAllCollectedFrom = !showAllCollectedFrom;">
290
                                View more
291
                            </a>
292
                        </dd>
293
                    </dl>
294
                </li>
295

    
296

    
297
            </ul>
298

    
299

    
300
        </div>
301
    </div>
302
</div>
303
</div>
304
</div>
305
</div>
(2-2/5)