Project

General

Profile

1

    
2
<div id="tm-main" class=" uk-section  uk-margin-small-top tm-middle"   >
3
 <div uk-grid uk-grid>
4
  <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
5

    
6
   <div   [class]="'uk-background-norepeat uk-background-cover uk-section uk-flex uk-flex-middle '+searchFormClass" >
7
     <div   class="uk-width-1-1">
8
       <div   class="uk-width-1-1">
9
           <search-form [isDisabled]="disableForms" [(keyword)]="searchUtils.keyword" (keywordChange)="keywordChanged($event)"  [placeholderText]="formPlaceholderText"></search-form>
10
       </div>
11
       <div   class="uk-width-1-1  uk-light">
12
         <div *ngIf="isFiltered()" class = "uk-container uk-text-center ">
13
           <span *ngIf = "searchUtils.keyword.length > 0">Keywords: <span>{{searchUtils.keyword}}<a (click) = "clearKeywords() " [class]="(disableForms)?'uk-icon-button uk-disabled':'uk-icon-button'"><span class=" clickable " aria-hidden="true"><span class="uk-icon">
14
             <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="1"><path fill="none" stroke="#000" stroke-width="1.06" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.06" d="M16,4 L4,16"></path></svg>
15
               </span></span></a></span>
16
           </span>
17
           <span *ngFor="let filter of filters " >
18
             <span *ngIf = "filter.countSelectedValues > 0"> {{filter.title}}:
19
               <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; " >{{value.name}}<a (click) = "removeFilter(value, filter) " [class]="(disableForms)?'uk-icon-button uk-disabled':'uk-icon-button'"><span class=" clickable" aria-hidden="true"><span class="uk-icon">
20
                 <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="1"><path fill="none" stroke="#000" stroke-width="1.06" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.06" d="M16,4 L4,16"></path></svg>
21
                 </span></span></a>
22
                <span *ngIf="!end">, </span>
23
               </span>
24
             </span>
25
           </span>
26

    
27
           <a (click)="clearFilters()" [class]="(disableForms)?'uk-disabled uk-link-muted':''">
28
            Clear All
29
           </a>
30
         </div>
31
       </div>
32
     </div>
33
   </div>
34
     <div  class="uk-container">
35
       <!--div *ngIf="searchUtils.status == errorCodes.NONE" class="uk-alert uk-alert-primary uk-animation-fade uk-margin-top" role="alert">No Results found</div>
36
       <div *ngIf="searchUtils.status == errorCodes.ERROR" class="uk-alert uk-alert-warning uk-animation-fade uk-margin-top" role="alert">An Error Occured</div>
37
       <div *ngIf="searchUtils.status == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger uk-animation-fade uk-margin-top" role="alert">Service not available</div>
38
       <div *ngIf="searchUtils.status == errorCodes.LOADING" class="uk-alert uk-alert-primary uk-animation-fade uk-margin-top" role="alert"
39
         class="uk-animation-fade uk-margin-large-top  uk-width-1-1" role="alert"><img src="./assets/loading.gif" class="uk-align-center" alt="Loading">
40
       </div-->
41
       <errorMessages [status]="[searchUtils.status]" [type]="'results'"></errorMessages>
42

    
43
       <div  class="uk-grid uk-width-1-1 uk-margin">
44
         <div class="uk-width-1-1">
45
           <helper position="top"></helper>
46
         </div>
47
       <div *ngIf="searchUtils.totalResults > 0" class="uk-offcanvas-content uk-hidden@m">
48

    
49
             <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>
50

    
51
             <div id="offcanvas-usage" uk-offcanvas>
52
                 <div class="uk-offcanvas-bar">
53
                     <button class="uk-offcanvas-close" type="button" uk-close></button>
54
                     <div class="uk-text-large">Filter By:</div>
55
                     <search-filter  *ngFor="let filter of filters " [addShowMore]=false [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (change)="filterChanged($event)" (toggleModal)="toggleModal($event)"></search-filter>
56
                 </div>
57
             </div>
58

    
59
       </div>
60
         <div *ngIf="searchUtils.totalResults > 0" class=" search-filters uk-width-1-5@l  uk-width-1-5@m  uk-width-1-1@s  uk-margin-large-top uk-visible@m">
61
            <helper position="left"></helper>
62
            <search-filter  *ngFor="let filter of filters " [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (change)="filterChanged($event)" (toggleModal)="toggleModal($event)"></search-filter>
63
         </div>
64

    
65
         <div class="uk-width-expand@m uk-width-1-1@s uk-first-column" >
66
           <div class="uk-overflow-container custom-dataTable-content">
67
             <table  class="uk-table uk-table-striped divider-table"  #mf="mfDataTable" [mfRowsOnPage]="rowsOnPage"
68
                     [mfData]="results | contentProvidersDatatable : [searchUtils, filters, triggerPipe]">
69

    
70
               <thead *ngIf="searchUtils.totalResults > 0">
71
                 <tr><td colspan="5" class="uk-padding-remove">
72
                   <span class="uk-h6">
73
                     {{searchUtils.totalResults}} content providers, page {{searchUtils.page}} of {{(totalPages())}}
74
                   </span>
75
                   <paging-no-load class="uk-float-right" [currentPage]="searchUtils.page" [totalResults]="searchUtils.totalResults" [size]="rowsOnPage" (pageChange)="goTo($event.value, false)"></paging-no-load>
76
                 </td></tr>
77
                 <!--tr><td colspan="5" class="uk-padding-remove">
78
                   <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" (downloadClick)="downloadClicked($event)"></search-download>
79
                 </td></tr-->
80

    
81
                  <tr>
82
                     <!-- Name	Type	Country	Institution	Compatibility -->
83
                     <th class="uk-text-left"><mfDefaultSorter by="title.name">Name</mfDefaultSorter>
84
                       <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
85
                         <polygon fill="#767779" points="4 1 1 6 7 6"></polygon>
86
                         <polygon fill="#767779" points="4 13 1 8 7 8"></polygon>
87
                         </svg>
88
                     </th>
89
                     <th class="uk-text-center"><mfDefaultSorter by="type">Type</mfDefaultSorter>
90
                     <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
91
                       <polygon fill="#767779" points="4 1 1 6 7 6"></polygon>
92
                       <polygon fill="#767779" points="4 13 1 8 7 8"></polygon>
93
                       </svg>
94
                     </th>
95
                     <th class="uk-text-center"><mfDefaultSorter by="countries">Country</mfDefaultSorter>
96
                     <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
97
                       <polygon fill="#767779" points="4 1 1 6 7 6"></polygon>
98
                       <polygon fill="#767779" points="4 13 1 8 7 8"></polygon>
99
                       </svg>
100
                     </th>
101
                     <th class="uk-text-center"><mfDefaultSorter [by]="sortByOrganization">Institution</mfDefaultSorter>
102
                     <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
103
                       <polygon fill="#767779" points="4 1 1 6 7 6"></polygon>
104
                       <polygon fill="#767779" points="4 13 1 8 7 8"></polygon>
105
                       </svg>
106
                     </th>
107
                     <th class="uk-text-center"><mfDefaultSorter by="compatibility">Compatibility</mfDefaultSorter>
108
                     <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
109
                       <polygon fill="#767779" points="4 1 1 6 7 6"></polygon>
110
                       <polygon fill="#767779" points="4 13 1 8 7 8"></polygon>
111
                       </svg>
112
                     </th>
113
                  </tr>
114

    
115
               </thead>
116
               <tbody *ngIf="searchUtils.totalResults > 0">
117
                   <tr class="uk-table-middle" *ngFor="let dataprovider of mf.data">
118
                     <td  class="uk-width-1-5 uk-text-left">
119
                       <a [queryParams]="{datasourceId: dataprovider.id}" routerLinkActive="router-link-active" routerLink="/search/dataprovider">
120
                           <span *ngIf="dataprovider.title.name"
121
                               [innerHTML]="dataprovider.title.name">
122
                           </span>
123
                           <span *ngIf="!dataprovider.title.name">
124
                               [no title available]
125
                           </span>
126
                       </a>
127
                     </td>
128
                     <td class="uk-width-1-5 uk-text-center">
129
                       <span *ngIf="dataprovider.type">{{dataprovider.type}}</span>
130
                       <span *ngIf="!dataprovider.type">-</span>
131
                     </td>
132
                     <td class="uk-width-1-5 uk-text-center">
133
                       <span *ngFor="let country of dataprovider['countries'].slice(0,5) let i = index">{{country}}{{(i < ( dataprovider['countries'].slice(0,5).length-1))?", ":""}}{{(i ==  dataprovider['countries'].slice(0,5).length-1 &&  dataprovider['countries'].length > 5)?"...":""}}</span>
134
                       <span *ngIf="dataprovider.countries.length == 0">-</span>
135
                     </td>
136
                     <td class="uk-width-1-5 uk-text-center">
137
                       <span *ngFor="let org of dataprovider['organizations'].slice(0,5) let i = index">
138
                         <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 < ( dataprovider['organizations'].slice(0,5).length-1))?", ":""}}{{(i ==  dataprovider['organizations'].slice(0,5).length-1 &&  dataprovider['organizations'].length > 5)?"...":""}}
139
                       </span>
140
                       <span *ngIf="dataprovider.organizations.length == 0">-</span>
141
                     </td>
142
                     <td  class="uk-width-1-5 uk-text-center">
143
                       <span *ngIf="dataprovider.compatibility">{{dataprovider.compatibility}}</span>
144
                       <span *ngIf="!dataprovider.compatibility">-</span>
145
                     </td>
146
                   </tr>
147
               </tbody>
148
             </table>
149
           </div>
150
       </div>
151
       <div *ngIf="searchViewLink" class="uk-margin-large-top uk-padding-remove-top uk-padding-remove-right uk-text-right">
152
         <p>
153

    
154
             <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>
155

    
156
           <a routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=searchViewLink >
157
             <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>
158
           </a>
159
         </p>
160
      </div>
161
     </div>
162
     <helper position="bottom"></helper>
163
   </div>
164

    
165
<modal-search-filter [filter]="currentFilter" [showResultCount]=showResultCount (modalChange)="filterChanged($event)"></modal-search-filter>
166
</div>
167
</div>
168
</div>
(25-25/36)