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/connect-assets/banner/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 uk-grid >
49
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
50
      <div class="">
51
        <div  [class]="'uk-container' + (usedBy == 'deposit' ? ' uk-container-large' : '')">
52
          <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
53
          <div  [class]="(showRefine)? 'uk-width-4-5@m  uk-width-4-5@l  uk-width-1-1@s' :'uk-width-1-1'">
54
            <div  *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m">
55

    
56
              <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>
57

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

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

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

    
85
                      <span *ngIf = "searchUtils.keyword.length > 0"><span class="uk-text-bold">Keywords:</span>
86
                      <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 ">
87
                        <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>
88
                        </span></span></a>
89
                      <span [innerHtml]="searchUtils.keyword"></span>
90

    
91
                      </span>
92
                      <div *ngFor="let filter of filters " >
93
                        <span *ngIf = "filter.countSelectedValues > 0"> <span class="uk-text-bold">{{filter.title}}:</span>
94
                          <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; " >
95
                            <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">
96
                              <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>
97
                              </span></span></a>
98
                            <span [innerHtml]="(value.name.length > 25)?value.name.substring(0,25)+'...':value.name" [title]="value.name"></span><span *ngIf="!end" class="   ">, </span>
99
                          </span>
100
                        </span>
101
                      </div>
102

    
103

    
104
                    </div>
105

    
106
                    <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">
107
                      <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>
108
                    </div>
109

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

    
119
            </div>
120
          </div>
121

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

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

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

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

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

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

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

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