Project

General

Profile

1
<ng-template #filters_column>
2
  <div *ngIf="filters.length > 0" class="  search-filters  ">
3
    <div   *ngIf="countFilters()>0"  class="  uk-margin-medium-bottom">
4
      <div  class="uk-grid uk-flex uk-flex-bottom">
5
        <h5 class="uk-text-bold">Filters</h5>
6
        <a *ngIf="countFilters()>1"  (click)="clearFilters()"
7
           [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
8
          Clear All
9
        </a>
10
      </div>
11
      <div class="uk-grid uk-grid-small uk-text-small" uk-grid>
12
        <ng-container *ngFor="let filter of filters " >
13
          <ng-container *ngIf = "filter.countSelectedValues > 0">
14
        <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "
15
              [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >
16
                        <!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
17
                        <span class="selectedFilterLabel ">
18
                          <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">
19
                            <span class=" clickable" aria-hidden="true">
20
                              <span class="uk-icon">
21
                                <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>
22
                              </span>
23
                            </span>
24
                            <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
25
                          </a>
26
                        </span>
27
                      </span>
28
          </ng-container>
29
        </ng-container>
30
      </div>
31
    </div>
32

    
33
    <search-filter  *ngFor="let filter of filters " [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (change)="filterChanged($event)" (toggleModal)="toggleModal($event)"></search-filter>
34
  </div>
35
</ng-template>
36
<ng-template #paging>
37
  <div *ngIf="searchUtils.totalResults > 0"  >
38

    
39
    <div class= "paging-hr searchPaging uk-margin-small-bottom"
40
         *ngIf="(results && searchUtils.totalResults > 0) || (searchUtils.status == errorCodes.LOADING)">
41
      <div class="uk-panel uk-margin-small-top uk-grid  uk-flex uk-flex-middle">
42
        <div class="uk-width-1-1@s uk-width-1-2@m  uk-text-uppercase"
43
             *ngIf="results && searchUtils.totalResults > 0">
44
          {{searchUtils.totalResults|number}}
45
          <span class="uk-text-muted uk-text-uppercase"> {{type}}, page </span>
46
          {{searchUtils.page | number}}
47
          <span class="uk-text-muted uk-text-uppercase"> of </span>
48
          {{(totalPages()|number)}}
49
        </div>
50
        <div class="float-children-right-at-medium margin-small-top-at-small uk-width-expand" *ngIf=" searchUtils.status != errorCodes.LOADING">
51
          <paging-no-load [currentPage]="searchUtils.page" [totalResults]="searchUtils.totalResults" [size]="searchUtils.size" (pageChange)="goTo($event.value)"></paging-no-load>
52
        </div>
53
      </div>
54
    </div>
55
  </div>
56
</ng-template>
57

    
58
<div class="image-front-topbar  uk-section-default uk-position-relative" uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}" tm-header-transparent="light">
59
  <div style=" min-height: 350px;"  [class]="' uk-background-norepeat uk-background-cover uk-background-bottom-center uk-section uk-padding-remove-bottom uk-flex uk-flex-middle uk-background-fixed '+searchFormClass">
60
    <div class="uk-position-cover" style="/*background-color: rgba(255, 255, 255, 0.37);*/"></div>
61
    <div class="uk-container">
62
        <div class="uk-position-relative">
63

    
64

    
65
           <div   class="uk-container ">
66
             <div   class="uk-width-1-1">
67
<!--               <search-form [isDisabled]="disableForms" [(keyword)]="searchUtils.keyword" (keywordChange)="keywordChanged($event)"  [placeholderText]="formPlaceholderText"></search-form>-->
68
               <form class=" uk-margin uk-margin-top ">
69
                 <div class="uk-grid uk-margin-small-left">
70
                   <div *ngIf="enableEntitySelection" class="uk-margin-small-top uk-padding-remove-left">
71
                     <entities-selection [simpleView]="true" [currentEntity]="entityType"
72
                                         [properties]="properties" [onChangeNavigate]="true" [customFilter]="customFilter"
73

    
74
                     ></entities-selection>
75
                   </div>
76
                   <div class=" uk-padding-remove-left uk-margin-small-top" >
77
                     <div class="uk-inline">
78
                       <a *ngIf="searchUtils.keyword.length > 0" class="uk-form-icon uk-form-icon-flip"
79
                          (click)="searchUtils.keyword = '';  goTo(1);"
80
                          uk-icon="icon: close"></a>
81
                       <input type="text" class="uk-input   uk-width-xlarge@l uk-width-large@m uk-width-medium"
82
                              placeholder="Search in OpenAIRE for scholarly works"
83
                              [(ngModel)]="searchUtils.keyword"
84
                              name="keyword">
85
                     </div>
86

    
87
                   </div>
88

    
89
                   <div class="uk-padding-remove-left uk-margin-small-top">
90

    
91
                     <button  (click)="goTo(1)" type="submit"
92
                              class="uk-button portal-button uk-text-bold  uk-padding uk-padding-remove-vertical uk-margin-small-left">
93
                       Search
94
                     </button>
95

    
96
                   </div>
97
                 </div>
98
               </form>
99
             </div>
100

    
101

    
102
           </div>
103
        </div>
104
     </div>
105
  </div>
106
</div>
107
<schema2jsonld   *ngIf="url"  [URL]="url" type="search" [name]=pageTitle [searchAction]=false></schema2jsonld>
108

    
109
<div id="tm-main" class=" uk-section uk-padding-remove-top tm-middle"   >
110
  <div uk-grid>
111
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
112

    
113
      <div  class="uk-container  uk-container-large">
114
        <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
115
        <div  class="uk-width-2-3@m  uk-width-2-3@l  uk-width-1-1@s">
116
          <div *ngIf="filters.length > 0" class="uk-offcanvas-content uk-hidden@m">
117
            <a href="#offcanvas-usage" uk-toggle>
118
                <span class="uk-icon uk-margin-small-right uk-margin-small-left">
119
                  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="settings">
120
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
121
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
122
                    <circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
123
                    <rect x="1" y="3" width="3" height="1"></rect>
124
                    <rect x="10" y="3" width="8" height="1"></rect>
125
                    <rect x="1" y="9" width="8" height="1"></rect>
126
                    <rect x="15" y="9" width="3" height="1"></rect>
127
                    <rect x="1" y="15" width="3" height="1"></rect>
128
                    <rect x="10" y="15" width="8" height="1"></rect>
129
                  </svg>
130
                </span>
131
              <span>Filters <span *ngIf="countFilters()>1">({{(countFilters())}})</span></span>
132

    
133
            </a>
134
            <div id="offcanvas-usage" uk-offcanvas  overlay style="z-index:10000;">
135
              <div class="uk-offcanvas-bar offcanvas-white">
136
                <button class="uk-offcanvas-close" type="button" uk-close></button>
137
                <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
138
              </div>
139
            </div>
140
          </div>
141
        </div>
142

    
143
        <div  class="uk-grid uk-width-1-1 uk-margin-top">
144
          <div *ngIf="filters.length > 0" class="uk-width-1-4@m search-filters uk-visible@m ">
145
            <ng-container *ngTemplateOutlet="filters_column; context: {}" class=""></ng-container>
146
          </div>
147

    
148
          <div class="uk-width-expand@m uk-width-1-1@s uk-first-column custom-dataTable-content" >
149
            <div *ngIf="openaireLink"> <a class="    uk-button uk-button-text"  [href]=openaireLink target="_blank"
150
            >Results in OpenAIRE</a></div>
151
            <div *ngIf="searchUtils.totalResults > 0" class="uk-align-center uk-margin-remove-bottom ">
152
              <div class="uk-grid">
153
                <div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
154
                  <search-results-per-page class="uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>
155
                </div>
156
                <div class="uk-flex uk-flex-middle uk-width-auto@m uk-margin-small-bottom">
157
                    <span *ngIf="searchViewLink" class="uk-width-expand">
158
                        <a uk-tooltip="title: List view" routerLinkActive="router-link-active" [class]="((disableForms
159
                        && !enableSearchView)?'uk-disabled uk-link-muted':'') +'uk-link-text'"
160
                           [routerLink]=searchViewLink >
161
                          <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="table" ratio="1"><rect x="1" y="3" width="18" height="1"></rect><rect x="1" y="7" width="18" height="1"></rect><rect x="1" y="11" width="18" height="1"></rect><rect x="1" y="15" width="18" height="1"></rect></svg></span>
162
                          List view
163
                        </a>
164
                    </span>
165
                </div>
166
              </div>
167
              <ng-container *ngTemplateOutlet="paging; context: {}"></ng-container>
168
            </div>
169

    
170
            <!-- <div *ngIf="searchViewLink" class="uk-width-1-1@s uk-hidden@m">
171
              <p>
172
                <span class="uk-margin-small-right uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect x="2" y="2" width="3" height="3"></rect><rect x="8" y="2" width="3" height="3"></rect><rect x="14" y="2" width="3" height="3"></rect><rect x="2" y="8" width="3" height="3"></rect><rect x="8" y="8" width="3" height="3"></rect><rect x="14" y="8" width="3" height="3"></rect><rect x="2" y="14" width="3" height="3"></rect><rect x="8" y="14" width="3" height="3"></rect><rect x="14" y="14" width="3" height="3"></rect></svg></span>
173

    
174
                <a routerLinkActive="router-link-active" [class]="(disableForms && !enableSearchView)?'uk-disabled uk-link-muted':''" [routerLink]=searchViewLink >
175
                  <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="table" ratio="1"><rect x="1" y="3" width="18" height="1"></rect><rect x="1" y="7" width="18" height="1"></rect><rect x="1" y="11" width="18" height="1"></rect><rect x="1" y="15" width="18" height="1"></rect></svg></span>
176
                </a>
177
              </p>
178
            </div> -->
179

    
180
            <div *ngIf="searchUtils.totalResults <= 0" class="errors-in-searchTableView">
181
              <errorMessages [status]="[searchUtils.status]" [type]="'results'"></errorMessages>
182
            </div>
183

    
184
            <div *ngIf="searchUtils.status == errorCodes.LOADING || searchUtils.status == errorCodes.DONE" class="uk-overflow-auto">
185
              <!--  #mf="mfDataTable" [mfRowsOnPage]="rowsOnPage"
186
                      [mfData]="results | contentProvidersDatatable : [searchUtils, filters, triggerPipe, cd]"
187

    
188
                    -->
189
              <table datatable class="uk-table uk-table-striped divider-table" [dtOptions]="dtOptions" id="dpTable" [dtTrigger]="dtTrigger" dtInstance="dtInstanceCallback">
190
                <thead >
191
                  <tr>
192
                    <th *ngFor="let column of columnNames" class="uk-text-center">{{column}}</th>
193
                  </tr>
194
                </thead>
195
                <tbody>
196
                  <tr class="uk-table-middle" *ngFor="let result of results">
197
                    <td *ngIf="result.hasOwnProperty('title')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
198
                      <a [queryParams]="{datasourceId: result.id}" routerLinkActive="router-link-active" routerLink="/search/dataprovider">
199
                        <span *ngIf="result.title.name"
200
                              [innerHTML]="result.title.name">
201
                        </span>
202
                        <span *ngIf="!result.title.name">
203
                          [no title available]
204
                        </span>
205
                      </a>
206
                    </td>
207
                    <td *ngIf="result.hasOwnProperty('type')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
208
                      <span *ngIf="result.type">{{result.type}}</span>
209
                      <span *ngIf="!result.type">-</span>
210
                    </td>
211
                    <td *ngIf="result.hasOwnProperty('countries')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
212
                      <span *ngFor="let country of result['countries'].slice(0,5) let i = index">{{country}}{{(i < ( result['countries'].slice(0,5).length-1))?", ":""}}{{(i ==  result['countries'].slice(0,5).length-1 &&  result['countries'].length > 5)?"...":""}}</span>
213
                      <span *ngIf="result.countries.length == 0">-</span>
214
                    </td>
215
                    <td *ngIf="result.hasOwnProperty('organizations')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
216
                      <span *ngFor="let org of result['organizations'].slice(0,5) let i = index">
217
                        <a *ngIf="org.id" [queryParams]="{organizationId: org.id}" routerLinkActive="router-link-active" routerLink="/search/organization">{{org.name}}</a><span *ngIf="!org.id">{{org.name}}</span>{{(i < ( result['organizations'].slice(0,5).length-1))?", ":""}}{{(i ==  result['organizations'].slice(0,5).length-1 &&  result['organizations'].length > 5)?"...":""}}
218
                      </span>
219
                      <span *ngIf="result.organizations.length == 0">-</span>
220
                    </td>
221
                    <td *ngIf="result.hasOwnProperty('compatibility')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
222
                      <span *ngIf="result.compatibility">{{result.compatibility}}</span>
223
                      <span *ngIf="!result.compatibility">-</span>
224
                    </td>
225

    
226
                    <!--Community Projects-->
227
                    <td *ngIf="result.hasOwnProperty('acronym') && result.hasOwnProperty('name')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
228
                      <a [queryParams]="(result.openaireId) ? {projectId: result.openaireId} : {grantId: encode(result.grantId), funder: encode(result.funder)}"
229
                          routerLinkActive="router-link-active" routerLink="/search/project">
230
                        <span *ngIf="result.name">{{result.name}}</span>
231
                        <span *ngIf="result.name && result.acronym">(</span
232
                        ><span *ngIf="result.acronym">{{result.acronym}}</span
233
                        ><span *ngIf="result.name && result.acronym">)</span>
234
                        <span *ngIf="!result.name && !result.acronym">[no title available]</span>
235
                      </a>
236
                    </td>
237
                    <td *ngIf="result.hasOwnProperty('grantId')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
238
                      <span *ngIf="result.grantId">{{result.grantId}}</span>
239
                      <span *ngIf="!result.grantId">-</span>
240
                    </td>
241
                    <td *ngIf="result.hasOwnProperty('funder')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
242
                      <span *ngIf="result.funder">{{result.funder}}</span>
243
                      <span *ngIf="!result.funder">-</span>
244
                    </td>
245

    
246
                    <!--Community Content Providers-->
247
                    <td *ngIf="!result.hasOwnProperty('acronym') && result.hasOwnProperty('name')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
248
                      <a [queryParams]="{datasourceId: result.openaireId}" routerLinkActive="router-link-active" routerLink="/search/dataprovider">
249
                        <span *ngIf="result.name">{{result.name}}</span>
250
                        <span *ngIf="!result.name">[no name available]</span>
251
                      </a>
252
                    </td>
253
                    <td *ngIf="result.hasOwnProperty('officialname')" [class]="'uk-text-center uk-width-1-'+columnNames.length">
254
                      <span *ngIf="result.officialname">{{result.officialname}}</span>
255
                      <span *ngIf="!result.officialname">-</span>
256
                    </td>
257
                  </tr>
258
                </tbody>
259
                <!-- <thead *ngIf="searchUtils.totalResults > 0">
260
                  <tr><td colspan="5" class="uk-padding-remove-horizontal">
261
                    <span class="uk-h6">
262
                      {{searchUtils.totalResults}} content providers, page {{searchUtils.page}} of {{(totalPages())}}
263
                    </span>
264
                    <paging-no-load class="uk-float-right" [currentPage]="searchUtils.page" [totalResults]="searchUtils.totalResults" [size]="rowsOnPage" (pageChange)="goTo($event.value, false)"></paging-no-load>
265
                  </td></tr>
266
                </thead> -->
267
              </table>
268
            </div>
269

    
270
            <div *ngIf="searchUtils.totalResults > 0" class="uk-align-center uk-margin-remove-bottom">
271
              <ng-container *ngTemplateOutlet="paging; context: {}"></ng-container>
272
            </div>
273
            <a *ngIf="properties.showLastIndexInformationLink" class="last_index_info uk-button-text"
274
                [href]="properties.lastIndexInformationLink" target="_blank">
275
                Last index information
276
            </a>
277
          </div>
278
        </div>
279
      </div>
280
      <modal-search-filter [filter]="currentFilter" [showResultCount]=showResultCount (modalChange)="filterChanged($event)"></modal-search-filter>
281
    </div>
282
  </div>
283
</div>
(40-40/55)