Commit Graph

854 Commits

Author SHA1 Message Date
Konstantinos Triantafyllou 7d2eb68914 Add refreshToken and accessToken in userInfo. Add property for clientManagementAPI. Create jsonValidator 2023-06-26 11:31:22 +03:00
Konstantinos Triantafyllou 56428d0dae Merge branch 'develop' of code-repo.d4science.org:MaDgIK/openaire-library into develop 2023-06-23 15:25:24 +03:00
Konstantinos Triantafyllou 633716b832 Add progress circle as example in theme component 2023-06-23 15:25:17 +03:00
Konstantina Galouni 558357b03e [Library | develop]: full-screen-modal.component.ts: [Bug fix] Removed uk-invisible class from ok and cancel buttons section (wrong check and buttons never appeared) & Added uk-disabled class in back link. 2023-06-22 16:48:10 +03:00
Konstantina Galouni 1307b4d290 [Library | develop]: transferData.component: Removed "demo" label from data transfer. 2023-06-19 11:02:23 +03:00
Konstantina Galouni a0b4ccff23 Merge remote-tracking branch 'origin/develop' into data-transfer-v2 2023-06-13 16:12:56 +03:00
Konstantina Galouni 806cec4043 Library | data-transfer-v2: transferData.component: Added checkbox in the form of accepting the data protection policy 2023-06-13 16:10:06 +03:00
Konstantinos Triantafyllou e6d4be5454 Add client-management-portal in Dasbboard values of properties. 2023-06-07 17:34:53 +03:00
Konstantina Galouni 9852bdeebf Merge remote-tracking branch 'origin/develop' into data-transfer-v2 2023-06-07 14:52:05 +03:00
Konstantinos Triantafyllou bb8f196abb Disable local get calls in server because of network error and return empty element as a response. Fix bug in sdg with async calls. 2023-05-27 22:48:13 +03:00
Konstantina Galouni 3ee89e2bca [Library | develop]: ISVocabularies.service.ts: [Bug fix] In methods getFos() and getSDGs(), removed check and call to cache - these files are always local | sdg.component.ts: Set customFilter and pass it as parameter to <sdg>. 2023-05-26 14:37:34 +03:00
Konstantina Galouni d24576a5c7 [Library | develop & Eosc Explore | develop]: Added in eoscSubjects, "EOSC::Data Cube" | Updated eosc url params in landing for back "Go to Search" link - "return_path" and "search_params" (instead of pv).
1. parsingFunctions.class.ts: Added in eoscSubjects, subject "EOSC::Data Cube" (linked with Adam plarform).
2. result-preview.component.ts & fundedBy.component.ts & availableOn.component.ts & relatedDatasourcesTab.component.ts: Updated method "addEoscPrevInParams()" to add 2 parameters: "return_path" and "search_params" (instead of pv).
3. resultLanding.component.ts:
   a. Updated how this.prevPath is initialized (parse url params "return_path" and "search_params" instead of "pv").
   b. Added method "getEoscParams()" to return eosc params as a string (to be used in href).
   c. Updated method "addEoscPrevInParams()" to add 2 parameters: "return_path" and "search_params" (instead of pv).
4. project.component.ts & dataProvider.component.ts:
   a. Updated how this.prevPath is initialized (parse url params "return_path" and "search_params" instead of "pv").
   b. Updated method "addEoscPrevInParams()" to add 2 parameters: "return_path" and "search_params" (instead of pv).
5. organization.component.ts: Updated how this.prevPath is initialized (parse url params "return_path" and "search_params" instead of "pv").
6. metrics.component.ts: Added method "getEoscParams()" to return eosc params as a string (to be used in href).
2023-05-25 18:10:58 +03:00
Konstantinos Triantafyllou 39a7ed58be Properties: add hasMachineCache in order to use cookie or not. 2023-05-25 16:37:12 +03:00
Konstantina Galouni ab43152a6a [Library | data-transfer-v2]: For data transfer, open full screen modal instead of alert modal | Support transfer of hierarchical files | Show description in storage types.
1. full-screen-modal.component.ts: Added cancelButton: boolean = true; and show cancel button, only if cancelButton is true and okButton is false.
2. transferData.module.ts: Imported FullScreenModalModule.
3. transferData.component.html: Replaced <modal-alert> with <fs-modal> and updated the interface accordingly | In inputs, set [inputClass]="'flat'".
4. transferData.component.ts:
   a. Configure FullScreenModal, instread of AlertModal.
   b. In destinationOptions, set label to dest.description (used to be dest.destination).
   c. In transfer, in destinations, use also element.path, to keep the initial structure/ hierarchy when transfering files.
2023-05-16 16:36:43 +03:00
Konstantinos Triantafyllou 73f2215c07 Modal: Fix UIkit undefined in server 2023-05-11 13:04:09 +03:00
Konstantina Galouni 3be6013644 [Library | develop & Eosc Explore | develop]: index.html: Updated favicon for beta | transferData.component.ts: Added check for client side before opening Data Transfer modal. 2023-04-26 15:54:43 +03:00
Konstantina Galouni f22a0bc806 [Library | develop & Eosc Explore | develop]: Added font-family "Inter" to align with Marketplace | Updated how back button "Go to search" is build - combine referrer and the new url parameter "pv", which is expected to have the previous url path and params.
1. /assets: Added /media/fonts/inter folder with the "Inter" font-family.
2. eosc-custom.less: Override the default font family to use 'Inter', sans-serif.
3. routerHelper.class.ts: Added method "addQueryParam()" to add a query parameter in already existing or not object with parameters.
4. search-tab.component.ts & searchResult.component & projects-in-modal.component.ts & result/deletedByInference/deletedByInference.component.ts & organization/deletedByInference/deletedByInference.component.ts: Added @Input() prevPath: string = ""; and pass it to the appropriate children components.
5. result-preview.component & fundedBy.component.ts & availableOn.component.ts & relatedDatasourcesTab.component.ts: Added @Input() prevPath: string = ""; and method "addEoscPrevInParams()" and call it when building queryParams of internal links.
6. metrics.component.ts: Added @Input() prevPath: string = ""; and use it when building internal urls.
7. resultLanding.component.ts & project.component.ts & organization.component.ts & dataProvider.component.ts:
   a. Added fields public referrer: string; and public prevPath: string;
   b. Read "pv" url property and get referrer.
   c. Added methods "addEoscPrevInParams()" and "eoscBackLink()".
8. resultLanding.component.html & project.component.html & organization.component.html & dataProvider.component.html:
   a. Update "Go to Search" back link.
   b. Call "addEoscPrevInParams()" method when building queryParams of internal links.
   c. Pass "prevPath" to the appropriate children components.
2023-04-20 20:06:53 +03:00
Konstantinos Triantafyllou 9025836af4 Merge branch 'develop' of code-repo.d4science.org:MaDgIK/openaire-library into develop 2023-04-04 16:49:13 +03:00
Konstantinos Triantafyllou 4c328efa3a Merge branch 'monitor-production' into develop 2023-04-04 16:48:46 +03:00
Konstantinos Triantafyllou 133fdfbff2 Fix number pipe round in order to avoid round in numbers < 1000. Extend pipe to accept number in string format instead of number. 2023-04-04 16:48:05 +03:00
Konstantinos Triantafyllou 7ecb56ec98 Add getFos and getSDGs in vocabulary service and use it in the related components. 2023-04-03 12:53:40 +03:00
Konstantinos Triantafyllou c275d96e19 Merge branch 'connect-admin-production' into develop 2023-03-27 15:56:58 +03:00
Konstantinos Triantafyllou 18f95b7e13 Update URL validator regex in order to allow www2. 2023-03-27 15:56:42 +03:00
Konstantinos Triantafyllou a9f31d8307 1. Add notifications in user-mini in mobile 2023-03-24 17:13:33 +02:00
Konstantinos Triantafyllou 31d52de0e8 Merge branch 'monitor-production' into develop 2023-03-23 09:18:34 +02:00
Konstantinos Triantafyllou 4fa36bdd43 Fix server error in alert.ts where UIkit event handler is defined. 2023-03-23 09:18:19 +02:00
Konstantinos Triantafyllou 5bcc25fe84 Merge changes from monitor-production 2023-03-21 14:05:21 +02:00
Konstantinos Triantafyllou 8d3a83821b Modal: Add uikit close event, in order to catch click outside close events. 2023-03-21 14:00:47 +02:00
Konstantina Galouni aa5425d091 [Library | data-transfer-v2]: transferData.component.html: Updated labels - removed verbs & updated some checks based on new 'requests' field | transferData.component.ts: Get protocol from API for each storage & [Bug fix] in path validation & enhanced status values & updated how status request works - request max 10 times, expose always the status and after succeeding, failing or exceeding 10 requests, stop. 2023-03-16 20:55:12 +02:00
Konstantina Galouni 71b5964f2c [Library | data-transfer-v]: transferData.component: Updated input labels, added uk-grid-small for the two columns, destination url changed to destination system and protocol (https:// or s3://) is applied programmatically. 2023-03-15 10:53:19 +02:00
Konstantina Galouni bb6707cc0d [Library | data-transfer-v2]: transferData.component.ts: Added class field "s3UrlRegex" and updated s3 regex to accept any url starting from s3://, https://, http://, www. 2023-03-10 14:54:15 +02:00
Konstantina Galouni e02ac38b7c Merge remote-tracking branch 'origin/develop' into data-transfer-v2 2023-03-09 11:13:42 +02:00
Konstantina Galouni b25c6dd2f7 [Library | develop & EOSC Explore | master]: Redirect to eosc search for any page except landing | If property adminToolsPortalType is eosc, open search links to OpenAIRE Explore in a new tab.
1. home.component.html: Commented everything.
2. home.component.ts: Commented everything and added redirect to EOSC search.
3. app.component.ts: Commented <navbar>.
4. app-routing.module.ts: Removed unused routes | For any route other than landing, redirect to home page.
5. index.html: Removed BETA badge | Updated title from "Search OpenAIRE" to "Search EOSC".
6. errorPage.component.ts & relatedDatasourcesTab.component.ts & showAuthors.component.ts & search-tab.component.ts: If property adminToolsPortalType is eosc, open search page in OpenAIRE Explore in a new tab.
7. fos.component.ts & sdg.component.ts: If property adminToolsPortalType is eosc, open search page in OpenAIRE Explore in a new tab | If property adminToolsPortalType is eosc, do not show "feedback/suggest" link.
8. open-aire-jsonld-converter.service.ts: If property adminToolsPortalType is eosc, do not add fos and sdgs as doc.isPartOf.
2023-03-09 10:54:03 +02:00
Konstantina Galouni 029db9f52e [Library | data-transfer-v2]: transferData.component.ts: Scroll to message not only if transfer status was successful. 2023-03-07 15:43:49 +02:00
Konstantina Galouni cde97c09b9 [Library | data-transfer-v2]: transferData.component: Updated destination url check - for s3, protocol starts with s3://, not https://. 2023-03-07 13:17:36 +02:00
Konstantina Galouni ed856076d4 [Library | data-transfer-v2]: transferData.component.ts: Check we are on client side to open the modal | [Bug fix] In error message. 2023-03-03 15:12:26 +02:00
Konstantina Galouni b34f1cdfbf Merge remote-tracking branch 'origin/angular-14' into data-transfer-v2 2023-02-14 01:15:01 +02:00
Konstantina Galouni 95a87dcefd [Library | data-transfer-v2]: Use new transfer API to get destinations, do the transfer, request status of transfer | Updated messages and checks for buttons. 2023-02-13 19:39:08 +02:00
Alex Martzios 39a2549681 change path of vocabulary fos/sdgs 2023-02-08 11:31:47 +02:00
Konstantinos Triantafyllou da144c1c77 Round pipe: Make it HTML in order to add class in number's size 2023-01-13 11:33:53 +02:00
Konstantinos Triantafyllou 4cd5bcd12b Number round: Add decimal argument in order to be dynamic 2023-01-11 15:51:55 +02:00
Konstantinos Triantafyllou eddd7e00b9 Number round: Add level of round and round to 1 decimal 2023-01-11 15:35:13 +02:00
Konstantina Galouni 062f1a23c4 [Explore | master & Library | angular-14]: composer.ts: [Bug fix] Add parenthesis around ternary operator in method composeEmailForExplore() - empty or wrong body | contact-us.component.html: Added #captchaElem in <re-captcha> | contact-us.component.ts: Added ViewChild for captchaElem and added method "resetRecaptcha()" | contact.component.html: Added #contactUs in <contact-us> | contact.component.ts: Added ViewChild for contactUs and call contactUsComponent.resetRecaptcha() on reset method. 2023-01-10 02:25:03 +02:00
Konstantina Galouni 3c20944aec [Library | data-transfer-v2]: transferData.component: Get destinationOptions from API (/storage/types). 2023-01-05 19:14:26 +02:00
Konstantina Galouni 161052d97c Merge remote-tracking branch 'origin/angular-14' into data-transfer-v2 2023-01-04 13:36:54 +02:00
Konstantina Galouni 50543311f2 [Eosc Explore & Library | data-transfer-v2]: environment.ts: Updated eoscDataTransferDestinations to be like api response. | transferData.component: Updated destinationOptions and selectedDestination according to the updated eoscDataTransferDestinations. 2023-01-04 13:27:49 +02:00
Konstantinos Triantafyllou 92488d015b Add number-rounf pipe 2022-12-21 13:37:16 +02:00
Konstantina Galouni f91c3ba0fb [Library | angular-14]: loading.component.ts: [Bug fix] In ngOnDestory changed to document.getElementById("modal-container"). 2022-12-16 17:21:37 +02:00
Konstantina Galouni ce4b9273e0 [Library | angular-14 & Explore | master]: Updated request to Crossref for bulk uploaded DOIs in linking | Added link for more information to joomla article (Canada's request).
1. sdg.component.html: Added link for more information to joomla article (Canada's request).
2. timeout-interceptor.service.ts: Excluded from timeout interceptor  properties.searchCrossrefAPIURL and properties.searchDataciteAPIURL.
3. searchDatacite.service.ts: In method "getDataciteResultByDOI()", for requests coming from file uploaded in linking added timeout to 20 sec, and for other requests timeout similar to the interceptor (6 sec for production, 12 otherwise).
4. searchCrossref.service.ts: In method "searchCrossrefByDOIs()", added timeout similar to the interceptor (6 sec for production, 12 otherwise) | Added method "searchCrossrefByDOI()", called for requests coming from file uploaded in linking.
5. bulkClaim.component.ts: Call new API method for Crossref requests for DOIs | Fixed tooltip to appear.
2022-12-16 09:59:48 +02:00
Konstantinos Triantafyllou 437a5fa50d Smooth scroll: Fix headerOffset in mobile 2022-12-09 18:17:06 +02:00