Project

General

Profile

1
<div id="tm-main" class=" uk-section  uk-margin-small-top tm-middle">
2
  <div uk-grid uk-grid>
3
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
4
      <div class="uk-container uk-margin-top">
5
        <div class="uk-article-title custom-article-title">
6
          {{pageTitle}}
7
        </div>
8
        <div>
9
          <a  *ngIf = "simpleSearchLink && simpleSearchLink.length > 0" routerLinkActive="router-link-active" [routerLink]=simpleSearchLink style="z-index:1;"
10
             [class]="(disableForms)?'uk-float-right uk-disabled uk-link-muted uk-button uk-button-text uk-text-secondary uk-margin-right uk-margin-top':'uk-float-right uk-button uk-button-text uk-text-secondary uk-margin-right uk-margin-top'" >Simple search
11
            <!--span class="uk-icon">
12
            <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="chevron-right" ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg>
13
          </span-->
14
        </a>
15
          <advanced-search-form
16
              [entityType] = "entityType"
17
              [(fieldIds)]="fieldIds"
18
              [(fieldIdsMap)]="fieldIdsMap"
19
              [(selectedFields)]="selectedFields"
20
              (queryChange)="queryChanged($event)"
21
              [isDisabled]="disableForms">
22
          </advanced-search-form>
23
          <div class="uk-width-1-1">
24
            <helper position="top"></helper>
25
          </div>
26
          <div class="uk-width-1-1 uk-grid helper-grid" >
27
            <helper class="helper-left-right uk-visible@m" position="left"></helper>
28
            <div class="uk-width-expand@m uk-with-1-1@s">
29
              <div *ngIf="openaireLink"> <a class="uk-margin-top   uk-button uk-button-text"  [href]=openaireLink target="_blank" >Results in OpenAIRE</a></div>
30
              <div  class="uk-align-center uk-margin-remove-bottom">
31
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils"  [(results)] = "results" [(baseUrl)] = "searchUtils.baseUrl"  [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"   ></search-paging>
32
              </div>
33

    
34
              <search-download *ngIf="searchUtils.totalResults <= csvLimit" class="uk-width-1-1@s uk-hidden@m" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>
35

    
36
              <div *ngIf="(searchUtils.page <= pagingLimit)" class="uk-margin-top">
37
                <search-result  [results]="results"
38
                                [status]=searchUtils.status
39
                                [type]="entityType"
40
                                [showLoading]="true" [(properties)]=properties>
41
                </search-result>
42
              </div>
43

    
44
              <div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''" *ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > resultsPerPage*pagingLimit)">
45
                  <p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
46
              </div>
47

    
48
              <div  class="uk-align-center uk-margin-remove-bottom">
49
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils"  [(results)] = "results" [(baseUrl)] = "searchUtils.baseUrl"  [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"   ></search-paging>
50
              </div>
51

    
52
              <helper class="uk-hidden@m" position="left" styleName="uk-width-1-1@s"></helper>
53
              <helper class="uk-hidden@m" position="right" styleName="uk-width-1-1@s"></helper>
54
            </div>
55
            <div *ngIf="searchUtils.totalResults <= csvLimit" class="uk-visible@m helper-left-right">
56
              <helper position="right" before="true"></helper>
57
              <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>
58
              <helper position="right" before="false"></helper>
59
            </div>
60
            <helper *ngIf="searchUtils.totalResults > csvLimit" class="helper-left-right uk-visible@m" position="right"></helper>
61
          </div>
62

    
63
          <div class="uk-width-1-1">
64
            <helper position="bottom"></helper>
65
          </div>
66
        </div>
67
      </div>
68
<!--modal-loading [message]= "'Loading results...'"></modal-loading-->
69
    </div>
70
  </div>
71
</div>
(4-4/36)