Revision 57129
Added by Stefania Martziou over 4 years ago
metrics-usagestats-report.component.html | ||
---|---|---|
1 |
<div class="uk-section-default uk-section uk-section-small uk-padding-remove-bottom" style="min-height: 325px"> |
|
1 |
<div id="page_content"> |
|
2 |
<div id="page_content_inner"> |
|
3 |
<h2 class="heading_b uk-margin-bottom">{{ title }}</h2> |
|
2 | 4 |
|
3 |
<!-- MARGIN-TOP --> |
|
4 |
<div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" aria-hidden="true"></div> |
|
5 |
<div class="uk-container uk-container-large"> |
|
5 |
<!-- TOP HELP CONTENT --> |
|
6 |
<help-content #topHelperContent [position]="'top'" |
|
7 |
[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'"> |
|
8 |
</help-content> |
|
6 | 9 |
|
7 |
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid=""> |
|
8 |
<div class="uk-width-1-1@m uk-first-column"> |
|
10 |
<div class="uk-grid"> |
|
9 | 11 |
|
10 |
<h1 class="uk-h2">{{ title }}</h1> |
|
12 |
<!-- LEFT HELP CONTENT --> |
|
13 |
<aside-help-content #leftHelperContent [position]="'left'" |
|
14 |
[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'"> |
|
15 |
</aside-help-content> |
|
11 | 16 |
|
12 |
<!-- TOP HELP CONTENT --> |
|
13 |
<help-content #topHelperContent [position]="'top'" |
|
14 |
[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'"> |
|
15 |
</help-content> |
|
17 |
<!-- MIDDLE --> |
|
18 |
<div class=" uk-width-expand@m"> |
|
16 | 19 |
|
17 |
<div class="uk-container uk-container-large uk-margin-medium-top uk-margin-medium-bottom"> |
|
18 |
<div class="uk-grid"> |
|
20 |
<div *ngIf="errorMessage" class="uk-alert uk-alert-warning">{{errorMessage}}</div> |
|
21 |
<div *ngIf="loadingMessage" class="loading-big"> |
|
22 |
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;"> |
|
23 |
{{ loadingMessage }} |
|
24 |
</div> |
|
25 |
<div class="transparentFilm"></div> |
|
26 |
</div> |
|
27 |
<div *ngIf="repo && chosen_report" class="uk-margin-top"> |
|
19 | 28 |
|
20 |
<!-- LEFT HELP CONTENT --> |
|
21 |
<aside-help-content #leftHelperContent [position]="'left'" |
|
22 |
[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'"> |
|
23 |
</aside-help-content> |
|
29 |
<div class="md-card"> |
|
30 |
<div class="md-card-content large-padding"> |
|
24 | 31 |
|
25 |
<!-- MIDDLE --> |
|
26 |
<div class=" uk-width-expand@m" style="min-height:500px;"> |
|
32 |
<div class="uk-grid uk-grid-divider" data-uk-grid-margin=""> |
|
27 | 33 |
|
28 |
<div *ngIf="errorMessage" class="uk-alert uk-alert-warning">{{errorMessage}}</div> |
|
29 |
<div *ngIf="loadingMessage" class="loading-big"> |
|
30 |
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;"> |
|
31 |
{{ loadingMessage }} |
|
32 |
</div> |
|
33 |
<div class="whiteFilm"></div> |
|
34 |
</div> |
|
35 |
<div *ngIf="repo && chosen_report" class="uk-margin-top"> |
|
34 |
<div class="uk-width-large-1-3 uk-width-medium-1-3 uk-row-first"> |
|
36 | 35 |
|
37 |
<div class="uk-forml uk-width-1-1@s uk-width-2-3@m uk-container uk-container-large"> |
|
38 | 36 |
<h3>Report Request</h3> |
39 |
<div class="uk-grid"> |
|
40 |
<div class=" uk-width-1-3 uk-text-right"> |
|
41 |
Report Name: |
|
42 |
</div> |
|
43 |
<div class="uk-width-2-3"> |
|
44 |
{{ chosen_report }} |
|
45 |
</div> |
|
37 |
|
|
38 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom"> |
|
39 |
<label>Report Name</label> |
|
40 |
<input class="md-input label-fixed" type="text" value="{{ chosen_report }}" disabled> |
|
41 |
<span class="md-input-bar "></span> |
|
46 | 42 |
</div> |
47 |
<div class="uk-grid"> |
|
48 |
<div class=" uk-width-1-3 uk-text-right"> |
|
49 |
Release: |
|
50 |
</div> |
|
51 |
<div class="uk-width-2-3"> |
|
52 |
4 |
|
53 |
</div> |
|
43 |
|
|
44 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom"> |
|
45 |
<label>Release</label> |
|
46 |
<input class="md-input label-fixed" type="text" value="4" disabled> |
|
47 |
<span class="md-input-bar "></span> |
|
54 | 48 |
</div> |
55 |
<div class="uk-grid"> |
|
56 |
<div class=" uk-width-1-3 uk-text-right"> |
|
57 |
Requestor: |
|
58 |
</div> |
|
59 |
<div class="uk-width-2-3"> |
|
60 |
{{ userEmail }} |
|
61 |
</div> |
|
49 |
|
|
50 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom"> |
|
51 |
<label>Requestor</label> |
|
52 |
<input class="md-input label-fixed" type="text" value="{{ userEmail }}" disabled> |
|
53 |
<span class="md-input-bar "></span> |
|
62 | 54 |
</div> |
55 |
|
|
56 |
</div> |
|
57 |
|
|
58 |
<!--<hr>--> |
|
59 |
|
|
60 |
<div class="uk-width-large-1-3 uk-width-medium-1-3"> |
|
63 | 61 |
<h3>Report Filters</h3> |
62 |
|
|
64 | 63 |
<h5>Date range</h5> |
65 |
<p>Valid date formats are yyyy-mm-dd or yyyy-mm. Default range is the last available month. |
|
66 |
</p> |
|
67 |
<div class="uk-grid"> |
|
68 |
<div class=" uk-width-1-3 uk-text-right"> |
|
69 |
Begin Date: |
|
70 |
</div> |
|
71 |
<div class="uk-width-2-3"> |
|
72 |
<input name="BeginDate" placeholder="2016-03" type="text" (blur)="updateBeginDate($event)"> |
|
73 |
</div> |
|
64 |
|
|
65 |
<div class="uk-text-italic"> |
|
66 |
<p>Valid date formats are yyyy-mm-dd or yyyy-mm. Default range is the last available month.</p> |
|
74 | 67 |
</div> |
75 |
<div class="uk-grid"> |
|
76 |
<div class=" uk-width-1-3 uk-text-right"> |
|
77 |
End Date: |
|
68 |
|
|
69 |
<div class=""> |
|
70 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom"> |
|
71 |
<label>Begin Date</label> |
|
72 |
<input class="md-input label-fixed" name="BeginDate" placeholder="2016-03" type="text" (blur)="updateBeginDate($event)"> |
|
73 |
<span class="md-input-bar "></span> |
|
78 | 74 |
</div> |
79 |
<div class="uk-width-2-3"> |
|
80 |
<input name="EndDate" placeholder="2016-06" type="text" (blur)="updateEndDate($event)"> |
|
75 |
<div class="md-input-wrapper md-input-filled"> |
|
76 |
<label>End Date</label> |
|
77 |
<input class="md-input label-fixed" name="EndDate" placeholder="2016-06" type="text" (blur)="updateEndDate($event)"> |
|
78 |
<span class="md-input-bar "></span> |
|
81 | 79 |
</div> |
82 | 80 |
</div> |
81 |
|
|
83 | 82 |
<h5><span *ngIf="chosen_report == 'RR1' || chosen_report == 'JR1'">Optional </span>Filters</h5> |
84 |
<p *ngIf="chosen_report != 'RR1' && chosen_report != 'JR1'"> |
|
85 |
For more specific results, provide an Item Identifier.<br> |
|
86 |
Identifier format: <b>namespace:value</b><br> |
|
87 |
Valid namespace for Item Identifier: <b>openaire</b>, <b>doi</b> or <b>oid</b>(for OAI-PMH). |
|
88 |
</p> |
|
89 |
<p *ngIf="chosen_report =='RR1'"> |
|
90 |
By default results are returned for all repositories.<br> |
|
91 |
To get just the results for the current repository, check the box.</p> |
|
92 |
<div *ngIf="chosen_report != 'JR1'" class="uk-grid"> |
|
93 |
<div class=" uk-width-1-3 uk-text-right"> |
|
94 |
Repository Identifier: |
|
83 |
|
|
84 |
<div class="uk-text-italic"> |
|
85 |
<p *ngIf="chosen_report != 'RR1' && chosen_report != 'JR1'"> |
|
86 |
For more specific results, provide an Item Identifier.<br> |
|
87 |
Identifier format: <b>namespace:value</b><br> |
|
88 |
Valid namespace for Item Identifier: <b>openaire</b>, <b>doi</b> or <b>oid</b>(for OAI-PMH). |
|
89 |
</p> |
|
90 |
<p *ngIf="chosen_report =='RR1'"> |
|
91 |
By default results are returned for all repositories.<br> |
|
92 |
To get just the results for the current repository, check the box.</p> |
|
93 |
</div> |
|
94 |
|
|
95 |
<div *ngIf="chosen_report != 'JR1'"> |
|
96 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom"> |
|
97 |
<label>Repository Identifier</label> |
|
98 |
<input class="md-input label-fixed" type="text" value="{{ shownRepoId }}" disabled> |
|
99 |
<span class="md-input-bar "></span> |
|
95 | 100 |
</div> |
96 |
<div class="uk-width-2-3"> |
|
97 |
{{ shownRepoId }} |
|
101 |
<div *ngIf="chosen_report =='RR1'" class="uk-margin-bottom"> |
|
102 |
<input class="md-input label-fixed" type="checkbox" value="useCurrentRepo" (change)="updateUseCurrentRepo($event)"> |
|
103 |
<label class="inline-label">Select current repository</label> |
|
98 | 104 |
</div> |
99 |
<div *ngIf="chosen_report =='RR1'" class=" uk-width-1-3 uk-text-right"> |
|
100 |
Select current repository |
|
101 |
</div> |
|
102 |
<div *ngIf="chosen_report =='RR1'" class="uk-width-2-3 checkbox"> |
|
103 |
<input type="checkbox" value="useCurrentRepo" |
|
104 |
(change)="updateUseCurrentRepo($event)"> |
|
105 |
</div> |
|
106 | 105 |
</div> |
107 |
<div *ngIf="repo.issn && chosen_report == 'JR1'" class="uk-grid"> |
|
108 |
<div class=" uk-width-1-3 uk-text-right"> |
|
109 |
Journal Identifier: |
|
106 |
|
|
107 |
<div *ngIf="repo.issn && chosen_report == 'JR1'" class=""> |
|
108 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom"> |
|
109 |
<label>Journal Identifier</label> |
|
110 |
<input class="md-input label-fixed" type="text" value="{{ shownRepoId }}" disabled> |
|
111 |
<span class="md-input-bar "></span> |
|
110 | 112 |
</div> |
111 |
<div class="uk-width-2-3"> |
|
112 |
{{ shownRepoId }} |
|
113 |
</div> |
|
114 | 113 |
</div> |
115 |
<div *ngIf="chosen_report != 'JR1' && chosen_report != 'RR1'" class="uk-grid"> |
|
116 |
<div class=" uk-width-1-3 uk-text-right"> |
|
117 |
Item Identifier:
|
|
118 |
</div>
|
|
119 |
<div class="uk-width-2-3">
|
|
120 |
<input name="ItemIdentifier" placeholder="e.g. openaire:od_________::fb90de6f20d79783d05749d8f60417d5" |
|
114 |
|
|
115 |
|
|
116 |
<div *ngIf="chosen_report != 'JR1' && chosen_report != 'RR1'" class="">
|
|
117 |
<div class="md-input-wrapper md-input-filled uk-margin-bottom">
|
|
118 |
<label>Item Identifier</label>
|
|
119 |
<input class="md-input label-fixed" name="ItemIdentifier" placeholder="e.g. openaire:od_________::fb90de6f20d79783d05749d8f60417d5"
|
|
121 | 120 |
type="text" (blur)="updateItemIdentifier($event)"> |
121 |
<span class="md-input-bar "></span> |
|
122 | 122 |
</div> |
123 |
|
|
123 | 124 |
</div> |
124 | 125 |
|
125 | 126 |
<div *ngIf="chosen_report == 'IR1' || chosen_report == 'RR1' || chosen_report == 'JR1'"> |
126 |
<p>Optional filter to only show results for a single item type, e.g. article, book, etc.</p> |
|
127 |
<div class="uk-grid"> |
|
128 |
<div class=" uk-width-1-3 uk-text-right"> |
|
129 |
Item Data Type: |
|
130 |
</div> |
|
131 |
<div class="uk-width-2-3"> |
|
127 |
|
|
128 |
<div class="uk-text-italic uk-margin-top uk-margin-bottom"> |
|
129 |
<p>Optional filter to only show results for a single item type, e.g. article, book, etc.</p> |
|
130 |
</div> |
|
131 |
|
|
132 |
<div class="md-input-wrapper md-input-filled"> |
|
133 |
<label class="">Item Data Type</label> |
|
134 |
<select class="md-input" name="ItemDataType" (change)="updateItemDataType($event)"> |
|
132 | 135 |
<!-- TODO: get the list from api if it becomes available --> |
133 |
<select name="ItemDataType" (change)="updateItemDataType($event)"> |
|
134 |
<option value="">--- Select Item Data Type ---</option> |
|
135 |
<option value="Annotation">Annotation</option> |
|
136 |
<option value="Article">Article</option> |
|
137 |
<option value="Bachelor thesis">Bachelor thesis</option> |
|
138 |
<option value="Book">Book</option> |
|
139 |
<option value="clinical trial">clinical trial</option> |
|
140 |
<option value="Collection">Collection</option> |
|
141 |
<option value="Conference object">Conference object</option> |
|
142 |
<option value="Contribution for newspaper or weekly magazine">Contribution for newspaper or weekly magazine</option> |
|
143 |
<option value="Dataset">Dataset</option> |
|
144 |
<option value="Doctoral thesis">Doctoral thesis</option> |
|
145 |
<option value="Event">Event</option> |
|
146 |
<option value="External research report">External research report</option> |
|
147 |
<option value="Film">Film</option> |
|
148 |
<option value="Image">Image</option> |
|
149 |
<option value="InteractiveResource">InteractiveResource</option> |
|
150 |
<option value="Internal report">Internal report</option> |
|
151 |
<option value="Lecture">Lecture</option> |
|
152 |
<option value="Master thesis">Master thesis</option> |
|
153 |
<option value="Newsletter">Newsletter</option> |
|
154 |
<option value="Other">Other</option> |
|
155 |
<option value="Part of book or chapter of book">Part of book or chapter of book</option> |
|
156 |
<option value="Patent">Patent</option> |
|
157 |
<option value="PhysicalObject">PhysicalObject</option> |
|
158 |
<option value="Preprint">Preprint</option> |
|
159 |
<option value="Report">Report</option> |
|
160 |
<option value="Research">Research</option> |
|
161 |
<option value="Review">Review</option> |
|
162 |
<option value="Software">Software</option> |
|
163 |
<option value="Sound">Sound</option> |
|
164 |
<option value="Unknown">Unknown</option> |
|
165 |
</select> |
|
166 |
</div> |
|
136 |
<option value="">--- Select Item Data Type ---</option> |
|
137 |
<option value="Annotation">Annotation</option> |
|
138 |
<option value="Article">Article</option> |
|
139 |
<option value="Bachelor thesis">Bachelor thesis</option> |
|
140 |
<option value="Book">Book</option> |
|
141 |
<option value="clinical trial">clinical trial</option> |
|
142 |
<option value="Collection">Collection</option> |
|
143 |
<option value="Conference object">Conference object</option> |
|
144 |
<option value="Contribution for newspaper or weekly magazine">Contribution for newspaper or weekly magazine</option> |
|
145 |
<option value="Dataset">Dataset</option> |
|
146 |
<option value="Doctoral thesis">Doctoral thesis</option> |
|
147 |
<option value="Event">Event</option> |
|
148 |
<option value="External research report">External research report</option> |
|
149 |
<option value="Film">Film</option> |
|
150 |
<option value="Image">Image</option> |
|
151 |
<option value="InteractiveResource">InteractiveResource</option> |
|
152 |
<option value="Internal report">Internal report</option> |
|
153 |
<option value="Lecture">Lecture</option> |
|
154 |
<option value="Master thesis">Master thesis</option> |
|
155 |
<option value="Newsletter">Newsletter</option> |
|
156 |
<option value="Other">Other</option> |
|
157 |
<option value="Part of book or chapter of book">Part of book or chapter of book</option> |
|
158 |
<option value="Patent">Patent</option> |
|
159 |
<option value="PhysicalObject">PhysicalObject</option> |
|
160 |
<option value="Preprint">Preprint</option> |
|
161 |
<option value="Report">Report</option> |
|
162 |
<option value="Research">Research</option> |
|
163 |
<option value="Review">Review</option> |
|
164 |
<option value="Software">Software</option> |
|
165 |
<option value="Sound">Sound</option> |
|
166 |
<option value="Unknown">Unknown</option> |
|
167 |
</select> |
|
168 |
<span class="md-input-bar"></span> |
|
167 | 169 |
</div> |
170 |
|
|
168 | 171 |
</div> |
172 |
</div> |
|
173 |
|
|
174 |
<!--<hr>--> |
|
175 |
|
|
176 |
<div class="uk-width-large-1-3 uk-width-medium-1-3"> |
|
177 |
|
|
169 | 178 |
<h3>Report Attributes</h3> |
170 |
<p>Valid Granularity values: Monthly or Totals</p> |
|
171 |
<div class="uk-grid"> |
|
172 |
<div class=" uk-width-1-3 uk-text-right"> |
|
173 |
Granularity: |
|
174 |
</div> |
|
175 |
<div class="uk-width-2-3"> |
|
176 |
<select name="Granularity" (change)="updateGranularity($event)"> |
|
177 |
<option value="Monthly">Monthly</option> |
|
178 |
<option value="Totals">Totals</option> |
|
179 |
</select> |
|
180 |
</div> |
|
179 |
|
|
180 |
<div class="uk-text-italic"> |
|
181 |
<p>Valid Granularity values: Monthly or Totals</p> |
|
181 | 182 |
</div> |
182 |
<!--<p>The Pretty attribute is just for humans playing with the API and looking at results in a browser.</p> |
|
183 |
<p><input name="Pretty" value="Pretty" checked="checked" type="checkbox" (change)="updatePretty($event)">Pretty print json(p) for humans</p>--> |
|
184 |
<a class="uk-button uk-button-primary uk-margin-top" (click)="goToReport()">Get Report</a> |
|
183 |
|
|
184 |
<div class="md-input-wrapper md-input-filled"> |
|
185 |
<label class="">Granularity</label> |
|
186 |
<select class="md-input" name="Granularity" (change)="updateGranularity($event)"> |
|
187 |
<option value="Monthly">Monthly</option> |
|
188 |
<option value="Totals">Totals</option> |
|
189 |
</select> |
|
190 |
<span class="md-input-bar"></span> |
|
191 |
</div> |
|
192 |
|
|
185 | 193 |
</div> |
186 | 194 |
|
187 | 195 |
</div> |
188 | 196 |
|
197 |
<a class="uk-button uk-button-primary uk-margin-top" (click)="goToReport()">Get Report</a> |
|
198 |
|
|
189 | 199 |
</div> |
200 |
</div> |
|
190 | 201 |
|
191 |
<!-- RIGHT HELP CONTENT --> |
|
192 |
<aside-help-content #rightHelperContent [position]="'right'" |
|
193 |
[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'"> |
|
194 |
</aside-help-content> |
|
195 | 202 |
|
196 |
</div> |
|
197 | 203 |
</div> |
198 | 204 |
|
205 |
</div> |
|
199 | 206 |
|
200 |
<!-- BOTTOM HELP CONTENT -->
|
|
201 |
<help-content #bottomHelperContent [position]="'bottom'"
|
|
202 |
[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
|
203 |
</help-content>
|
|
207 |
<!-- RIGHT HELP CONTENT -->
|
|
208 |
<aside-help-content #rightHelperContent [position]="'right'"
|
|
209 |
[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
|
210 |
</aside-help-content>
|
|
204 | 211 |
|
212 |
</div> |
|
205 | 213 |
|
206 |
</div> |
|
207 |
</div> |
|
214 |
<!-- BOTTOM HELP CONTENT --> |
|
215 |
<help-content #bottomHelperContent [position]="'bottom'" |
|
216 |
[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'"> |
|
217 |
</help-content> |
|
218 |
|
|
208 | 219 |
</div> |
209 | 220 |
</div> |
210 |
|
Also available in: Unified diff
Finished the first version of the usage statistics pages