Project

General

Profile

1
<form class="  uk-margin-top uk-animation ">
2
  <div class="">Start searching for projects and add them to the basket to link them to your sources
3
    <!-- <helper  div="link-project-form"   tooltip=true></helper>  -->
4
  </div>
5

    
6
  <input class=" uk-input  uk-width-large" [(ngModel)]="keyword" name="keyword" placeholder="Search for projects..."/>
7
  <span class="input-group-btn">
8
    <button (click)="search(page,size)" type="submit" class=" uk-button portal-button">Search</button>
9
  </span>
10

    
11
</form>
12
<div *ngIf="!showResults">
13
  <div class="uk-text-center uk-text-large uk-text-muted uk-margin-large-top">No project results yet... <br>Start
14
    searching for projects to add them in the Basket
15
  </div>
16
</div>
17
<div *ngIf="showResults" class="uk-margin-top">
18
  <div *ngIf="openaireResultsStatus == errorCodes.NONE" class="uk-alert uk-alert-primary"
19
       role="alert">No Results found
20
  </div>
21
  <div *ngIf="openaireResultsStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning"
22
       role="alert">An Error Occured
23
  </div>
24
  <div *ngIf="openaireResultsStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger"
25
       role="alert">Service not available
26
  </div>
27

    
28
  <div class="uk-grid">
29
    <div class="search-filters uk-width-medium">
30
      <!-- <div   class="uk-width-1-1   uk-margin-small-bottom ">
31

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

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

    
40
          </span>
41
          <div *ngFor="let filter of filters " >
42
            <span *ngIf = "filter.countSelectedValues > 0"> <span class="uk-text-bold">{{filter.title}}:</span>
43
              <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; " >
44
                <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">
45
                  <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>
46
                  </span></span></a>
47
                <span [innerHtml]="(value.name.length > 25)?value.name.substring(0,25)+'...':value.name" [title]="value.name"></span><span *ngIf="!end" class="   ">, </span>
48
              </span>
49
            </span>
50
          </div>
51

    
52

    
53
        </div>
54

    
55
       <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">
56
         <a  *ngIf="countFilters()>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
57
           Clear All
58
         </a>
59

    
60
      </div>
61
      </div> -->
62

    
63
      <ul class="uk-list">
64
        <li class="uk-open">
65
          <h5 class="uk-margin-bottom-remove searchFilterTitle">Years range
66
          </h5>
67
          <div aria-expanded="false">
68
            <div class="searchFilterBoxValues ">
69
              <form class="uk-inline">
70

    
71
                <input class=" uk-input  uk-width-2-5" [(ngModel)]="startYear" name="keyword"
72
                       placeholder="Start year"/>
73
                <input class=" uk-input  uk-width-2-5" [(ngModel)]="endYear" name="keyword"
74
                       placeholder="End year"/>
75
                <button type="submit" (click)="yearChanged()" style="cursor: pointer;" class="uk-icon"><svg width="20"
76
                                                                                                   height="20"
77
                                                                                            viewBox="0 0 20 20"
78
                                                                                            xmlns="http://www.w3.org/2000/svg"
79
                                                                                            icon="chevron-right"
80
                                                                                            ratio="1"><polyline
81
                  fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg></button>
82

    
83
              </form>
84
            </div>
85
          </div>
86
        </li>
87
      </ul>
88
      <search-filter *ngFor="let filter of filters " [isDisabled]="false" [filter]="filter" [showResultCount]=true
89
                     (onFilterChange)="filterChanged($event)"></search-filter>
90
    </div>
91
    <div class="uk-width-expand@m uk-width-1-1@s uk-first-column">
92
      <div *ngIf="openaireResultsNum != null && openaireResultsNum > 0" class="uk-clearfix portal-hr ">
93
        <div class="uk-grid">
94
          <div *ngIf="openaireResultsNum>0" class="uk-width-1-2">
95
            <span class="portal-color">{{openaireResultsNum|number}}</span> projects, page <span
96
            class="portal-color">{{openaireResultsPage | number}}</span> of <span
97
            class="portal-color">{{totalPages(openaireResultsNum)|number}}</span>
98
          </div>
99
          <div class="uk-width-1-2  uk-padding-remove">
100
            <paging-no-load class="uk-float-right" [currentPage]="openaireResultsPage"
101
                            [totalResults]="openaireResultsNum" [term]="keyword" [size]="size"
102
                            (pageChange)="openaireResultsPageChange($event)"></paging-no-load>
103
          </div>
104
        </div>
105
      </div>
106
      <div *ngIf="openaireResultsStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top  uk-width-1-1"
107
           role="alert"><span class="loading-gif  uk-align-center"></span></div>
108
      <claim-results [localStoragePrefix]="localStoragePrefix" [results]=openaireResults
109
                     [selectedResults]=selectedProjects [basketLimit]="basketLimit"></claim-results>
110
    </div>
111
  </div>
112
</div>
(6-6/15)