Project

General

Profile

1
<div class="uk-container uk-margin-top dataset">
2
    <!--div class="container-header" -->
3

    
4
    <div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning" role="alert">{{warningMessage}}</div>
5
    <div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger" role="alert">{{errorMessage}}</div>
6

    
7
    <div *ngIf="datasetInfo != null" class="uk-grid">
8
        <div class="uk-width-7-10">
9
            <showTitle [title]="datasetInfo.title"></showTitle>
10
        <!--/div>
11
        </div>
12

    
13
    <div class="uk-grid">
14

    
15
        <div class="uk-width-2-3" *ngIf="datasetInfo != null"-->
16
            <div>
17
                <showAuthors [authors]="datasetInfo.authors"></showAuthors>
18
                <span *ngIf="datasetInfo.date != ''">({{datasetInfo.date}})</span>
19
            </div>
20

    
21
            <dl class="uk-description-list-horizontal custom-description-list-horizontal">
22
                <dt *ngIf="datasetInfo.publisher != undefined && datasetInfo.publisher != ''">Publisher: </dt>
23
                <dd *ngIf="datasetInfo.publisher != undefined && datasetInfo.publisher != ''">{{datasetInfo.publisher}}</dd>
24
                <dt *ngIf="datasetInfo.type != undefined"> Type: </dt>
25
                <dd *ngIf="datasetInfo.type != undefined">{{datasetInfo.type}}</dd>
26
                <dt *ngIf="datasetInfo.embargoEndDate != undefined && datasetInfo.embargoEndDate != ''">Embargo end date: </dt>
27
                <dd *ngIf="datasetInfo.embargoEndDate != undefined && datasetInfo.embargoEndDate != ''">{{datasetInfo.embargoEndDate}}</dd>
28

    
29
                <showIdentifiers [identifiers]="datasetInfo.identifiers"></showIdentifiers>
30
                <showSubjects [subjects]="datasetInfo.subjects"
31
                              [otherSubjects]="datasetInfo.otherSubjects"
32
                              [classifiedSubjects]="datasetInfo.classifiedSubjects">
33
                </showSubjects>
34
            </dl>
35

    
36
            <blockquote *ngIf="datasetInfo.description != ''">
37
                <div class="uk-text-justify">{{datasetInfo.description}}</div>
38
            </blockquote>
39

    
40

    
41
            <ul class="uk-tab" data-uk-switcher="{connect:'#tab-content'}">
42
                <li class="uk-active">
43
                     <a href="#relatedTab">
44
                         Related Research Results
45
                         <span class="uk-badge uk-badge-notification">
46
                             {{relatedResearchResultsNum}}
47
                         </span>
48
                     </a>
49
                 </li>
50

    
51
                <li>
52
                    <a href="#similarTab">
53
                        Similar Research Results
54
                        <span *ngIf="datasetInfo.similarResearchResults == undefined" class="uk-badge uk-badge-notification">0</span>
55
                        <span *ngIf="datasetInfo.similarResearchResults != undefined" class="uk-badge uk-badge-notification">
56
                            {{datasetInfo.similarResearchResults.length}}
57
                        </span>
58
                    </a>
59
                </li>
60

    
61
                <li (click)="metricsClicked=true">
62
                    <a href="#metricsTab">
63
                        Metrics
64
                    </a>
65
                </li>
66
            </ul>
67

    
68
            <ul id="tab-content" class="uk-switcher uk-margin">
69
                <li id="relatedTab">
70
                    <div *ngIf="datasetInfo.relatedResearchResults == undefined" class = "uk-alert" >
71
                        There are no related research results
72
                    </div>
73
                    <div *ngIf="datasetInfo.relatedResearchResults != undefined">
74
                        <div *ngFor="let provenanceaction of datasetInfo.relatedResearchResults.keys()">
75
                            <h4>{{provenanceaction}}</h4>
76

    
77
                            <p>
78
                                The results below are discovered through our pilot algorithms.
79
                                <a href="mailto:feedback@openaire.eu">Let us know how we are doing!</a>
80
                            </p>
81

    
82
                            <tabTable from="dataset" [info]="datasetInfo.relatedResearchResults.get(provenanceaction)"></tabTable>
83
                        </div>
84
                    </div>
85
                </li>
86

    
87
                <li id="similarTab">
88
                    <div  *ngIf="datasetInfo.similarResearchResults == undefined"  class = "uk-alert" >
89
                        There are no similar research results
90
                    </div>
91
                    <div *ngIf="datasetInfo.similarResearchResults != undefined">
92
                        <p>
93
                            The results below are discovered through our pilot algorithms.
94
                            <a href="mailto:feedback@openaire.eu">Let us know how we are doing!</a>
95
                        </p>
96

    
97
                        <tabTable from="dataset" [info]="datasetInfo.similarResearchResults"></tabTable>
98
                    </div>
99
                </li>
100
                <li id="metricsTab">
101
                    <metrics *ngIf="metricsClicked"
102
                        [id]="datasetId" [type]="'results'" (metricsResults)="metricsResults($event)">
103
                    </metrics>
104
                    <i-frame *ngIf="metricsClicked && totalViews > 0"
105
                        [url]=viewsFrameUrl width="100%" height="250">
106
                    </i-frame>
107
                    <i-frame *ngIf="metricsClicked && totalDownloads > 0"
108
                        [url]=downloadsFrameUrl width="100%" height="250">
109
                    </i-frame>
110
                </li>
111
            </ul>
112
        </div>
113

    
114
        <div class="uk-width-3-10" *ngIf="datasetInfo != null">
115
            <ul class="uk-list uk-list-striped mainFunctionsBlock">
116
                <li>
117
                  <dl class="uk-description-list-line">
118
                      <dt  >Share - Bookmark
119
                      </dt>
120
                      <dd>
121
                        <addThis ></addThis>
122
                      </dd>
123
                  </dl>
124
                  <altmetrics *ngIf="datasetInfo.identifiers != undefined && datasetInfo.identifiers.get('doi') != undefined"
125
                     id="{{datasetInfo.identifiers.get('doi')[0]}}" type="doi">
126
                  </altmetrics >
127
                </li>
128
                <li *ngIf="datasetInfo.downloadFrom != undefined && datasetInfo.downloadFrom.size > 0">
129
                    <dl class="uk-description-list-line functionsSection">
130
                        <dt class="title">Download from</dt>
131
                        <dd class="line" *ngFor="let key of datasetInfo.downloadFrom.keys()">
132
                            <div *ngIf="datasetInfo.downloadFrom.get(key)['url'].length > 1">
133
                                {{key}}
134
                                <span *ngFor="let url of datasetInfo.downloadFrom.get(key)['url']; let i=index;">
135
                                    <a href="{{url}}">
136
                                        [{{i+1}}]
137
                                    </a>
138
                                </span>
139
                            </div>
140
                            <a *ngIf="datasetInfo.downloadFrom.get(key)['url'].length == 1" href="{{datasetInfo.downloadFrom.get(key)['url']}}">
141
                                {{key}}
142
                            </a>
143
                        </dd>
144
                    </dl>
145
                </li>
146

    
147

    
148
                <li  >
149
                    <dl class="uk-description-list-line functionsSection" >
150
                        <dt class="title">Funded By</dt>
151
                        <dd
152
                            data-uk-tooltip="{pos:'right'}" title="{{item['title']}}
153
                            |   Project Code: {{item['acronym']}}
154
                            |   Funder: {{item['funderName']}} ({{item['funderShortname']}})
155
                            |   Funding: {{item['funding']}}"
156
                            class="line" *ngFor="let item of datasetInfo.fundedByProjects">
157
                                <!--a *ngIf="!item['inline']" href="{{item['url']}}"-->
158
                                <a *ngIf="!item['inline']"
159
                                    [queryParams]="{projectId: item.id}" routerLinkActive="router-link-active" routerLink="/search/project">
160
                                    {{item['funderShortname']?item['funderShortname']:item['funderName']}}
161
                                    | {{ item['acronym']?item['acronym']:item['title']}}
162
                                </a>
163

    
164
                                <!--a *ngIf="item['inline']" href="{{item['url']}}"-->
165
                                <a *ngIf="item['inline']"
166
                                    [queryParams]="{projectId: item.id}" routerLinkActive="router-link-active" routerLink="/search/project">
167
                                    <mark>
168
                                        {{item['funderShortname']?item['funderShortname']:item['funderName']}}
169
                                        | {{ item['acronym']?item['acronym']:item['title']}}
170
                                    </mark>
171
                                </a>
172
                        </dd>
173
                        <!--dd><a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[datasetId,'dataset','project'])"   routerLinkActive="router-link-active" routerLink="/linking" > <i class="uk-icon-link"></i> Add links to projects</a></dd-->
174
                    </dl>
175

    
176

    
177
                </li>
178
                <li  >
179
                    <dl class="uk-description-list-line functionsSection" >
180
                        <dt class="title">Related to </dt>
181
                        <dd class="line" *ngFor="let item of datasetInfo.contexts">
182
                          <span *ngIf = "!item['inline']" >
183
                            <span>{{item['labelContext']}}</span>
184
                            <span *ngIf="item['labelCategory'] != null">-> {{item['labelCategory']}}</span>
185
                            <span *ngIf="item['labelConcept'] != null">: {{item['labelConcept']}}</span>
186
                          </span>
187
                          <mark *ngIf = "item['inline']" >
188
                            <span>{{item['labelContext']}}</span>
189
                            <span *ngIf="item['labelCategory'] != null">-> {{item['labelCategory']}}</span>
190
                            <span *ngIf="item['labelConcept'] != null">: {{item['labelConcept']}}</span>
191
                          </mark>
192
                        </dd>
193
                        <!--dd><a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[datasetId,'dataset','context'])"   routerLinkActive="router-link-active" routerLink="/linking" > <i class="uk-icon-link"></i> Add links to contexts</a></dd-->
194
                    </dl>
195

    
196
                </li>
197
                <li *ngIf="datasetInfo.collectedFrom != undefined">
198
                    <dl class="uk-description-list-line functionsSection">
199
                        <dt>Collected from</dt>
200
                        <dd  *ngFor="let item of datasetInfo.collectedFrom">
201
                            <!--a href="{{item['url']}}"-->
202
                            <a [queryParams]="{datasourceId: item.id}" routerLinkActive="router-link-active" routerLink="/search/dataprovider">
203
                                {{item['name']}}
204
                            </a>
205
                        </dd>
206
                    </dl>
207
                </li>
208
            </ul>
209
        </div>
210
    </div>
211
</div>
(2-2/5)