eosc-explore/src/app/searchPages/simple/searchProjects.component.ts

20 lines
677 B
TypeScript
Raw Normal View History

import {Component} from '@angular/core';
import {properties} from "../../../environments/environment";
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties";
[Aggregator | new-theme]: Use of properties.errorLink | Link to simple/advanced page dark or not depending on background. 1. directLinking-routing.module.ts & linking-routing.module.ts & myClaims-routing.module.ts & deposit-routing.module.ts & searchDataProviders-routing.module.ts & errorPage.component.ts & dataProvider-routing.module.ts & dataset-routing.module.ts & organization-routing.module.ts & orp-routing.module.ts & project-routing.module.ts & publication-routing.module.ts & result-routing.module.ts & service-routing.module.ts & advancedSearchDataProviders-routing.module.ts & advancedSearchOrganizations-routing.module.ts & advancedSearchProjects-routing.module.ts & advancedSearchServices-routing.module.ts & searchResearchResults-routing.module.ts & searchDataProviders-routing.module.ts & searchOrganizations-routing.module.ts & searchProjects-routing.module.ts & searchResearchResults-routing.module.ts & searchServices-routing.module.ts: Replaced /error path with properties.errorLink. 2. advancedSearchDataProviders.component.ts & advancedSearchOrganizations.component.ts & advancedSearchProjects.component.ts & advancedSearchServices.component.ts & searchResearchResults.component.ts & search.component.ts & searchDataproviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts & searchResearchResults.component.ts & searchServices.component.ts: Added field searchForm: SearchForm, which sets dark to false for eosc, otherwise true - this is passed to the corresponding search component.
2022-05-18 14:13:42 +02:00
import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearchPage.component";
@Component({
selector: 'openaire-search-projects',
template: `
<search-projects [hasPrefix]="false" [searchForm]="searchForm"></search-projects>
`
})
export class OpenaireSearchProjectsComponent {
[Aggregator | new-theme]: Use of properties.errorLink | Link to simple/advanced page dark or not depending on background. 1. directLinking-routing.module.ts & linking-routing.module.ts & myClaims-routing.module.ts & deposit-routing.module.ts & searchDataProviders-routing.module.ts & errorPage.component.ts & dataProvider-routing.module.ts & dataset-routing.module.ts & organization-routing.module.ts & orp-routing.module.ts & project-routing.module.ts & publication-routing.module.ts & result-routing.module.ts & service-routing.module.ts & advancedSearchDataProviders-routing.module.ts & advancedSearchOrganizations-routing.module.ts & advancedSearchProjects-routing.module.ts & advancedSearchServices-routing.module.ts & searchResearchResults-routing.module.ts & searchDataProviders-routing.module.ts & searchOrganizations-routing.module.ts & searchProjects-routing.module.ts & searchResearchResults-routing.module.ts & searchServices-routing.module.ts: Replaced /error path with properties.errorLink. 2. advancedSearchDataProviders.component.ts & advancedSearchOrganizations.component.ts & advancedSearchProjects.component.ts & advancedSearchServices.component.ts & searchResearchResults.component.ts & search.component.ts & searchDataproviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts & searchResearchResults.component.ts & searchServices.component.ts: Added field searchForm: SearchForm, which sets dark to false for eosc, otherwise true - this is passed to the corresponding search component.
2022-05-18 14:13:42 +02:00
properties: EnvProperties;
[Library | EOSC Explore]: Updated styles | Updated link to Marketplace for EOSC::RO-crate | Bug fix in description of results versions | Removed timeout from reports.service.ts. 1. home.component.html: Added blue banner, white logo, aligned search form to the center and updated fonts according the new EOSC Marketplace. 2. parsingFunctions.class.ts: Updated link to Marketplace for eosc subject EOSC::RO-crate. 3. resultLanding.component.html: Updated how links to Compatible EOSC Services are displayed. 4. searchAll.component.html: Updated paddings and margins in search form of Search all page. 5. navigationBar.component.html: Set burger menu icon to light color if dark background. 6. advancedSearchDataProviders.component.ts & advancedSearchOrganizations.component.ts & advancedSearchProjects.component.ts & advancedSearchServices.component.ts & searchResearchResults.component.ts & searchDataproviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts & searchResearchResults.component.ts & searchServices.component.ts & search.component.ts: Set in searchForm, dark=true. 7. aggregators.ts: In eoscInfo, updated logoUrl and removed customCss of AggregatorInfo. 8. app.component.ts: Set header.darkBg: true. 9. Added eosc-custom.less file. 10. styles.less: import eosc-custom less file, instead of portal-custom.css. 11. deletedByInference.service.ts & result-preview.ts: [Bug fix] Parse description of versions properly. 12. reports.service.ts: Copy fix from angular-14 branch - do not timeout to 10000.
2022-11-28 13:37:37 +01:00
public searchForm: SearchForm = {class: 'search-form', dark: true};
[Aggregator | new-theme]: Use of properties.errorLink | Link to simple/advanced page dark or not depending on background. 1. directLinking-routing.module.ts & linking-routing.module.ts & myClaims-routing.module.ts & deposit-routing.module.ts & searchDataProviders-routing.module.ts & errorPage.component.ts & dataProvider-routing.module.ts & dataset-routing.module.ts & organization-routing.module.ts & orp-routing.module.ts & project-routing.module.ts & publication-routing.module.ts & result-routing.module.ts & service-routing.module.ts & advancedSearchDataProviders-routing.module.ts & advancedSearchOrganizations-routing.module.ts & advancedSearchProjects-routing.module.ts & advancedSearchServices-routing.module.ts & searchResearchResults-routing.module.ts & searchDataProviders-routing.module.ts & searchOrganizations-routing.module.ts & searchProjects-routing.module.ts & searchResearchResults-routing.module.ts & searchServices-routing.module.ts: Replaced /error path with properties.errorLink. 2. advancedSearchDataProviders.component.ts & advancedSearchOrganizations.component.ts & advancedSearchProjects.component.ts & advancedSearchServices.component.ts & searchResearchResults.component.ts & search.component.ts & searchDataproviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts & searchResearchResults.component.ts & searchServices.component.ts: Added field searchForm: SearchForm, which sets dark to false for eosc, otherwise true - this is passed to the corresponding search component.
2022-05-18 14:13:42 +02:00
constructor ( ) {}
ngOnInit() {
this.properties = properties;
}
}