rename Openaire entities, use them in the filters
This commit is contained in:
parent
2c83a666dc
commit
2dda0c1630
|
@ -56,8 +56,8 @@
|
|||
</ng-container>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
<li class="uk-margin-small-right">
|
||||
<span class="uk-label uk-flex uk-flex-middle uk-invisible" > <!-- adds space--></span>
|
||||
<li class="">
|
||||
<span class="uk-label uk-flex uk-flex-middle uk-invisible" >     <!-- adds space--></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@ import {PiwikService} from '../../utils/piwik/piwik.service';
|
|||
import {EnvProperties} from '../../utils/properties/env-properties';
|
||||
import {SEOService} from '../../sharedComponents/SEO/SEO.service';
|
||||
import {HelperService} from "../../utils/helper/helper.service";
|
||||
import {SearchFields} from "../../utils/properties/searchFields";
|
||||
import {OpenaireEntities, SearchFields} from "../../utils/properties/searchFields";
|
||||
import {RefineResultsUtils} from "../../services/servicesUtils/refineResults.class";
|
||||
import {RangeFilter} from "../../utils/rangeFilter/rangeFilterHelperClasses.class";
|
||||
import {ZenodoInformationClass} from "../../deposit/utils/zenodoInformation.class";
|
||||
|
@ -90,10 +90,10 @@ export class NewSearchPageComponent {
|
|||
@Input() formPlaceholderText = "Type Keywords...";
|
||||
@Input() resultTypes: Filter = null;
|
||||
resultTypeOptions = {
|
||||
"publications": {"id": "publication", "name": "Publications"},
|
||||
"datasets": {"id": "dataset", "name": "Research data"},
|
||||
"software": {"id": "software", "name": "Software"},
|
||||
"other": {"id": "other", "name": " Other research products"}
|
||||
"publications": {"id": "publication", "name": OpenaireEntities.PUBLICATIONS},
|
||||
"datasets": {"id": "dataset", "name": OpenaireEntities.DATASETS},
|
||||
"software": {"id": "software", "name": OpenaireEntities.SOFTWARE},
|
||||
"other": {"id": "other", "name": OpenaireEntities.OTHER}
|
||||
};
|
||||
selectedTypesNum = 0;
|
||||
@Input() quickFilter: { filter: Filter, selected: boolean, filterId: string, value: string };
|
||||
|
|
|
@ -768,13 +768,13 @@ export class FieldDetails {
|
|||
}
|
||||
|
||||
export enum OpenaireEntities {
|
||||
RESULTS = "Research outcomes",
|
||||
RESULTS = "Research products",
|
||||
PUBLICATIONS = "Publications",
|
||||
DATASETS = "Research data",
|
||||
SOFTWARE = "Software",
|
||||
SOFTWARE = "Research software",
|
||||
OTHER = "Other research products",
|
||||
PROJECTS = "Projects",
|
||||
ORGANIZATIONS = "Organizations",
|
||||
DATASOURCES = "Content Providers",
|
||||
DATASOURCES = "Datasources",
|
||||
COMMUNITIES = "Research communities"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue