0">
-
-
diff --git a/landingPages/organization/organization.component.ts b/landingPages/organization/organization.component.ts
index d94fbf76..d03a3596 100644
--- a/landingPages/organization/organization.component.ts
+++ b/landingPages/organization/organization.component.ts
@@ -24,6 +24,7 @@ import {FetchDataproviders} from "../../utils/fetchEntitiesClasses/fetchDataprov
import {IndexInfoService} from "../../utils/indexInfo.service";
import {Subscriber} from "rxjs";
import {properties} from "../../../../environments/environment";
+import {OpenaireEntities} from '../../utils/properties/searchFields';
@Component({
selector: 'organization',
@@ -52,7 +53,7 @@ export class OrganizationComponent {
public fetchDatasets: FetchResearchResults;
public fetchSoftware: FetchResearchResults;
public fetchOrps: FetchResearchResults;
- public fetchDataproviders: FetchDataproviders
+ public fetchDataproviders: FetchDataproviders;
public searchNumber: number = 5;
// Request results of each tab only the one time (first time tab is clicked)
@@ -64,7 +65,8 @@ export class OrganizationComponent {
// Active tab variable for responsiveness
public activeTab: string = "";
-
+
+ @ViewChild('downloadReportsModal') downloadReportsModal;
@ViewChild('downloadReportModal') downloadReportModal;
@ViewChild('downloadFunderReportModal') downloadFunderReportModal;
@ViewChild('addThisModal') addThisModal;
@@ -82,11 +84,11 @@ export class OrganizationComponent {
// Helper variables to specify funder in downloadPublicationsFile function
public contentTypes: [string, string][] = [
- ['results', 'all research outcomes'],
- ['publications', 'publications'],
- ['datasets', 'research data'],
- ['software', 'software'],
- ['other', 'other research products'],
+ ['results', 'all ' + OpenaireEntities.RESULTS],
+ ['publications', OpenaireEntities.PUBLICATIONS],
+ ['datasets', OpenaireEntities.DATASETS],
+ ['software', OpenaireEntities.SOFTWARE],
+ ['other', OpenaireEntities.OTHER],
];
public funderContentType: string = '';
public funder: any = "";
@@ -101,6 +103,7 @@ export class OrganizationComponent {
subscriptions = [];
innerReportSubscriptions = [];
properties: EnvProperties;
+ public openaireEntities = OpenaireEntities
public indexUpdateDate: Date;
public showFeedback: boolean = false;
public feedbackFields: string [] = ['Name', 'Country', 'Other'];
@@ -545,8 +548,7 @@ export class OrganizationComponent {
}
private openLoading() {
- this.closeDownloadReportModal();
- this.closeDownloadFunderReportModal();
+ this.closeDownloadReportsModal();
if (this.loading) {
this.loading.open();
@@ -626,27 +628,16 @@ export class OrganizationComponent {
console.log(value);
}
- openDownloadReportModal() {
- this.downloadReportModal.cancelButton = false;
- this.downloadReportModal.okButton = false;
- this.downloadReportModal.alertTitle = "Download content report";
- this.downloadReportModal.open();
- }
+ openDownloadReportsModal() {
+ this.funder = this.fetchProjects.funders[0];
+ this.downloadReportsModal.cancelButton = false;
+ this.downloadReportsModal.okButton = false;
+ this.downloadReportsModal.alertTitle = "Download";
+ this.downloadReportsModal.open();
+ }
- closeDownloadReportModal() {
- this.downloadReportModal.cancel();
- }
-
- openDownloadFunderReportModal() {
- this.funder = this.fetchProjects.funders[0];
- this.downloadFunderReportModal.cancelButton = false;
- this.downloadFunderReportModal.okButton = false;
- this.downloadFunderReportModal.alertTitle = "Download funder report";
- this.downloadFunderReportModal.open();
- }
-
- closeDownloadFunderReportModal() {
- this.downloadFunderReportModal.cancel();
+ closeDownloadReportsModal() {
+ this.downloadReportsModal.cancel();
}
public openAddThisModal() {
diff --git a/searchPages/searchUtils/newSearchPage.component.html b/searchPages/searchUtils/newSearchPage.component.html
index af8c60a9..78f44256 100644
--- a/searchPages/searchUtils/newSearchPage.component.html
+++ b/searchPages/searchUtils/newSearchPage.component.html
@@ -155,7 +155,7 @@
+
@@ -211,7 +211,7 @@
search
-
+
0
|| (searchUtils.refineStatus == errorCodes.LOADING && searchUtils.status != errorCodes.LOADING)
|| (!hideFilters &&
diff --git a/searchPages/searchUtils/quick-selections.component.ts b/searchPages/searchUtils/quick-selections.component.ts
index 8feae1bf..9cb6e7db 100644
--- a/searchPages/searchUtils/quick-selections.component.ts
+++ b/searchPages/searchUtils/quick-selections.component.ts
@@ -11,7 +11,7 @@ import {OpenaireEntities} from "../../utils/properties/searchFields";
@Component({
selector: 'quick-selections',
template: `
-