Project

General

Profile

« Previous | Next » 

Revision 58357

[Trunk | Library]: organization.component.html & project.component.html:
For download reports sections: Show all types (disabled if no results with tooltip "No report available"), or show message "No reports available" if no results.

View differences:

modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/organization/organization.component.html
132 132
                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share - Bookmark</div>
133 133
                <addThis></addThis>
134 134
              </div>
135
              <div *ngIf="total.results > 0" class="uk-margin-top">
135
              <div class="uk-margin-top">
136 136
                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">
137 137
                  Download report - based on the affiliation information
138 138
                </div>
139 139
                <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">
140
                  <div class="uk-animation-slide-top-small">
141
                    <ul class="uk-padding-remove-bottom uk-list">
140
                  <div class="uk-animation-slide-top-small uk-padding-small uk-padding-remove-vertical">
141
                    <ul *ngIf="total.results > 0" class="uk-margin-remove-bottom uk-list">
142 142
                      <ng-container *ngFor="let contentType of contentTypes">
143
                        <li *ngIf="total[contentType[0]] > 0">
144
                          <a class="clickable" (click)="downloadFile(getCSVAffiliated(contentType[0]), contentType[0] + '-report')">
143
                        <li [attr.uk-tooltip]="total[contentType[0]] > 0 ? 'cls: uk-invisible' : 'cls: uk-active'"
144
                            title="No report available">
145
                          <a [class]="total[contentType[0]] > 0 ? 'clickable' : 'uk-disabled uk-link-muted'"
146
                             (click)="downloadFile(getCSVAffiliated(contentType[0]), contentType[0] + '-report')">
145 147
                            <span uk-icon="download"></span>
146 148
                            <span class="uk-text-capitalize uk-margin-small-left">{{contentType[1]}} (CSV)</span>
147 149
                          </a>
148 150
                        </li>
149 151
                      </ng-container>
150 152
                    </ul>
153
                    <div *ngIf="total.results == 0"
154
                         class="uk-text-muted">
155
                      No reports available
156
                    </div>
151 157
                  </div>
152 158
                </div>
153 159
              </div>
......
170 176
                    </div>
171 177
                    <div *ngIf="funder && funder != ''"
172 178
                         class="uk-animation-slide-top-small uk-margin-top">
173
                      <ul class="uk-padding-remove-bottom uk-list">
179
                      <ul class="uk-margin-remove-bottom uk-list">
174 180
                        <li>
175 181
                          <a class="clickable"
176 182
                             (click)="downloadFile(getFunderProjects(), funder.name + '-projects-report')">
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/project/project.component.html
576 576
                    </div>
577 577
                </div>
578 578
              </div>
579
              <div *ngIf="projectInfo.funding &&
580
                          (fetchPublications.searchUtils.totalResults > 0 ||
581
                          fetchDatasets.searchUtils.totalResults > 0 ||
582
                          fetchSoftware.searchUtils.totalResults > 0 ||
583
                          fetchOrps.searchUtils.totalResults > 0)"
584
                   class="uk-margin-top">
579
              <div class="uk-margin-top">
585 580
                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Download report</div>
586 581
                <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">
587 582
<!--                  <select class="select" id="download_report" name="download_report"-->
......
594 589
<!--                    <option value="other">Other research products</option>-->
595 590
<!--                  </select>-->
596 591
                  <div class="uk-padding-small uk-padding-remove-vertical">
597
                    <mat-select [(value)]="download_research_results_type"
592
                    <mat-select *ngIf="projectInfo.funding &&
593
                                      (fetchPublications.searchUtils.totalResults > 0 ||
594
                                      fetchDatasets.searchUtils.totalResults > 0 ||
595
                                      fetchSoftware.searchUtils.totalResults > 0 ||
596
                                      fetchOrps.searchUtils.totalResults > 0)"
597
                                [(value)]="download_research_results_type"
598 598
                                [disableOptionCentering]="true"
599 599
                                panelClass="entitiesSelectionPanel"
600 600
                                class="matSelection">
601 601
                      <mat-option value="">Select content type</mat-option>
602 602
                      <mat-option value="results">All research outcomes</mat-option>
603 603
                      <mat-option value="publications"
604
                                  [disabled]="fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE">
604
                                  [disabled]="fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE"
605
                                  [attr.uk-tooltip]="(fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
606
                                  title="No report available">
605 607
                        Publications
606 608
                      </mat-option>
607 609
                      <mat-option value="datasets"
608
                                  [disabled]="fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE">
610
                                  [disabled]="fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE"
611
                                  [attr.uk-tooltip]="(fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
612
                                  title="No report available">
609 613
                        Research data
610 614
                      </mat-option>
611 615
                      <mat-option value="software"
612
                                  [disabled]="fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE">
616
                                  [disabled]="fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE"
617
                                  [attr.uk-tooltip]="(fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
618
                                  title="No report available">
613 619
                        Software
614 620
                      </mat-option>
615 621
                      <mat-option value="other"
616
                                  [disabled]="fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE">
622
                                  [disabled]="fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE"
623
                                  [attr.uk-tooltip]="(fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
624
                                  title="No report available">
617 625
                        Other research products
618 626
                      </mat-option>
619 627
                    </mat-select>
......
624 632
                                      csvParams: getCsvParams(download_research_results_type) }">
625 633
                      </ng-container>
626 634
                    </div>
635

  
636
                    <div *ngIf="!projectInfo.funding ||
637
                          (fetchPublications.searchUtils.totalResults == 0 &&
638
                          fetchDatasets.searchUtils.totalResults == 0 &&
639
                          fetchSoftware.searchUtils.totalResults == 0 &&
640
                          fetchOrps.searchUtils.totalResults == 0)"
641
                          class="uk-text-muted">
642
                      No reports available
643
                    </div>
627 644
                  </div>
628 645
                </div>
629 646
              </div>

Also available in: Unified diff