Project

General

Profile

« Previous | Next » 

Revision 46271

comment claim functionalities | tidy up navbar links | extra query for projects of an organization when requiring pubs report | remove href from home page tabs

View differences:

organization.component.html
157 157
                  </dl>
158 158
                </li>
159 159

  
160
                <ng-container *ngIf="organizationInfo.projects != undefined">
161
                        <li *ngFor="let key of organizationInfo.projects.keys()">
160
                <ng-container *ngIf="searchingProjectsTabComponent && searchingProjectsTabComponent.fetchProjects.funders.length  > 0">
161
                        <li *ngFor="let funder of searchingProjectsTabComponent.fetchProjects.funders">
162 162
                            <!--a href="{{downloadURLAPI}}resources?size={{organizationInfo.projects.get(key).length}}&{{csvProjectParamsHead}}{{organizationInfo.projects.get(key)[0]['funderId']}}{{csvParamsTail}}">
163 163
                                Download projects report (CSV) for {{key}}
164 164
                            </a-->
165
                            <span class="clickable" (click)="downloadfile(downloadURLAPI+'resources?size='+organizationInfo.projects.get(key).length+'&'+csvProjectParamsHead+organizationInfo.projects.get(key)[0]['funderId']+csvParamsTail)">
165
                            <span class="clickable" (click)="downloadfile(downloadURLAPI+'resources?size='+funder.number+'&'+csvProjectParamsHead+funder.id+csvParamsTail)">
166 166
                                <span aria-hidden="true" class="glyphicon glyphicon-download"></span>
167
                                <span class="uk-icon-download"> Projects report(CSV) for {{key}}</span>
167
                                <span class="uk-icon-download"> Projects report(CSV) for {{funder.name}}</span>
168 168
                            </span>
169 169
                        </li>
170 170

  
171
                        <li *ngFor="let key of organizationInfo.projects.keys()">
172
                            <span class="clickable" (click)="downloadPublicationsFile(key)">
171
                        <li *ngFor="let funder of searchingProjectsTabComponent.fetchProjects.funders">
172
                            <span class="clickable" (click)="downloadPublicationsFile(funder.name,funder.id, funder.number)">
173 173
                                <span aria-hidden="true" class="glyphicon glyphicon-download"></span>
174
                                <span class="uk-icon-download"> Publications report(CSV) for {{key}}</span>
174
                                <span class="uk-icon-download"> Publications report(CSV) for {{funder.name}}</span>
175 175
                            </span>
176 176
                        </li>
177 177
                </ng-container>

Also available in: Unified diff