Commit Graph

897 Commits

Author SHA1 Message Date
Konstantinos Triantafyllou 8e056f5f4e Merge branch 'new-theme' of code-repo.d4science.org:MaDgIK/explore-services into new-theme 2022-06-09 16:23:11 +03:00
Konstantinos Triantafyllou 58d45c9088 Home: Add searchable at search form. Fos: Create fos options for autocomplete 2022-06-09 16:23:01 +03:00
Alex Martzios 95577038b7 update openaireLibrary repo 2022-06-09 16:10:18 +03:00
argirok 7962556b8f remove old properties file, remove metricsAPIURL from properties 2022-06-08 14:47:28 +03:00
Alex Martzios 8eeea3f913 change for SDGs card details 2022-06-07 12:19:35 +03:00
Konstantina Galouni a85c7781f2 [Explore | new-theme]: sdg.component: Use OpenaireEntities.RESULTS in cards. 2022-06-03 13:41:28 +03:00
Konstantina Galouni 1cbe7fd930 [Library | new-theme]: Create common methods to get entity name and entity file name from OpenaireEntities.
1. string-utils.class.ts:
   a. Added method "public static getEntityName(entityType: string, plural: boolean = false): string" to return OpenaireEntities name by entityType.
   b. Added method "public static getEntityFileName(entityType: string): string" to return OpenaireEntities file name by entityType.
2. directLinking.component.ts & dataProvider.component.ts & project.component.ts & resultLanding.component.ts & myOrcidLinks.component.ts & searchResearchResults.component.ts & result-preview.component.ts & search-tab.component.ts: Call StringUtils.getEntityName and StringUtils.getEntityFileName methods instead of checking if/then/else locally.
2022-06-03 13:01:56 +03:00
Konstantinos Triantafyllou 313daed2c9 Make some alignments in breadcrumbs in all pages. Home: On click event in dropdown of quickselections triggers focus in next input. 2022-06-02 17:46:39 +03:00
Alex Martzios 2434ef404d update openaireLibrary repo 2022-06-02 16:11:36 +03:00
Alex Martzios 28fc094785 update openaireLibrary repo 2022-06-02 15:17:45 +03:00
Konstantinos Triantafyllou f8098533aa Home: Stop propagation in dropdown click in order to stay open on inside click 2022-06-01 21:57:00 +03:00
Konstantinos Triantafyllou 160ad45d9b Merge branch 'new-theme' of code-repo.d4science.org:MaDgIK/explore-services into new-theme 2022-06-01 17:41:42 +03:00
Konstantinos Triantafyllou 11567b2593 Add focus next in home page search and activate dropdown when search is focused 2022-06-01 17:41:28 +03:00
Konstantina Galouni 0cac453cb1 [Library | new-theme]: Fix display of errorMessages | Use <landing-header> instead of <showTitle> in all landing pages | Stop sticky header before graph & feedback line | Fix bug in eoscSubjectsFound intialization - set it as local variable.
1. resultLanding.component.html & project.component.html & organization.component.html & dataProvider.component.html:
   a. Move errorMessages and loading inside center box.
   b. In center box, after graph & feedback line, set [style]="'margin-bottom: '+graph_height+'px'", so that sticky header stop before graph & feedback.
2. resultLanding.component.html: Removed "uk-height-1-1" class from center box.
3. organization.component.html & project.component.html: In sticky header use <landing-header> instead of <showTitle> (forgotten in commit 8b94b7f98a).
4. organization.component.ts & project.component.ts & resultLanding.component.ts: In errorMessage, use OpenaireEntities in singular.
5. parsingFunctions.class.ts: [Bug fix] Removed "eoscSubjectsFound" from class fields and set it as local variable - bug fixed on back and again on landing.
2022-06-01 15:29:19 +03:00
Konstantina Galouni 9bf87f1f74 [Library | new-theme]: parsingFunctions.class.ts: Added method "checkAndAddEoscSubject()" which is called for all subjects (classified or not) and sets eosc subjects when the label is found in "eoscSubjects". 2022-05-31 18:08:05 +03:00
Konstantina Galouni 4fca82fa33 [Library | new-theme]: orcid-work.component.ts & result-preview.component.html: result-preview card, fix bottom for small screens - v2. 2022-05-31 15:37:16 +03:00
Alex Martzios 82111c1012 update submodule 2022-05-31 12:45:43 +03:00
Alex Martzios e13c30aac5 remove duplicate logo and update openaireLibrary repo 2022-05-30 17:57:12 +03:00
Alex Martzios 950c9656d2 update repos 2022-05-30 16:53:59 +03:00
Alex Martzios 46df3681f5 added new logos for homepage slider 2022-05-30 16:53:13 +03:00
Konstantina Galouni 945e2c6fc7 [Library & openaire-theme & Explore | new-theme]: Beta indication in fos & sdgs (search, landing, dedicated pages) | Fixes in offcanvas and search all page for small screens.
1. badge.css: [NEW] Css file for uk-badge added.
2. import.css: Added @import "structure/badge.css";
3. fos.component.html & sdg.component.html: Added beta badge on top left of the title.
4. landing-utils/fos.component.ts & landing-utils/sdg.component.ts: Added [Beta] in title.
5. searchFields.ts: In sdg and fos RESULT_FIELDS, added [Beta] in their names.
6. offcanvas.css: [Bug fix] In rule .offcanvas .uk-offcanvas-bar added "max-width: 100vw", so that offcanvas does not exceed the screen width.
7. searchAll.component.html: Added some classes in <advanced-search-form> and uk-slider to be better displayed in small screens (form within page with some horizontal margins and arrows in slider).
2022-05-30 15:36:33 +03:00
Konstantina Galouni 0b53cea58a [Library | new-theme]: Allow also ?pid url parameter in datasource landing | Fixes in newSearchPage for service filters.
1. dataProvider.component.ts: [Bug fix] Allow also ?pid url parameter, query accordingly and set canonicalUrl to use it in seoService and scema2jsonld.
2. dataProvider.component.html: Set canonicalUrl into URL of <schema2jsonld> | Use <landing-header> instead of <showTitle>.
3. dataProvider.service.ts: Set url for querying a datasource by pid (if ?pid in landing url param) and parse also the whole record, the objIdentifier and the relcanId.
4. landing-header.component.ts: Added @Input() isSticky: boolean = false; to set less margins when sticky.
5. resultLanding.component.html: Use <landing-header> instead of <showTitle>.
6. resultLanding.component.ts: Use renamed Identifier.getResultPIDFromIdentifiers --> Identifier.getPIDFromIdentifiers.
7. metrics.service.ts: Removed console.log.
8. searchDataproviders.service.ts: Added parsing for relcanId.
9. dataProviderInfo.ts: Added relcanId, objIdentifier, record.
10. result-preview.component.ts: Use renamed Identifier.getResultPIDFromIdentifiers --> Identifier.getPIDFromIdentifiers.
11. string-utils.class.ts: Renamed Identifier.getResultPIDFromIdentifiers --> Identifier.getPIDFromIdentifiers.
12. [SITEMAPS] extractUrlsFromSearch.ts: Use renamed Identifier.getResultPIDFromIdentifiers --> Identifier.getPIDFromIdentifiers.
13. newSearchPage.component.ts: [Bug fix]
   a. entityType for datasources is "dataprovider".
   b. Added service filter options only when entityType == "service".
2022-05-30 10:39:10 +03:00
Alex Martzios 9406ad8152 add changes for FOS/SDGs url and breadcrumb 2022-05-25 09:08:41 +03:00
Alex Martzios 0a160b4f54 add openaireEntities and update submodule repo 2022-05-23 12:53:06 +03:00
Alex Martzios 74ce69909f uncheck research products categories by default 2022-05-20 12:36:29 +03:00
Konstantina Galouni 131bec9d17 [Library | new-theme]: Improvements & Do not show "Add to ORCID" button in search datasources with pids.
1. dataProvider.component.ts: In method "searchRelatedDatasources()", size can be always 0 (refine query).
2. advancedSearchForm.component.html: [Bug fix] Make all the button line clickable and functional in advanced search form.
3. result-preview.component.ts: Added get method "isResultType()" which checks if result.resultType is result, publication, dataset, software, other.
4. result-preview.component.html: [Bug fix] Call <orcid-work> (add/remove from ORCID buttons) only for results - check for identifiers is not enough, now datasources also have pids.
2022-05-19 19:08:04 +03:00
Alex Martzios a156e359f4 update openaireLibrary 2022-05-19 13:13:21 +03:00
Alex Martzios 29a321c302 redesign tweaks 2022-05-18 14:29:06 +03:00
Konstantina Galouni 40700daf24 [Explore & Library | new-theme]: Fixes for orcid dropdown in authors and increase timeout for addThis check for warning.
1. app.component.ts: [Bug fix] First menu item under "Search", set to OpenaireEntities.RESULTS.
2. searchFields.ts: Renamed OpenaireEntities.DATASOURCE to "Data source".
3. addThis.component.ts: [Bug fix] Check for showing warning was missing a not (!).
2022-05-18 12:31:46 +03:00
Konstantina Galouni 41b3db27a6 [common-assets & Library | new-theme]: Fixes for orcid dropdown in authors and increase timeout for addThis check for warning.
1. addThis.component.ts: [Bug fix] Increased timeout to 4 sec and fix check (sometimes innerText was undefined).
2. searchMyOrcidResults.component.html: [Bug fix] Removed uk-animation-fade from results and added uk-scrollspy.
3. showAuthors.component.ts: [Bug fix] Fixed copy to clipboard - data-clipboard-target was not working because we have multiple clipboards in the same page (reverted code to old way of copying).
4. timeout-interceptor.service.ts: Reverted timeout time for client.
5. utils.css: Added custom css for .orcid-dropdown input (orcid dropdown in authors).
2022-05-17 12:15:15 +03:00
Alex Martzios e4e2c0aeba make graph-section image more responsive 2022-05-17 11:40:21 +03:00
Alex Martzios f00aa33dda lowercase last 's' of SDGs button 2022-05-17 11:20:29 +03:00
Alex Martzios 6b0fe12bca tweak for hero section's input width 2022-05-17 11:17:41 +03:00
Alex Martzios f3c18b7779 revert homepage hero section tweaks 2022-05-17 10:44:26 +03:00
Alex Martzios 1d27a50be3 homepage - hero section tweaks 2022-05-17 09:44:05 +03:00
Konstantina Galouni 3be9891320 [Explore & Library | new-theme]: Updates of paging in claims and orcid links pages | Fixes for server side rendering.
1. fos.component.ts & sdg.component.ts: [Bug fix] Added properties.domain as prefix in request for vocabulary - Network error on server.
2. displayClaims.component.html: Used <results-and-pages> before results and <paging-no-load> after results.
3. searchMyOrcidResults.component.html: After results use <paging-no-load>.
4. displayClaims.module.ts & searchMyOrcidResults.module.ts: Imported NoLoadPaging.
5. dataProvider.component.ts & organization.component.ts & project.component.ts & resultLanding.component.ts: [Bug fix] Fixed checks in ngAfterContentChecked, not to run on server.
6. dataProvider.service.ts: Added check if there are subjects.
7. orcid-work.component.ts: [Bug fix] On search view, add classes uk-button uk-button-link in orcid actions.
8. newSearchPage.component.ts: Removed console.log.
2022-05-17 00:31:28 +03:00
Alex Martzios b18a4d0229 update openaireLibrary 2022-05-16 14:07:45 +03:00
Konstantinos Triantafyllou 27a1ea7029 Add explore logo as SVG 2022-05-13 15:46:23 +03:00
Alex Martzios 5366439647 content changes based on Natalia's suggestions 2022-05-13 14:52:10 +03:00
Konstantinos Triantafyllou 6fe5f8763f Add errorLink property 2022-05-12 12:25:10 +03:00
Alex Martzios 9bd05cf1e2 update to the correct fos icon file 2022-05-09 16:23:43 +03:00
Konstantina Galouni ae11528b5c [Library | new-theme]: Updated look of message when errorCodes.NONE in <errorMessages>.
1. projects-in-modal.component.ts: Use OpenaireEntities in <errorMessages>.
2. errorMessages.component.ts: Updated look of message when errorCodes.NONE: large, meta text which is center and middle aligned instead of alert.
2022-05-06 12:27:24 +03:00
Konstantinos Triantafyllou 02de663dd2 Add condition for observer to avoid server error 2022-05-06 10:53:02 +03:00
Konstantina Galouni 4a6d39d4e9 [Library & common-assets | new-theme]:
1. landing-utils.css: Deleted .landing-background-default-color (replaced in html with uk-background-default).
2. resultLanding.component.html & project.component.html & organization.component.html & dataProvider.component.html: Updates and fixes for redesign.
   a. #graph_and_feedback outside margins and checks (invisible when no info).
   b. [Bug fix] margin-top of center column fixed (uk-sticky-placeholder was adding space).
   c. [Bug fix] Show again right sidebar when screen becomes medium+.
   d. [Bug fix] Added grid in labels.
3. resultLanding.component.ts & project.component.ts & organization.component.ts & dataProvider.component.ts: Added ResizeObserver and updated how graph_offset is calculated | Added graph_height field to set margin-top of center column.
4. project.component.ts: In getFileNameType() use OpenaireEntities.
5. organization.component.ts:
   a. In contentTypes field added type file names from OpenaireEntities
   b. Added field contentFileName.
   c. Added field shouldSticky and observer for "bottom" to stop sticky title & tabs when bottom is in viewport.
6. dataProvider.component.ts: Added field "provenanceUrls" and method "getProvenanceUrls()" to flatten all urls from dataProviderInfo.provenance.
2022-05-05 20:54:01 +03:00
Konstantina Galouni b924e564bb [Library | new-theme]: Use OpenaireEntities in search pages
1. newSearchPage.component.html: In graph and feedback, replace uk-text-muted with uk-text-meta and add uk-margin-large-top.
2. datasourcesHelper.class.ts & searchDataProviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts & searchResearchResults.component.ts: Use OpenaireEntities for result type names.
2022-05-05 20:35:08 +03:00
Konstantina Galouni ec2482e6af [Library | new-theme]:
1. searchDataproviders.service.ts & searchProjects.service.ts: Updated parsing of description (like in services for landing, use ParsingFunctions.parseDescription()).
2. searchFields.ts: Added in OpenaireEntities enum values for type names in files.
3. open-aire-jsonld-converter.service.ts:
   a. Updated parsing of description in methods convertProject() and convertDatasource() - use ParsingFunctions.parseDescription().
   b. In convertDatasource() method set "otherUrl" (not push it) in sameAs (on next commit, dataprovider landing sents all provenance urls as array).
4. jsonld-document-serializer.service.ts: [Bug fix] Added check in "serializeDescription()" method.
2022-05-05 20:29:55 +03:00
Alex Martzios 20e1e5d735 homepage tweaks and new images 2022-05-05 15:29:29 +03:00
Alex Martzios 620360fa94 tweak for homepage - scroll animation 2022-05-05 13:45:07 +03:00
Konstantinos Triantafyllou 9734b93f7a Add mutation observer to handle active text in scrolling section 2022-05-05 11:33:01 +03:00
Alex Martzios 47a96f93f4 general tweaks after Aristotelis call 2022-05-05 09:32:39 +03:00