Project

General

Profile

1
<!--<div *ngIf="searchFormClass == 'communitiesSearchForm'" class="image-front-topbar  uk-section-default" 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">-->
2
<!--  <div [class]="usedBy == 'deposit' ? 'uk-margin-large-bottom ' : 'searchFormMinHeight uk-padding-remove-bottom' + ' uk-background-norepeat uk-background-bottom-center uk-section uk-flex uk-flex-middle uk-background-fixed '+searchFormClass">-->
3
<!--    <div [class]="'uk-container uk-position-relative uk-margin-large-top' + (usedBy == 'deposit' ? ' uk-container-large' : '')">-->
4
<!--       <div   class="uk-width-1-1">-->
5
<!--         &lt;!&ndash;link to advanced search &ndash;&gt;-->
6
<!--         <a *ngIf = "advancedSearchLink && advancedSearchLink.length > 0" routerLinkActive="router-link-active" [class]="((disableForms)?'uk-float-right   uk-disabled uk-link-muted uk-light ':'uk-float-right  uk-light') +' portal-color uk-margin-small-bottom'" [routerLink]=advancedSearchLink [queryParams]=advancedSearchParameters >-->
7
<!--           <span class=" ">Advanced search</span>-->
8
<!--         </a>-->
9
<!--         <search-form [isDisabled]="disableForms" [(keyword)]="searchUtils.keyword" (keywordChange)="keywordChanged($event)" [placeholderText]="formPlaceholderText"></search-form>-->
10

    
11
<!--       </div>-->
12
<!--       <div *ngIf="entityType === 'community'" class="uk-position-center-right-out">-->
13
<!--         <img src="../../../../assets/banner/search.png" class="uk-align-center" width="141" height="171">-->
14
<!--       </div>-->
15
<!--     </div>-->
16
<!--  </div>-->
17
<!--</div>-->
18

    
19

    
20
<div [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
21
' image-front-topbar uk-section-default ' : (' uk-section uk-padding-remove-bottom  uk-padding-remove-top ' + (usedBy
22
== 'deposit' ? ' uk-padding-remove-top ' : ' '))"
23
     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">
24
  <div [class]="' uk-background-norepeat uk-background-bottom-center uk-section uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
25
          + (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ? ' searchFormMinHeight uk-padding-remove-bottom ' : ' uk-margin-medium-bottom uk-section-small ')
26
          + (usedBy == 'deposit' ? ' uk-padding-remove uk-margin-large-bottom uk-margin-large-top ' : '')">
27
    <div [class]="' uk-container uk-position-relative '
28
          + (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ? ' uk-margin-large-top ' : '')
29
          + (usedBy == 'deposit' ? ' uk-container-large' : '')">
30
      <div>
31
        <a *ngIf = "advancedSearchLink && advancedSearchLink.length > 0" routerLinkActive="router-link-active"
32
           [class]="((disableForms)?'uk-float-right   uk-disabled uk-link-muted  ':'uk-float-right  ')
33
           +' uk-margin-small-bottom'" [routerLink]=advancedSearchLink [queryParams]=advancedSearchParameters >
34
          <span class=" ">Advanced search</span>
35
        </a>
36
        <search-form [isDisabled]="disableForms" [(keyword)]="searchUtils.keyword" (keywordChange)="keywordChanged($event)" [placeholderText]="formPlaceholderText"></search-form>
37
      </div>
38
      <div *ngIf="entityType === 'community' ||entityType === 'funder' " class="uk-position-center-right-out">
39
        <img src="assets/common-assets/common/search.png" class="uk-align-center" width="141" height="171">
40
      </div>
41
    </div>
42
  </div>
43
</div>
44

    
45
<schema2jsonld     [URL]="properties.baseLink+baseUrl" type="search" [name]=pageTitle></schema2jsonld>
46

    
47
<div id="tm-main" class=" uk-section  uk-padding-remove-top  tm-middle">
48
  <div *ngIf="breadcrumbs" class="uk-container uk-margin-small-top">
49
    <breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
50
  </div>
51
  <div uk-grid >
52
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
53
      <div class="">
54
        <div  [class]="'uk-container' + (usedBy == 'deposit' ? ' uk-container-large' : '')">
55
          <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
56
          <div  [class]="(showRefine)? 'uk-width-4-5@m  uk-width-4-5@l  uk-width-1-1@s' :'uk-width-1-1'">
57
            <div  *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m">
58

    
59
              <a href="#offcanvas-usage" uk-toggle><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect><rect x="6" y="14" width="12" height="1"></rect><rect x="2" y="4" width="2" height="1"></rect><rect x="2" y="9" width="2" height="1"></rect><rect x="2" y="14" width="2" height="1"></rect></svg></a>
60

    
61
              <div id="offcanvas-usage" uk-offcanvas>
62
                <div class="uk-offcanvas-bar">
63
                  <button class="uk-offcanvas-close" type="button" uk-close></button>
64
                  <div   class="uk-width-1-1   uk-margin-small-bottom  uk-margin-top">
65

    
66
                    <span *ngIf="tableViewLink || mapUrl" class="uk-width-expand">
67
                      <span *ngIf="tableViewLink">
68
                        <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >
69
                          <span class="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>
70
                        </a>
71
                        <span uk-tooltip="title: List view" 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>
72
                      </span>
73
                      <search-dataprovider-map *ngIf= "!showUnknownFilters" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [mapUrl]="mapUrl" [mapTooltipType]="mapTooltipType"></search-dataprovider-map>
74
                    </span>
75
                    <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=
76
                    'community' && entityType != 'funder') && usedBy == 'search'"
77
                                     class="uk-width-1-2" [isDisabled]="loadPaging"  [type]="csvPath"
78
                                     [csvParams]="csvParams"   [totalResults]="searchUtils.totalResults">
79
                    </search-download>
80

    
81
                    <div *ngIf="countFilters()>0" class="uk-margin-small-bottom">
82
                      <div class="uk-grid uk-margin-bottom uk-margin-top">
83
                        <span class="uk-text-bold uk-text-large">Filters</span>
84
                        <a  *ngIf="countFilters()>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
85
                          Clear All
86
                        </a>
87
                      </div>
88

    
89
                      <span *ngIf = "searchUtils.keyword.length > 0"><span class="uk-text-bold">Keywords:</span>
90
                      <a (click) = "clearKeywords() " title="Remove keywords" [class]="((disableForms)?'  uk-disabled':'  ')+' uk-margin-small-right portal-color '"><span class=" clickable " aria-hidden="true"><span class="uk-icon ">
91
                        <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>
92
                        </span></span></a>
93
                      <span [innerHtml]="searchUtils.keyword"></span>
94

    
95
                      </span>
96
                      <div *ngFor="let filter of filters " >
97
                        <span *ngIf = "filter.countSelectedValues > 0"> <span class="uk-text-bold">{{filter.title}}:</span>
98
                          <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; " >
99
                            <a [title]="'Remove '+value.name"(click) = "removeFilter(value, filter) " [class]="((disableForms)?'  uk-disabled':'  ')+'  portal-color '"><span class=" clickable" aria-hidden="true"><span class="uk-icon">
100
                              <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>
101
                              </span></span></a>
102
                            <span [innerHtml]="(value.name.length > 25)?value.name.substring(0,25)+'...':value.name" [title]="value.name"></span><span *ngIf="!end" class="   ">, </span>
103
                          </span>
104
                        </span>
105
                      </div>
106

    
107

    
108
                    </div>
109

    
110
                    <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">
111
                      <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>
112
                    </div>
113

    
114
                  </div>
115
                  <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">
116
                    <span class="uk-text-meta">No filters available</span>
117
                  </div>
118
                  <div class="uk-text-large">Filter By:</div>
119
                  <search-filter  *ngFor="let filter of filters "  [addShowMore]=false [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>
120
                </div>
121
              </div>
122

    
123
            </div>
124
          </div>
125

    
126
          <div  class="uk-grid uk-width-1-1">
127
            <div *ngIf="showRefine" class="uk-margin-top uk-width-1-4@m search-filters uk-visible@m">
128
              <!-- top: #container-1; bottom: #true; -->
129
              <!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
130
                <span *ngIf="tableViewLink || mapUrl" class="uk-width-expand">
131
                  <span *ngIf="tableViewLink">
132
                    <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >
133
                      <span class="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>
134
                    </a>
135
                    <span uk-tooltip="title: List view" 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>
136
                  </span>
137
                  <search-dataprovider-map *ngIf= "!showUnknownFilters"   [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [mapUrl]="mapUrl" [mapTooltipType]="mapTooltipType"></search-dataprovider-map>
138
                </span>
139
                <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=
140
                'community' && entityType != 'funder') && usedBy == 'search'"
141
                                 class="uk-width-1-2" [isDisabled]="loadPaging"
142
                                 [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
143
                </search-download>
144

    
145
               <div   class="uk-width-1-1   uk-margin-small-bottom ">
146
                 <div class="uk-grid uk-margin-bottom uk-margin-top">
147
                   <span class="uk-text-bold uk-text-large">Filters</span>
148
                   <a  *ngIf="countFilters()>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
149
                     Clear All
150
                   </a>
151
                 </div>
152

    
153
                 <div *ngIf="countFilters()>0" class="uk-margin-small-bottom">
154

    
155
                   <span *ngIf = "searchUtils.keyword.length > 0"><span class="uk-text-bold">Keywords:</span>
156
                   <a (click) = "clearKeywords() " title="Remove keywords" [class]="((disableForms)?'  uk-disabled':'  ')+'  portal-color '"><span class=" clickable " aria-hidden="true"><span class="uk-icon ">
157
                     <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>
158
                     </span></span></a>
159
                   <span [innerHtml]="searchUtils.keyword"></span>
160

    
161
                   </span>
162
                   <div *ngFor="let filter of filters " >
163
                     <span *ngIf = "filter.countSelectedValues > 0"> <span class="uk-text-bold">{{filter.title}}:</span>
164
                       <label *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "
165
                              [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) ">
166
                         <a [class]="((disableForms)?'  uk-disabled':'  ')+'  portal-color '"><span class=" clickable" aria-hidden="true"><span class="uk-icon">
167
                           <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>
168
                           </span></span>
169
                         </a>
170
                         <span [innerHtml]="(value.name.length > 25)?value.name.substring(0,25)+'...':value.name"></span><span *ngIf="!end" class="   ">, </span>
171
                       </label>
172
                     </span>
173
                   </div>
174
                 </div>
175

    
176
                <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">
177
                  <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>
178
                </div>
179
               </div>
180
               <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">
181
                 <span class="uk-text-meta">No filters available</span>
182
               </div>
183
               <search-filter  *ngFor="let filter of filters " [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>
184
            </div>
185
            <!-- </div> -->
186
            <div class="uk-width-expand@m uk-width-1-1@s uk-first-column">
187
            <!-- <div [class]="(showRefine)?'uk-width-expand@m uk-first-column':''" > -->
188
              <div *ngIf="openaireLink"> <a class="uk-margin-top   uk-button uk-button-text"  [href]=openaireLink target="_blank" >Results in OpenAIRE</a></div>
189
              <div  class="uk-align-center uk-margin-remove-bottom">
190
                <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
191
                      class="uk-grid uk-margin-top uk-margin-bottom">
192
                  <!-- <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(searchUtils)] = "searchUtils" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-results-per-page> -->
193
                  <!-- <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(searchUtils)] = "searchUtils" [(sortBy)]="sortBy" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-sorting> -->
194
                  <search-results-per-page [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>
195
                  <search-sorting *ngIf="sort" [entityType]="entityType" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>
196
                </div>
197
                <search-paging *ngIf="searchUtils.totalResults != 1" [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results"  [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"></search-paging>
198
                <search-paging *ngIf="searchUtils.totalResults == 1" [type]="entityType" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results"  [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"></search-paging>
199
              </div>
200
              <div *ngIf="(searchUtils.page <= pagingLimit)" class="">
201
                <search-result    *ngIf="(entityType != 'community' && entityType != 'funder' ) && !tableView && usedBy == 'search'"
202
                                  [results]="results"
203
                                  [status]="searchUtils.status"
204
                                  [type]="entityType"
205
                                  [showLoading]="true" [properties]=properties>
206
                </search-result>
207
                <deposit-result   *ngIf="usedBy == 'deposit'"
208
                                  [results]="results"
209
                                  [status]="searchUtils.status"
210
                                  [type]="entityType"
211
                                  [zenodoInformation]="zenodoInformation"
212
                                  [properties]=properties>
213
                </deposit-result>
214
                <portal-search-result *ngIf="(entityType == 'community' || entityType == 'stakeholder') && !tableView && usedBy == 'search'"
215
                                      [results]="results"
216
                                      [status]="searchUtils.status"
217
                                      [type]="entityType"
218
                                      [showType]="showType"
219
                                      [showLoading]="true" [properties]=properties>
220
                </portal-search-result>
221
              </div>
222

    
223
              <div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''" *ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > searchUtils.size*pagingLimit)">
224
                  <p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
225
              </div>
226

    
227
              <div  class="uk-align-center uk-margin-remove-bottom">
228
                <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
229
                      class="uk-grid uk-margin-top uk-margin-bottom">
230
                  <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>
231
                  <!-- <search-results-per-page class="uk-width-1-2@m uk-width-1-1"></search-results-per-page> -->
232
                  <!--[(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"-->
233
                  <!-- <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(searchUtils)] = "searchUtils" [(sortBy)]="sortBy" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-sorting> -->
234
                  <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [entityType]="entityType"  [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>
235
                </div>
236
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results"  [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-paging>
237
              </div>
238
              <a *ngIf="properties.showLastIndexInformationLink && lastIndex" class="last_index_info uk-button-text"
239
                  [href]="properties.lastIndexInformationLink" target="_blank">
240
                  Last index information
241
              </a>
242
            </div>
243
            </div>
244
          <!-- <div [class]="(showRefine)? 'uk-width-3-5@m  uk-width-3-5@l  uk-width-1-1@s uk-align-center uk-margin-remove-bottom' : 'uk-width-1-1'">
245
            <search-paging [loadPaging]="loadPaging" [type]="type" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils"  [(results)] = "results"  [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-paging>
246
          </div> -->
247
          <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" [texts]="pageContents['bottom']" styleName="uk-width-1-1"></helper>
248
        </div>
249
      </div>
250
    </div>
251
  </div>
252
</div>
(37-37/55)