1
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
2
|
<div class="uk-width-1-1@m uk-first-column">
|
3
|
|
4
|
<h1 class="uk-h2">Registrations Admin Page</h1>
|
5
|
|
6
|
<!-- TOP HELP CONTENT -->
|
7
|
<help-content #topHelperContent [position]="'top'"
|
8
|
[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
9
|
</help-content>
|
10
|
|
11
|
<div class="uk-container uk-container-expand uk-margin-medium-top uk-margin-medium-bottom">
|
12
|
<div class="uk-grid">
|
13
|
|
14
|
<!-- LEFT HELP CONTENT -->
|
15
|
<aside-help-content #leftHelperContent [position]="'left'"
|
16
|
[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
17
|
</aside-help-content>
|
18
|
|
19
|
<!-- MIDDLE -->
|
20
|
<div class="uk-width-expand@m">
|
21
|
|
22
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
|
23
|
<div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
|
24
|
<div *ngIf="loadingMessage" class="loading-big">
|
25
|
<div class="loader-big"
|
26
|
style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
|
27
|
{{ loadingMessage }}
|
28
|
</div>
|
29
|
<div class="whiteFilm"></div>
|
30
|
</div>
|
31
|
|
32
|
|
33
|
|
34
|
|
35
|
<div class="uk-grid">
|
36
|
<div class="uk-width-1-1@m uk-padding" style="background-color: #fff; text-align: center">
|
37
|
<form [formGroup]="dataForm" class="uk-search uk-search-default uk-width-1-1@m">
|
38
|
<input class="uk-width-1-2 uk-search-input" type="search" formControlName="officialname" placeholder="Search (official name) ..." style="background-color: #fff">
|
39
|
<button class="uk-button" (click)="handleChange()">Search</button>
|
40
|
</form>
|
41
|
</div>
|
42
|
</div>
|
43
|
|
44
|
<div class="uk-grid">
|
45
|
<div class="uk-width-1-4@m">
|
46
|
<form [formGroup]="dataForm" class="uk-form-stacked">
|
47
|
|
48
|
<div class="uk-form-label uk-text-large">Filtered By</div>
|
49
|
|
50
|
<div class="uk-margin">
|
51
|
<div class="uk-form-label uk-text-large">Datasource Type</div>
|
52
|
<div class="uk-form-controls">
|
53
|
<label><input class="uk-radio" type="radio" value="" (change)="handleChange()" formControlName="typology"> Any</label><br>
|
54
|
<!-- <label><input class="uk-radio" type="radio" value="Literature" (change)="handleChange()" formControlName="typology"> Literature</label><br>-->
|
55
|
<label><input class="uk-radio" type="radio" value="Aggregator" (change)="handleChange()" formControlName="typology"> Aggregator</label><br>
|
56
|
<label><input class="uk-radio" type="radio" value="Journal" (change)="handleChange()" formControlName="typology"> Journal</label><br>
|
57
|
<label><input class="uk-radio" type="radio" value="datarepository" (change)="handleChange()" formControlName="typology"> Data Repository</label><br>
|
58
|
<label><input class="uk-radio" type="radio" value="pubsrepository" (change)="handleChange()" formControlName="typology"> Public Repository</label><br>
|
59
|
<label><input class="uk-radio" type="radio" value="Institutional" (change)="handleChange()" formControlName="typology"> Institutional</label><br>
|
60
|
<label><input class="uk-radio" type="radio" value="Thematic" (change)="handleChange()" formControlName="typology"> Thematic</label><br>
|
61
|
<label><input class="uk-radio" type="radio" value="Products" (change)="handleChange()" formControlName="typology"> Products</label><br>
|
62
|
<label><input class="uk-radio" type="radio" value="Unknown" (change)="handleChange()" formControlName="typology"> Unknown</label>
|
63
|
</div>
|
64
|
</div>
|
65
|
|
66
|
<div class="uk-margin">
|
67
|
<div class="uk-form-label uk-text-large">Countries</div>
|
68
|
<div class="uk-form-controls">
|
69
|
<ng-container *ngIf="countries && countries.length>0">
|
70
|
<read-more [maxHeight]="238">
|
71
|
<div><input class="uk-radio" type="radio" value="" (change)="handleChange()" formControlName="country"> Any</div>
|
72
|
<ng-container *ngFor="let country of countries">
|
73
|
<div class="">
|
74
|
<input class="uk-radio" type="radio" value="{{country.code}}"
|
75
|
(change)="handleChange()" formControlName="country"> {{country.name}}
|
76
|
</div>
|
77
|
</ng-container>
|
78
|
</read-more>
|
79
|
</ng-container>
|
80
|
</div>
|
81
|
</div>
|
82
|
|
83
|
</form>
|
84
|
</div>
|
85
|
<div class="uk-width-expand@m">
|
86
|
<div class="uk-grid">
|
87
|
<div class="uk-width-1-1@m uk-margin-medium">
|
88
|
<form [formGroup]="dataForm" class="uk-form-horizontal uk-grid">
|
89
|
|
90
|
<div class="uk-width-2-5@m">
|
91
|
<div class="uk-margin">
|
92
|
<label class="uk-form-label uk-text-right" for="pageSize">Items per page: </label>
|
93
|
<div class="uk-form-controls">
|
94
|
<select class="uk-select" id="pageSize" (change)="handleChangeAndResetPage()" formControlName="pageSize">
|
95
|
<option value="10">10</option>
|
96
|
<option value="25" selected>25</option>
|
97
|
<option value="50">50</option>
|
98
|
<option value="100">100</option>
|
99
|
</select>
|
100
|
</div>
|
101
|
</div>
|
102
|
</div>
|
103
|
|
104
|
<div class="uk-width-expand@m ">
|
105
|
|
106
|
<div class="uk-float-right">
|
107
|
<label class="uk-form-label uk-text-right" for="orderBy">Order by: </label>
|
108
|
<div class="uk-form-controls">
|
109
|
<select class="uk-select" id="orderBy" (change)="handleChangeAndResetPage()" formControlName="order">
|
110
|
<option value="DESCENDING" selected>Descending</option>
|
111
|
<option value="ASCENDING">Ascending</option>
|
112
|
</select>
|
113
|
</div>
|
114
|
</div>
|
115
|
|
116
|
<div class="uk-float-right">
|
117
|
<label class="uk-form-label uk-text-right" for="sortBy">Sort by: </label>
|
118
|
<div class="uk-form-controls">
|
119
|
<select class="uk-select" id="sortBy" (change)="handleChangeAndResetPage()" formControlName="requestSortBy">
|
120
|
<option value="registrationdate" selected>Date</option>
|
121
|
<option value="officialname">Name</option>
|
122
|
</select>
|
123
|
</div>
|
124
|
</div>
|
125
|
|
126
|
</div>
|
127
|
|
128
|
|
129
|
</form>
|
130
|
</div>
|
131
|
|
132
|
<div class="uk-width-1-1@m">
|
133
|
|
134
|
<table class="uk-table uk-table-striped">
|
135
|
<thead>
|
136
|
<tr>
|
137
|
<th>Repository</th>
|
138
|
<th>Date</th>
|
139
|
<th>Organization</th>
|
140
|
<th>Type</th>
|
141
|
</tr>
|
142
|
</thead>
|
143
|
<tbody>
|
144
|
<tr *ngFor="let res of repositorySnippet">
|
145
|
<td class="uk-width-1-6@m">{{res.officialname}} <br> ({{res.id}}) <br> {{res.registeredby}}</td>
|
146
|
<td >{{res.registrationdate}}</td>
|
147
|
<td> <div *ngFor="let organization of res.organizations">{{organization.legalname + ' (' + getCountryName(organization.country)}})<br></div></td>
|
148
|
<td>{{res.typology.split('::')[0]}}</td>
|
149
|
</tr>
|
150
|
</tbody>
|
151
|
</table>
|
152
|
|
153
|
<ul class="uk-pagination uk-flex-center" uk-margin>
|
154
|
<li><a (click)="previousPage()"><span uk-pagination-previous></span></a></li>
|
155
|
<li class="uk-active"><span>{{+dataForm.get('page').value + 1}}</span></li>
|
156
|
<li><a (click)="nextPage()"><span uk-pagination-next></span></a></li>
|
157
|
</ul>
|
158
|
|
159
|
</div>
|
160
|
|
161
|
</div>
|
162
|
</div>
|
163
|
</div>
|
164
|
|
165
|
</div>
|
166
|
</div>
|
167
|
</div>
|
168
|
</div>
|
169
|
</div>
|