Project

General

Profile

1
<div class="uk-width-1-1 uk-flex uk-flex-middle uk-grid" uk-grid>
2
  <div *ngIf="allOptions?.length > 0"
3
       class="uk-width-1-2@m uk-width-1-1">
4
    <div class="uk-grid uk-flex uk-flex-middle uk-flex-wrap uk-flex-center uk-flex-right@m uk-width-1-1">
5
      <span class="">Filter by: </span>
6
      <div class="uk-width-expand uk-padding-remove uk-margin-small-left" dashboard-input
7
           [formInput]="filterForm.get('funder')"
8
           placeholder="Search by funders"
9
          type="autocomplete" [options]="allOptions" [showOptionsOnEmpty]="false">
10
      </div>
11
    </div>
12
  </div>
13
  <div class="uk-flex uk-flex-wrap uk-flex-center uk-flex-right@m uk-width-1-1 uk-width-expand@m">
14
    <div class="uk-width-1-1 uk-width-expand@m">
15
    <div #searchInputComponent search-input [control]="filterForm.controls.keyword" [showSearch]="false" placeholder="Search"
16
         [selected]="openaireSearchUtils.keyword" (closeEmitter)="onSearchClose()" (resetEmitter)="resetInput()"
17
         [bordered]="true" colorClass="uk-text-secondary" toggleTitle="locate projects"></div>
18
  </div>
19
  </div>
20
</div>
21

    
22
<!--<div class="uk-width-1-1 uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>-->
23
<!--  <div #searchInputComponent search-input [control]="filterForm.controls.keyword" [showSearch]="false"-->
24
<!--       placeholder="Search Zenodo Communites"-->
25
<!--       [selected]="openaireSearchUtils.keyword"-->
26
<!--       [bordered]="true" colorClass="uk-text-secondary"-->
27
<!--       class="uk-width-1-2@l uk-width-1-2@m uk-width-1-1"></div>-->
28

    
29
<!--</div>-->
30

    
31
<div id="manage-projects">
32

    
33
<!--<div *ngIf="openaireSearchUtils.status == errorCodes.DONE" class="uk-alert uk-alert-primary">-->
34
<!--  <span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>-->
35
<!--Newly added projects will be linked to your community on the next run of our algorithms.-->
36
<!--&lt;!&ndash; <div> If you cannot find a funder that is relevant for your community, please contact us (<a [href]="'mailto:' + properties.feedbackmailForMissingEntities +'?Subject=[OpenAIRE Connect - '+ community + '] report missing Funder' + '&body=' + body" target="_top">feedback@openaire.eu</a>) and we'll try to get the funder on board!</div> &ndash;&gt;-->
37
<!--</div>-->
38

    
39
<!--<div *ngIf="openaireSearchUtils.status == errorCodes.DONE" class="uk-alert uk-alert-primary">-->
40
<!--  <span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>-->
41
<!--  If you cannot find a funder that is relevant for your community, please contact us (<a [href]="'mailto:' + properties.feedbackmailForMissingEntities +'?Subject=[OpenAIRE Connect - '+ community + '] report missing Funder' + '&body=' + body" target="_top">feedback@openaire.eu</a>) and we'll try to get the funder on board!-->
42
<!--</div>-->
43

    
44
<errorMessages [status]="[openaireSearchUtils.status]" [type]="'OpenAIRE projects'"></errorMessages>
45
<div *ngIf="openaireSearchUtils.status == errorCodes.NONE" class="uk-alert uk-alert-primary">
46
  <span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
47
   If you wish to suggest a new funder to include or report a missing project, please contact us via
48
   <a [href]="'mailto:' + properties.feedbackmailForMissingEntities +'?Subject=[OpenAIRE Connect - '+ community + '] report missing project' + '&body=' + body" target="_top">feedback@openaire.eu</a>.
49
</div>
50

    
51
<!--<div *ngIf="openaireSearchUtils.totalResults > 0" class="uk-align-center uk-margin-remove-bottom">-->
52
<!--  <div class="searchPaging uk-panel uk-margin-top uk-grid uk-margin-bottom">-->
53
<!--    <span class="uk-h6 uk-width-1-1@s uk-width-1-2@m">-->
54
<!--      {{openaireSearchUtils.totalResults | number}} projects, page {{openaireSearchUtils.page | number}} of {{(totalPages()) | number}}-->
55
<!--    </span>-->
56
<!--    <span class="float-children-right-at-medium margin-small-top-at-small uk-width-1-1@s uk-width-1-2@m">-->
57
<!--      <paging-no-load [limitPaging]=true [currentPage]="openaireSearchUtils.page" [totalResults]="openaireSearchUtils.totalResults" [size]="rowsOnPage" (pageChange)="goTo($event.value)"></paging-no-load>-->
58
<!--    </span>-->
59
<!--  </div>-->
60
<!--</div>-->
61

    
62
  <no-load-paging  *ngIf="openaireSearchUtils.totalResults > 0" [type]="'Projects'"
63
                   [page]="openaireSearchUtils.page" [pageSize]="rowsOnPage" (pageChange)="goTo($event.value)"
64
                   [totalResults]="openaireSearchUtils.totalResults" >
65
  </no-load-paging>
66

    
67
<ul class="uk-list search-results uk-margin-medium-top uk-margin-medium-bottom">
68
  <li *ngFor="let result of openaireProjects" class="uk-animation-fade">
69
    <div class="uk-card uk-card-default uk-card-hover uk-text-small uk-margin-bottom">
70
      <div class="uk-grid uk-grid-divider uk-padding-small" uk-grid>
71
        <div class="uk-width-expand@m uk-width-1-1">
72
          <result-preview [properties]="properties" [showOrganizations]="true"
73
                          [showSubjects]="true" [result]="getResultPreview(result)" [showImage]="true">
74
          </result-preview>
75
<!--        <div class="uk-padding-small uk-padding-remove-horizontal">-->
76
<!--          <h6>-->
77
<!--            <a target="_blank" [href]="properties.baseOpenaireLink+'/search/project?projectId='+result.id">-->
78
<!--               <span *ngIf="result['title'].name || result.acronym">-->
79
<!--                 <span *ngIf="result.acronym">{{result.acronym}}</span>-->
80
<!--                 <span *ngIf="result.acronym && result['title'].name">-</span>-->
81
<!--                 <span [innerHTML]="result['title'].name"></span>-->
82
<!--                 <span *ngIf="result.code">({{result.code}})</span>-->
83
<!--               </span>-->
84
<!--              <span *ngIf="!result['title'].name && !result.acronym">-->
85
<!--                 [no title available]-->
86
<!--                 <span *ngIf="result.code">({{result.code}})</span>-->
87
<!--              </span>-->
88
<!--              <span class="custom-external custom-icon space"></span>-->
89
<!--            </a>-->
90
<!--          </h6>-->
91
<!--          <span *ngIf="result.title && result.title.accessMode" [class]="'uk-label custom-label  label-'+ result.title.accessMode " title="Access Mode">{{result.title.accessMode}}</span>-->
92
<!--          <span *ngIf="result.funderShortname" class="uk-label custom-label label-funder " title="Funder">{{result.funderShortname}}</span>-->
93
<!--          <span *ngIf="result.title  && result.title.sc39" class="uk-label custom-label label-sc39 " title="Special Clause 39">Special Clause 39</span>-->
94

    
95
<!--          <div *ngIf="result.startYear && result.endYear"> Start year: {{result.startYear}} - End year: {{result.endYear}}</div>-->
96
<!--          <div *ngIf="result['organizations'] != undefined && result['organizations'].length > 0">-->
97
<!--            <span> Organization: </span>-->
98
<!--            <span *ngFor="let organization of result['organizations'].slice(0,10) let i=index">-->
99
<!--               <a *ngIf="organization.id" target="_blank"-->
100
<!--                  [href]="properties.baseOpenaireLink+'/search/organization?organizationId='+organization.id">-->
101
<!--                    <span>{{organization.name}}</span>-->
102
<!--                    <span class="custom-external custom-icon space"></span>-->
103
<!--               </a>-->
104
<!--             <span-->
105
<!--               *ngIf="!organization.id">-->
106
<!--                       {{organization.name}}</span><span-->
107

    
108
<!--              *ngIf="(i < result['organizations'].length-1) && (i < 9)">,</span>-->
109
<!--           </span>-->
110
<!--            <span *ngIf="result['organizations'].length > 10">...</span>-->
111
<!--          </div>-->
112
<!--        </div>-->
113
        </div>
114
        <div class="uk-width-auto@m uk-width-1-1">
115
          <div class="uk-flex uk-flex-middle uk-flex-center uk-flex-column uk-height-1-1">
116
            <div class="uk-padding-small uk-padding-remove-horizontal">
117

    
118
  <!--          <span *ngIf="inCommunity(result)" class="uk-label uk-label-success uk-flex uk-flex-middle">Added in my community</span>-->
119
              <div [class.hide-element]="!getCommunityProjectId(result)">
120
                <a (click)="removeProject(result)" class="uk-button action uk-flex uk-flex-middle">
121
                  <icon name="remove_circle_outline" ratio="0.7"></icon>
122
                  <span class="uk-margin-small-left">Remove project</span>
123
                </a>
124
              </div>
125

    
126
              <div [class.hide-element]="getCommunityProjectId(result)">
127
                <a (click)="addProject(result)" class="uk-button action uk-flex uk-flex-middle"
128
                   uk-tooltip="title:<div class='uk-padding-small'><div class='uk-margin-bottom uk-text-bold'>Add new project </div><div>Newly added projects will be linked to your community on the next run of our algorithms.</div></div>">
129
                  <div class="uk-text-success">
130
                    <icon name="add"></icon>
131
                  </div>
132
                  <span class="uk-margin-small-left">Add project</span>
133
                </a>
134
              </div>
135
  <!--          <a *ngIf="undo[result.id]" (click)="removeProject(undo[result.id], result.id)" -->
136
  <!--             class="uk-button action uk-flex uk-flex-middle">-->
137
  <!--            <icon name="remove_circle_outline" ratio="0.7" [flex]="true"></icon>-->
138
  <!--            <span class="uk-margin-small-left">Remove project</span>-->
139
  <!--          </a>-->
140
            </div>
141
          </div>
142
        </div>
143
      </div>
144
    </div>
145
  </li>
146
</ul>
147

    
148
<!--<ul *ngIf="(openaireSearchUtils.page <= pagingLimit)" [class]="'uk-list uk-list-divider  uk-margin '+custom_class">-->
149
<!-- &lt;!&ndash; <errorMessages [status]="[status]" [type]="'results'"></errorMessages> &ndash;&gt;-->
150

    
151
<!--   <li *ngFor="let result of openaireProjects" class="uk-animation-fade">-->
152
<!--       <h6 class="uk-grid" uk-grid>-->
153
<!--           <span class="uk-width-5-6">-->
154
<!--             <a target="_blank" [href]="properties.baseOpenaireLink+'/search/project?projectId='+result.id">-->
155
<!--               <span *ngIf="result['title'].name || result.acronym">-->
156
<!--                 <span *ngIf="result.acronym">{{result.acronym}}</span>-->
157
<!--                 <span *ngIf="result.acronym && result['title'].name">-</span>-->
158
<!--                 <span [innerHTML]="result['title'].name"></span>-->
159
<!--                 <span *ngIf="result.code">({{result.code}})</span>-->
160
<!--               </span>-->
161
<!--               <span *ngIf="!result['title'].name && !result.acronym">-->
162
<!--                 [no title available]-->
163
<!--                 <span *ngIf="result.code">({{result.code}})</span>-->
164
<!--              </span>-->
165
<!--               <span class="custom-external custom-icon space"></span>-->
166
<!--             </a>-->
167
<!--           </span>-->
168

    
169
<!--           <span class="uk-width-1-6 uk-text-center">-->
170
<!--             &lt;!&ndash; <a *ngIf="!inCommunity(result)" (click)="addProject(result)" class="uk-icon-button"><svg height="20" icon="plus" ratio="1" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><rect height="17" width="1" x="9" y="1"></rect><rect height="1" width="17" x="1" y="9"></rect></svg></a> &ndash;&gt;-->
171
<!--&lt;!&ndash;               green_background_color green_color&ndash;&gt;-->
172
<!--             <a *ngIf="!inCommunity(result)" (click)="addProject(result)" class="uk-icon-button add uk-button-primary" uk-icon="plus" title="Add"></a>-->
173

    
174
<!--             <span *ngIf="inCommunity(result)" class="uk-label uk-label-success">Added</span>-->
175
<!--             &lt;!&ndash; <svg *ngIf="inCommunity(result)" class="added" src="assets/imgs/check-icon.png" title="Added" width="20" type="image" height="20"></svg> &ndash;&gt;-->
176

    
177
<!--             &lt;!&ndash; <button *ngIf="undo[result.id]" class="uk-button uk-button-danger uk-button-small" (click)="removeProject(result.id)">Undo</button> &ndash;&gt;-->
178
<!--             &lt;!&ndash; <input *ngIf="undo[result.id]" (click)="removeProject(result.id)" class="remove" src="assets/imgs/x-icon.png" title="Undo" width="20" type="image" height="20"> &ndash;&gt;-->
179
<!--             &lt;!&ndash; <a *ngIf="undo[result.id]" (click)="removeProject(result.id)" class="remove red_colour"><svg height="20" icon="close" ratio="1" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><rect height="17" width="1" x="9" y="1"></rect><rect height="1" width="17" x="1" y="9"></rect></svg></a> &ndash;&gt;-->
180
<!--&lt;!&ndash;               red_background_color red_color&ndash;&gt;-->
181
<!--             <a *ngIf="undo[result.id]" (click)="removeProject(undo[result.id], result.id)" class="uk-icon-button remove uk-button-danger" uk-icon="close" title="Undo"></a>-->
182

    
183
<!--          </span>-->
184
<!--       </h6>-->
185
<!--       <span *ngIf="result.title && result.title.accessMode" [class]="'uk-label custom-label  label-'+ result.title.accessMode " title="Access Mode">{{result.title.accessMode}}</span>-->
186
<!--       <span *ngIf="result.funderShortname" class="uk-label custom-label label-funder " title="Funder">{{result.funderShortname}}</span>-->
187
<!--       <span *ngIf="result.title  && result.title.sc39" class="uk-label custom-label label-sc39 " title="Special Clause 39">Special Clause 39</span>-->
188

    
189
<!--       <div *ngIf="result.startYear && result.endYear"> Start year: {{result.startYear}} - End year: {{result.endYear}}</div>-->
190
<!--       <div *ngIf="result['organizations'] != undefined && result['organizations'].length > 0">-->
191
<!--           <span> Organization: </span>-->
192
<!--           <span *ngFor="let organization of result['organizations'].slice(0,10) let i=index">-->
193
<!--               <a *ngIf="organization.id" target="_blank"-->
194
<!--                  [href]="properties.baseOpenaireLink+'/search/organization?organizationId='+organization.id">-->
195
<!--                    <span>{{organization.name}}</span>-->
196
<!--                    <span class="custom-external custom-icon space"></span>-->
197
<!--               </a>-->
198
<!--             <span-->
199
<!--                   *ngIf="!organization.id">-->
200
<!--                       {{organization.name}}</span><span-->
201

    
202
<!--                   *ngIf="(i < result['organizations'].length-1) && (i < 9)">,</span>-->
203
<!--           </span>-->
204
<!--           <span *ngIf="result['organizations'].length > 10">...</span>-->
205
<!--       </div>-->
206
<!--   </li>-->
207
<!--</ul>-->
208

    
209
<div [class]="openaireSearchUtils.page > pagingLimit ? 'search-results' : ''" *ngIf="(openaireSearchUtils.page >= pagingLimit) && (openaireSearchUtils.totalResults > resultsPerPage*pagingLimit)">
210
    <p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
211
</div>
212

    
213
  <no-load-paging  *ngIf="openaireSearchUtils.totalResults > 0" [type]="'Projects'"
214
                   [page]="openaireSearchUtils.page" [pageSize]="rowsOnPage" (pageChange)="goTo($event.value)"
215
                   [totalResults]="openaireSearchUtils.totalResults" >
216
  </no-load-paging>
217
<!--  </div>-->
218
<!--</div>-->
(1-1/6)