[Eosc Explore]: Updated some styles | Replaced "datasourcetypeuiname" field with "eoscdatasourcetype" | Do not add hardcoded compatibility label "Not yet registered" | Bug fix in Access filter

1. styles.less: Renamed from styles.css and added imports of less files and portal-custom.css (to be updated).
2. angular.json: In styles configuration added styles.less.
3. index.html & beta/index.html: In beta badge, used background instead of background-color to css rules.
4. portal-custom.css: Added rule for .search-form to inherit color in background.
5. searchFields.ts:
   a. Replaced "datasourcetypeuiname" field with "eoscdatasourcetype" for datasources refine filter "Type".
   b. In method "getResultAdvancedFields()" return always RESULT_ADVANCED_FIELDS without excluding "eoscifguidelines".
6. datasourcesHelper.class.ts: Replaced "datasourcetypeuiname" field with "eoscdatasourcetype" for datasources queries and used updated type names "Research Entity Registry" (old "Registry") and "Journal Archive" (old "Journal archive").
7. cache-interceptor.service.ts: Updated cachingRequests array, using new "eoscdatasourcetype" and its values.
8. dataProvider.component.html && result-preview.component.html: Do not add hardcoded compatibility label "Not yet registered" and updated checks.
9. resultLanding.service.ts & parsingFunctions.class.ts: Parse resultLandingInfo.eoscSubjects only by "eoscifguidelines" field not "subjects".
10. searchFilter.component.ts: [Bug fix] In Access filter, fixed bug in view all, when clearing the preselected value.

* Do not forget to add in package.json in devDependencies, "@types/express-serve-static-core": "4.17.28"
This commit is contained in:
Konstantina Galouni 2022-09-30 14:51:00 +03:00
parent a9f5e07cbb
commit 1530ce60ec
7 changed files with 22 additions and 9 deletions

View File

@ -46,7 +46,7 @@
"src/robots.txt" "src/robots.txt"
], ],
"styles": [ "styles": [
"src/styles.css", "src/styles.less",
"src/material.scss" "src/material.scss"
], ],
"scripts": [ "scripts": [
@ -182,7 +182,7 @@
"tsConfig": "src/tsconfig.spec.json", "tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js", "karmaConfig": "src/karma.conf.js",
"styles": [ "styles": [
"src/styles.css" "src/styles.less"
], ],
"scripts": [], "scripts": [],
"assets": [ "assets": [

@ -1 +1 @@
Subproject commit 032b91ae7a78ccad72a3a02a9463f6df5d00d223 Subproject commit a2466083683df7dfafb074221b27189bfbed9565

View File

@ -68,3 +68,8 @@
.number { .number {
color: #1d1d1d; color: #1d1d1d;
} }
.search-form {
background-color: inherit !important;
background-image: none !important;
}

View File

@ -42,7 +42,7 @@
<title>EOSC Explore</title> <title>EOSC Explore</title>
</head> </head>
<body> <body>
<div class="uk-badge" style="border: 0px; border-radius: 0px; background-color: #bc2300 !important; position: absolute; z-index: 1000;">Beta instance</div> <div class="uk-badge" style="border: 0px; border-radius: 0px; background: #bc2300 !important; position: absolute; z-index: 1000;">Beta instance</div>
<div class="uk-offcanvas-content uk-height-viewport"> <div class="uk-offcanvas-content uk-height-viewport">
<eosc-common-main-header></eosc-common-main-header> <eosc-common-main-header></eosc-common-main-header>

View File

@ -43,7 +43,7 @@
<title>Search OpenAIRE</title> <title>Search OpenAIRE</title>
</head> </head>
<body> <body>
<div class="uk-badge" style="border: 0px; border-radius: 0px; background-color: #bc2300 !important; position: absolute; z-index: 1000;">Beta instance</div> <div class="uk-badge" style="border: 0px; border-radius: 0px; background: #bc2300 !important; position: absolute; z-index: 1000;">Beta instance</div>
<div class="uk-offcanvas-content uk-height-viewport"> <div class="uk-offcanvas-content uk-height-viewport">
<eosc-common-main-header></eosc-common-main-header> <eosc-common-main-header></eosc-common-main-header>
<app-root></app-root> <app-root></app-root>

View File

@ -1,4 +0,0 @@
/* You can add global styles to this file, and also import other style files */
@import "assets/openaire-theme/css/import.css";
@import "assets/common-assets/library.css";
@import "assets/portal-custom.css";

12
src/styles.less Normal file
View File

@ -0,0 +1,12 @@
///* You can add global styles to this file, and also import other style files */
//@import "assets/openaire-theme/css/import.css";
//@import "assets/common-assets/library.css";
//@import "assets/portal-custom.css";
/* You can add global styles to this file, and also import other style files */
@import "~src/assets/openaire-theme/less/_import";
@import "~src/assets/common-assets/less/general";
@import "~src/assets/common-assets/less/user";
@import "~src/assets/common-assets/less/linking";
@import "~src/assets/common-assets/less/landing";
@import "assets/portal-custom.css";