Project

General

Profile

1
<div>
2
    <div class="container publication">
3
        <div class="container-header" >
4
            <div *ngIf="publicationInfo != null">
5
                <showTitle [title]="publicationInfo.title"></showTitle>
6
            </div>
7
            <div *ngIf="warningMessage.length > 0" class="alert alert-warning" role="alert">{{warningMessage}}</div>
8
            <div *ngIf="errorMessage.length > 0" class="alert alert-danger" role="alert">{{errorMessage}}</div>
9
        </div>
10

    
11
        <div class="row row-offcanvas row-offcanvas-right" >
12

    
13
            <div class="col-xs-6 col-sm-9 sidebar-offcanvas" *ngIf="publicationInfo != null">
14
                <div>
15
                    <showAuthors [authors]="publicationInfo.authors"></showAuthors>
16
                    <span *ngIf="publicationInfo.date != ''">({{publicationInfo.date}})</span>
17
                </div>
18

    
19
                <dl class="dl-horizontal">
20
                    <dt *ngIf="publicationInfo.publisher != undefined && publicationInfo.publisher != ''">Publisher: </dt>
21
                    <dd *ngIf="publicationInfo.publisher != undefined && publicationInfo.publisher != ''">{{publicationInfo.publisher}}</dd>
22
                    <dt *ngIf="publicationInfo.journal != undefined && publicationInfo.journal['journal'] != ''">Journal: </dt>
23
                    <dd *ngIf="publicationInfo.journal != undefined && publicationInfo.journal != ''">
24
                        {{publicationInfo.journal['journal']}}
25
                        <span *ngIf="publicationInfo.journal['issn'] != ''">
26
                            <mark>issn:</mark> {{publicationInfo.journal['issn']}}
27
                        </span>
28
                        <span *ngIf="publicationInfo.journal['lissn'] != ''">
29
                            <mark>lissn:</mark> {{publicationInfo.journal['lissn']}}
30
                        </span>
31
                    </dd>
32
                    <dt *ngIf="publicationInfo.languages != undefined && publicationInfo.languages != 'Undetermined' && publicationInfo.languages != ''"> Languages: </dt>
33
                    <dd *ngIf="publicationInfo.languages != undefined && publicationInfo.languages != 'Undetermined' && publicationInfo.languages != ''">{{publicationInfo.languages}}</dd>
34
                    <dt *ngIf="publicationInfo.types != undefined && publicationInfo.types.length > 0"> Types: </dt>
35
                    <dd *ngIf="publicationInfo.types != undefined && publicationInfo.types.length > 0">{{publicationInfo.types}}</dd>
36
                    <dt *ngIf="publicationInfo.embargoEndDate != undefined && publicationInfo.embargoEndDate != ''">Embargo end date: </dt>
37
                    <dd *ngIf="publicationInfo.embargoEndDate != undefined && publicationInfo.embargoEndDate != ''">{{publicationInfo.embargoEndDate}}</dd>
38

    
39
                    <showIdentifiers [identifiers]="publicationInfo.identifiers"></showIdentifiers>
40
                    <showSubjects [subjects]="publicationInfo.subjects"
41
                                  [otherSubjects]="publicationInfo.otherSubjects"
42
                                  [classifiedSubjects]="publicationInfo.classifiedSubjects">
43
                    </showSubjects>
44
                </dl>
45

    
46
                <blockquote *ngIf="publicationInfo.description != ''">
47
                    <div class="text-justify" [innerHTML]="publicationInfo.description"></div>
48
                </blockquote>
49

    
50
                <ul class="nav nav-tabs">
51
                    <li class="active">
52
                        <a data-toggle="tab" href="#citationsTab">
53
                            References
54
                            <span *ngIf="publicationInfo.references == undefined" class="badge">0</span>
55
                            <span *ngIf="publicationInfo.references != undefined" class="badge">
56
                                {{publicationInfo.references.length}}
57
                            </span>
58
                        </a>
59
                    </li>
60
                    <li role="presentation">
61
                        <a data-toggle="tab" href="#relatedTab">
62
                            Related Research Results
63
                            <span *ngIf="publicationInfo.relatedResearchResults == undefined" class="badge">0</span>
64
                            <span *ngIf="publicationInfo.relatedResearchResults != undefined" class="badge">
65
                                {{publicationInfo.relatedResearchResults.length}}
66
                            </span>
67
                        </a>
68
                    </li>
69
                    <li role="presentation">
70
                        <a data-toggle="tab" href="#similarTab">
71
                            Similar Research Results
72
                            <span *ngIf="publicationInfo.similarResearchResults == undefined" class="badge">0</span>
73
                            <span *ngIf="publicationInfo.similarResearchResults != undefined" class="badge">
74
                                {{publicationInfo.similarResearchResults.length}}
75
                            </span>
76
                        </a>
77
                    </li>
78
                    <li role="presentation" *ngIf="publicationInfo.bioentities != undefined">
79
                        <a data-toggle="tab" href="#bioentitiesTab">
80
                            Bioentities
81
                            <span class="badge">{{bioentitiesNum}}</span>
82
                        </a>
83
                    </li>
84
                    <li role="presentation" *ngIf="publicationInfo.software != undefined">
85
                        <a data-toggle="tab" href="#softwareTab">
86
                            Software
87
                            <span class="badge">{{publicationInfo.software.length}}</span>
88
                        </a>
89
                    </li>
90
                </ul>
91

    
92
                <div class="tab-content">
93
                    <div id="citationsTab" class="tab-pane fade in active panel-body">
94

    
95
                        <div *ngIf="publicationInfo.references == undefined" class = "alert alert-info " >
96
                            There are no references
97
                        </div>
98

    
99
                        <div *ngIf="publicationInfo.references != undefined">
100
                            <tabPaging [showAll]="showAllReferences" [length]="publicationInfo.references.length" (changeShowAll)="showChange($event)"></tabPaging>
101

    
102
                            <p>
103
                                The results below are discovered through our pilot algorithms.
104
                                <a href="mailto:">Let us know how we are doing!</a>
105
                            </p>
106

    
107
                            <div *ngFor="let item of publicationInfo.references.slice(0,10)">
108
                                <p *ngIf=" item != undefined && item['url'] != undefined">
109
                                    <a href="{{item['url']}}" target="_blank">
110
                                        {{item['name']}}
111
                                    </a>
112
                                </p>
113
                                <p *ngIf="item['url'] == undefined">
114
                                    {{item['name']}}
115
                                </p>
116
                            </div>
117

    
118
                            <div *ngIf="showAllReferences">
119
                                <div *ngFor="let item of publicationInfo.references.slice(10)">
120
                                    <p *ngIf=" item != undefined && item['url'] != undefined">
121
                                        <a href="{{item['url']}}" target="_blank">
122
                                            {{item['name']}}
123
                                        </a>
124
                                    </p>
125
                                    <p *ngIf="item['url'] == undefined">
126
                                        {{item['name']}}
127
                                    </p>
128
                               </div>
129
                            </div>
130

    
131
                            <tabPaging [showAll]="showAllReferences" [length]="publicationInfo.references.length" (changeShowAll)="showChange($event)"></tabPaging>
132

    
133
                        </div>
134
                    </div>
135

    
136
                    <div id="relatedTab" class="tab-pane fade panel-body">
137
                        <div *ngIf="publicationInfo.relatedResearchResults == undefined" class = "alert alert-info ">
138
                            There are no related research results
139
                        </div>
140
                        <div *ngIf="publicationInfo.relatedResearchResults != undefined">
141
                            <p>
142
                                The results below are discovered through our pilot algorithms.
143
                                <a href="mailto:">Let us know how we are doing!</a>
144
                            </p>
145

    
146
                            <tabTable [info]="publicationInfo.relatedResearchResults"></tabTable>
147
                        </div>
148
                    </div>
149

    
150

    
151
                    <div id="similarTab" class="tab-pane fade panel-body">
152
                        <div *ngIf="publicationInfo.similarResearchResults == undefined" class = "alert alert-info ">
153
                            There are no similar research results
154
                        </div>
155
                        <div *ngIf="publicationInfo.similarResearchResults != undefined">
156
                            <p>
157
                                The results below are discovered through our pilot algorithms.
158
                                <a href="mailto:">Let us know how we are doing!</a>
159
                            </p>
160

    
161
                            <tabTable [info]="publicationInfo.similarResearchResults"></tabTable>
162
                        </div>
163
                    </div>
164
                    <div *ngIf="publicationInfo.bioentities != undefined" id="bioentitiesTab" class="tab-pane fade panel-body">
165
                        <p>
166
                            The results below are discovered through our pilot algorithms.
167
                            <a href="mailto:">Let us know how we are doing!</a>
168
                        </p>
169
                        <table id="bioentitiesTable" class="table table-striped">
170
                            <thead>
171
                                <tr>
172
                                    <th class="text-center">Bio Entity</th>
173
                                    <th class="text-center">Site Name</th>
174
                                </tr>
175
                            </thead>
176
                            <tbody *ngFor="let key of publicationInfo.bioentities.keys()">
177
                                <tr *ngFor="let keyIn of publicationInfo.bioentities.get(key).keys()">
178
                                    <td class="text-center" *ngIf="keyIn != undefined">
179
                                        <a href="{{publicationInfo.bioentities.get(key).get(keyIn)}}" target="_blank">
180
                                            {{keyIn}}
181
                                        </a>
182
                                    </td>
183
                                    <td class="text-center">
184
                                        {{key}}
185
                                    </td>
186
                                </tr>
187
                            </tbody>
188
                        </table>
189
                    </div>
190
                    <div *ngIf="publicationInfo.software != undefined" id="softwareTab" class="tab-pane fade panel-body">
191
                        <p>
192
                            The results below are discovered through our pilot algorithms.
193
                            <a href="mailto:">Let us know how we are doing!</a>
194
                        </p>
195
                        <table id="softwareTable" class="table table-striped">
196
                            <thead>
197
                                <tr>
198
                                    <th class="text-center">Site Name</th>
199
                                </tr>
200
                            </thead>
201
                            <tbody>
202
                                <tr *ngFor="let item of publicationInfo.software">
203
                                    <td class="text-center">
204
                                        <a href="{{item.url}}" target="_blank">
205
                                            {{item.name}}
206
                                        </a>
207
                                    </td>
208
                                </tr>
209
                            </tbody>
210
                        </table>
211
                    </div>
212
                </div>
213
            </div>
214
            <div class="col-xs-12 col-sm-3" *ngIf="publicationInfo != null">
215

    
216
                <ul class="list-group mainFunctionsBlock">
217
                    <li class="list-group-item">
218
                        <dl class="functionsSection">
219
                            <dt  >Share - Bookmark</dt>
220
                            <dd>
221
                            </dd>
222
                        </dl>
223
                    </li>
224
                    <li class="list-group-item" *ngIf="publicationInfo.collectedFrom != undefined">
225
                        <dl class="functionsSection">
226
                            <dt  >Collected from</dt>
227
                            <dd  *ngFor="let item of publicationInfo.collectedFrom">
228
                                <a href="{{item['url']}}">
229
                                    {{item['name']}}
230
                                </a>
231
                            </dd>
232
                        </dl>
233
                    </li>
234
                    <li class="list-group-item" *ngIf="publicationInfo.downloadFrom != undefined && publicationInfo.downloadFrom.size > 0">
235
                        <dl class="functionsSection">
236
                            <dt class="title">Download from</dt>
237
                            <dd class="line" *ngFor="let key of publicationInfo.downloadFrom.keys()">
238
                                <div *ngIf="publicationInfo.downloadFrom.get(key)['url'].length > 1">
239
                                    {{key}}
240
                                    <span *ngFor="let url of publicationInfo.downloadFrom.get(key)['url']; let i=index;">
241
                                        <a href="{{url}}">
242
                                            [{{i+1}}]
243
                                        </a>
244
                                    </span>
245
                                </div>
246
                                <a *ngIf="publicationInfo.downloadFrom.get(key)['url'].length == 1" href="{{publicationInfo.downloadFrom.get(key)['url']}}">
247
                                    {{key}}
248
                                </a>
249
                            </dd>
250
                        </dl>
251
                    </li>
252
                    <li class="list-group-item" *ngIf="publicationInfo.publishedIn != undefined && publicationInfo.publishedIn.length > 0">
253
                        <dl class="functionsSection">
254
                            <dt class="title">Published in</dt>
255
                            <dd class="line" *ngFor="let key of publicationInfo.publishedIn.keys()">
256
                                <div *ngIf="publicationInfo.publishedIn.get(key)['url'].length > 1">
257
                                    {{key}}
258
                                    <span *ngFor="let url of publicationInfo.publishedIn.get(key)['url']; let i=index">
259
                                        <a href="{{url}}">
260
                                            [{{i+1}}]
261
                                        </a>
262
                                    </span>
263
                                </div>
264
                                <a *ngIf="publicationInfo.publishedIn.get(key)['url'].length == 1" href="{{publicationInfo.publishedIn.get(key)['url']}}">
265
                                    {{key}}
266
                                </a>
267
                            </dd>
268
                        </dl>
269
                    </li>
270

    
271
                    <li class="list-group-item">
272
                        <dl class="functionsSection" *ngIf="publicationInfo.fundedByProjects != undefined">
273
                            <dt class="title">Funded By</dt>
274
                            <dd
275
                                title="{{item['title']}}
276
                                |   Project Code: {{item['code']}}
277
                                |   Funder: {{item['funderName']}} ({{item['funderShortname']}})
278
                                |   Funding: {{item['funding']}}"
279
                                class="line" *ngFor="let item of publicationInfo.fundedByProjects">
280
                                    <a *ngIf="!item['inline']" href="{{item['url']}}">
281
                                        {{item['funderShortname']?item['funderShortname']:item['funderName']}}
282
                                        | {{ item['acronym']?item['acronym']:item['title']}}
283
                                    </a>
284

    
285
                                    <a *ngIf="item['inline']" href="{{item['url']}}">
286
                                        <mark>
287
                                            {{item['funderShortname']?item['funderShortname']:item['funderName']}}
288
                                            | {{ item['acronym']?item['acronym']:item['title']}}
289
                                        </mark>
290
                                    </a>
291
                            </dd>
292
                        </dl>
293

    
294
                        <button (click)="toggleClaimProject()"  class = "btn btn-primary   btn-xs" >Add Projects</button>
295
                        <inline-claim-project *ngIf="result "  inlineType ="publication" [inlineEntity]="result"  (projectAdded)="projectAdded($event)" ></inline-claim-project>
296
                    </li>
297
                    <li class="list-group-item">
298
                        <dl class="functionsSection" *ngIf="publicationInfo.contexts != undefined">
299
                            <dt class="title">Related to </dt>
300
                            <dd class="line" *ngFor="let item of publicationInfo.contexts">
301
                              <span *ngIf = "!item['inline']" >
302
                                <span>{{item['labelContext']}}</span>
303
                                <span *ngIf="item['labelCategory'] != null">-> {{item['labelCategory']}}</span>
304
                                <span *ngIf="item['labelConcept'] != null">: {{item['labelConcept']}}</span>
305
                              </span>
306
                              <mark *ngIf = "item['inline']" >
307
                                <span>{{item['labelContext']}}</span>
308
                                <span *ngIf="item['labelCategory'] != null">-> {{item['labelCategory']}}</span>
309
                                <span *ngIf="item['labelConcept'] != null">: {{item['labelConcept']}}</span>
310
                              </mark>
311
                            </dd>
312
                        </dl>
313
                        <dl class="functionsSection" *ngIf="publicationInfo.contexts == undefined">
314
                            <dt class="title">Related to </dt>
315

    
316
                        </dl>
317
                        <button (click)=" toggleClaimContext()" class = "btn btn-primary   btn-xs" >Add Concepts</button>
318
                        <inline-claim-context   inlineType ="publication" [inlineEntity]="result" (contextAdded)="contextAdded($event)" ></inline-claim-context>
319
                    </li>
320
                </ul>
321
            </div>
322
        </div>
323
    </div>
324
</div>
(1-1/2)