Commit Graph

83 Commits

Author SHA1 Message Date
argirok c64df20405 [develop | DONE | ADDED] add orcid-core module, without the routing - use it in other components instead of orcid module 2024-03-14 09:28:33 +02:00
Konstantina Galouni efa0f72cc3 [develop | DONE | CHANGED]: isRouteEnabled.guard.ts, freeGuard.guard.ts: Added @Injectable({providedIn: 'root'}) | Removed from providers PreviousRouteRecorderm, isRouteEnabled, LoginGuard AdminLoginGuard, PiwikService & removed from imports PiwikServiceModule. 2024-02-28 16:45:23 +02:00
Konstantina Galouni 17e237c179 [develop | DONE | CHANGED]: Added routing modules (in library files) in Landing pages and in ORCID pages - imported the routing.module.ts in module.ts. 2024-02-28 14:33:44 +02:00
Konstantina Galouni 56faf6f6a4 [develop | DONE | FIXED]: orcid-work.component.ts: [Bug fix] Show tooltip when button is disabled & When in beta environment, do not call query to get put codes, always disable buttons and show tooltip about not available feature on beta. 2024-02-13 17:33:26 +02:00
argirok 0c85072ac3 [angular-16-irish-monitor | DONE | CHANGED] My orcid links: add option for custom link in discover more links, add property 2024-01-29 17:57:44 +02:00
Konstantina Galouni c202b7671b [angular-16-irish-monitor | WIP | CHANGED]: Changed checks for irish portal (use properties.dashboard - properties.adminToolsPortalType will be "country")
1. env-properties.ts: Added in Dashboard "irish" type and changed "irish" to "country" in PortalType.
2. connectHelper.ts & resultLanding.service.ts & manageStakeholders.component.html & indicators.component.ts & orcid-work.component.ts & entitiesSelection.component.ts & result-preview.component.ts: Updated check to properties.dashboard != "irish".
3. portalHelper.ts: Added "country" option in portalTypes.
2024-01-09 11:33:46 +02:00
argirok 8f009f3fee [angular-16-irish-monitor | DONE | ADDED] Orcid work: add check for consent in case of irish 2023-12-19 11:54:31 +02:00
argirok e900c28318 [angular-16-irish-monitor | DONE | CHANGED] Orcid-work: change deprecated Session isLoggedIn method 2023-12-19 11:07:55 +02:00
argirok 5060151e09 [angular-16-irish-monitor | DONE | CHANGED] update log Service, add log actions in claims and orcid links 2023-12-14 14:01:06 +02:00
Konstantinos Triantafyllou 3e02680f5e [angular-16-irish-monitor]: Add orcid in user class. Fix orcid button text. Remove capitalize from buttons in download and data dump. 2023-12-08 15:33:44 +02:00
Konstantina Galouni 68c352d3d2 [develop | DONE | CHANGED]: In deposit page, move "Go to repository" button to top, aligned with the title when possible.
1. searchResultsForOrcid.component.html & searchMyOrcidResults.component.html: Removed [promoteWebsiteURL]="true", since this should be true only in deposit cards.
2. searchResultsInDeposit.component.ts: Added @Input() isMobile: boolean = false;
3. searchResultsInDeposit.component.html: Set parameter [isMobile]="isMobile" to <result-preview>.
4. newSearchPage.component.html: Set parameter [isMobile]="mobile" to <deposit-result>.
5. result-preview.component.html: In deposit cards align on the right of the title the "Go to repository" button and in mobile screens show it on the top right of the card.
2023-11-08 22:40:04 +02:00
Konstantina Galouni 35b893e05e [angular-16 | DONE | FIXED]: In queries of results by pid, do not include pidtype restriction (some handle pids are resolved by doi regex, but no results returned for pidtype exact "doi"). 2023-10-30 10:53:19 +02:00
argirok 6958a8ef9b fix parameter for grant openaire access to Orcid 2023-09-18 12:23:33 +03:00
argirok 36a2f54193 comment out test orcid works 2023-08-09 11:53:31 +03:00
argirok 038adf352a change the way my orcid links are shown. Group together multiple results from the index, add update button to each one of them 2023-08-09 11:52:30 +03:00
Konstantina Galouni 6b2864ad02 [Library | develop]: entity-actions.component.ts & transferData.component.html & orcid-work.component.ts & resultLanding.component.html & project.component.html & organization.component.html & dataProvider.component.html: Added "tooltips/messages" under the landing actions in mobile-small screens. 2023-07-27 15:28:40 +03:00
Konstantinos Triantafyllou 37b7423e7f Simplify piwik logic: All work is done in piwik.service. 2023-07-12 15:05:25 +03:00
Konstantinos Triantafyllou 50422c0ab3 Merge remote-tracking branch 'origin/develop' into dynamic-piwik 2023-07-12 13:56:18 +03:00
Alex Martzios 8f492223d0 search page - results: add mobile actions, display authors and pids (but not in "other versions" section 2023-06-07 11:09:43 +03:00
Konstantina Galouni 9856805621 [Library | explore-redesign]: Fixes in usage counts iframes, bip iframe, orcid buttons in search results, filters button in small screens and fos/sdgs vocabulary calls.
1. dataProvider.component.html & project.component.html & resultLanding.component.html: [Bug fix] Updated checks for usage counts iframes and changed the order they appear (first views, then downloads).
2. dataProvider.component.ts & project.component.ts:
   a. [Bug fix] Added fields public hasViews: boolean = false; and public hasDownloads: boolean = false; - used in checks for displaying usage counts iframes.
   b. [Bug fix] Updated parsing of dataProviderInfo.measure.counts when querying external usage counts api.
3. resultLanding.component.ts:
   a. [Bug fix] Added fields public hasViews: boolean = false; and public hasDownloads: boolean = false; - used in checks for displaying usage counts iframes.
   b. [Bug fix] In bipFrameUrl, when environment == "beta", add "&src=beta" parameter.
4. orcid-work.component.ts:
   a. [Bug fix] Updated disabled class checks, to enable orcid buttons in search too when there are identifiers.
   b. When loading - action is in progress, show loading icon next to the label.
   c. In my orcid links page: renamed "Add to ORCID" to "Claim" and "Delete from ORCID" to "Remove".
5. newSearchPage.component.html: [Bug fix] Updated checks for "filters" floating button in mobile/ small screens.
6. Added method "detectChanges()" to be called by html.
7. navigationBar.component.html: Updated placeholder of search-input to align with the generic search form (Home page).
8. ISVocabularies.service.ts: [Bug fix] In methods getFos() and getSDGs(), removed check and call to cache - these files are always local.
2023-05-19 14:37:23 +03:00
Konstantinos Triantafyllou 49e2edfe84 Change piwik service methods in order to get the piwik from portal configuration 2023-04-26 14:10:45 +03:00
Konstantina Galouni 44e521cc8e [Library | explore-redesign]: Mobile redesign minor fixes for actions icons.
1. availableOn.component.ts: Make "arrow_right" and access right icons bigger in for mobile.
2. resultLanding.component.html: Set same ratio in all actions icons.
3. orcid-work.component.ts: Add margin small (not xsmall) when isMobile and landing.
2023-02-21 17:07:23 +02:00
Konstantina Galouni f9ff62f188 [Library | explore-redesign]: Mobile redesign for the 3 buttons at the bottom (main info, metrics, actions) and their contents.
1. availableOn.component.ts: Mobile redesign - open in full screen modal instead of drop | icons updated.
2. fos.component.ts: In mobile show {{title}} instead of hardcoded title.
3. resultLandingUtils.module.ts: Imported FullScreenModalModule.
4. deletedByInference.component.ts: Removed class "uk-list-divider" for <result-preview> - after redesign each result has its own bottom border.
5. orcid.module.ts: Imported FullScreenModalModule.
6. orcid-work.component.ts: Mobile redesign - Added full screen modals propagationFsModal and grantFsModal.
7. resultLanding.component.ts: Added citeFsModal, addThisFsModal, alertModalDeletedByInferenceFS and property public mobileContent: "info" | "metrics" | "actions" = "info".
8. resultLanding.component.html: Mobile redesign for the 3 buttons at the bottom (main info, metrics, actions).
2023-02-21 16:10:21 +02:00
Konstantinos Triantafyllou 238aafd552 Change results preview. Add hosted by, metrics in search results. Create entity-metadata for entity medata. 2023-02-17 19:40:05 +02:00
Alex Martzios c1fa0889ee progress in landing page (new metrics, tweaks for new action-bar) 2023-01-13 08:32:16 +02:00
Alex Martzios 871c45c480 progress on result-landing page and used components within it 2023-01-09 18:35:28 +02:00
Konstantina Galouni 508dac6c4d Merge origin/master into angular-14 branch 2022-11-29 14:13:29 +02:00
Konstantina Galouni e9e2ee9f3a [Library]: [Bug fix] Strip html tags for titles and descriptions and show them as innerHTML.
1. dataProvider.component.ts & organization.component.ts & project.component.ts & resultLanding.component.ts & orcid-work.component.ts: Commented unused @ViewChild fields.
2. dataProvider.service.ts & project.service.ts & resultLanding.service.ts: Strip html tags from title.
3. resultLanding.component.ts: [Bug fix] resultLanding.description is string, not array.
4. orcidWork.ts: [Bug fix] resultLanding.description is string, not array & strip html tags from description.
5. refineFieldResults.service.ts: In method "getSearchAPIURLForEntity()", for entityType "result" set suffix to "results/".
6. searchDataproviders.service.ts & searchOrganizations.service.ts & searchProjects.service.ts & searchResearchResults.service.ts: Strip html tags from title | Do not cut description (multi line ellipsis is used in html).
7. jsonld-document-serializer.service.ts: [Bug fix] resultLanding.description is string, not array.
8. result-preview.component.html: Show description as innerHTML to properly display special characters.
2022-11-28 19:22:01 +02:00
Konstantinos Triantafyllou 8677e9dcd5 Merge branch 'master' into angular-14 2022-10-12 16:41:16 +03:00
Konstantina Galouni d720178db3 [Explore]: orcid-work.component.ts: [Bug fix] Added [size]="'small'" input to <loading> | environment.ts: Updated port of orcidAPIURL (standalone service). 2022-10-12 16:36:33 +03:00
Konstantinos Triantafyllou 717ead02b2 Make some fixes after update to angular 12 2022-09-23 12:24:15 +03:00
Konstantina Galouni 2261f4ae6f [Library | new-theme]: orcidWork.ts: [Bug fix] When no resultLandingInfo.types, set work['type'] according to resultLandingInfo.resultType | icons.ts: [Bug fix] Remove unnecessary classes in orcid_add and orcid_bin icons - class had always the value of the first loaded icon (less problem). 2022-09-07 14:08:01 +03:00
Alex Martzios 66fecd2f41 make asynchronous calls for vocabularies when getting the result landing info 2022-09-06 16:28:51 +03:00
Konstantina Galouni d43f576d40 [Explore | Library | new-theme]: Added more refine filters in Repositories, Journals, Registries pages | Search & Datasource landing: Show not compatible datasources | Result Landing: get relations names by relationsVocabulary (dnet:relation_relClass.json).
1. env-properties.ts & environments/: Removed old properties searchLinkToEntityRegistriesDataProvidersTable and searchLinkToJournalsTable.
2. fetchDataproviders.class.ts & searchDataproviders.service.ts: Removed old unused methods related to subjects/ tables/ csv.
3. searchFields.ts: Added more refine filters in Repositories, Journals, Registries pages (COMPATIBLE_DATAPROVIDER_FIELDS, ENTITY_REGISTRIES_FIELDS, JOURNAL_FIELDS).
4. result-preview.component.ts: Added field @Input() deposit: boolean = false;
5. result-preview.component.html:
   a. Added link to landing page even for not compatible datasources.
   b. Added class "uk-label-danger" when compatibility = "not available" only when deposit=true.
6. searchResultsInDeposit.component.html: In <result-preview> added parameter deposit="true".
7. dataProvider.component.html:
   a. Added class "uk-label-danger" when compatibility = "not available".
   b. Show custom "Not yet registered" compatibility label when compatibility = "not available".
8. ISVocabularies.service.ts: Added methods for getting relationsVocabulary (dnet:relation_relClass.json).
9. resultLanding.service.ts & parsingFunctions.class.ts: When parsing relations, get relationName from relationsVocabulary.
10. resultLanding.component.ts: Get relationsVocabulary and pass it to "getResultLandingInfo()".
11. orcid-work.component.ts: When calling "getResultLandingInfo()", added null parameter for relationsVocabulary.
12. configuration.service.ts: [Bug fix] Added more checks in method "isPageEnabledByStateAsync()".
2022-08-03 18:21:14 +03:00
Konstantinos Triantafyllou f664c4a232 Orcid works: Change methods from private to puplic and remove uk-text-muted from disable orcid-button 2022-07-19 11:16:24 +03:00
Konstantinos Triantafyllou 01fd4ac49f Filters title alignment. Rename some component css files to less. 2022-07-17 16:01:39 +03:00
Konstantina Galouni 4d520d71fe [Library | new-theme]: Added scrolling in links and my links | set 403 on errorPage when private data | Show pid re3data lowercase.
1. displayClaims.component.ts & searchMyOrcidResults.component.ts: Added scrolling in my/all claims page and in my orcid links page.
2. errorPage.component.ts: Set statusMessage and statusCode to 403 when page is private.
3. showIdentifiers.component.ts: Do not add uk-text-uppercase for "re3data" pid.
4. myOrcidLinks.component.ts: In "No ORCID links found" added classes "uk-text-meta uk-text-large uk-text-center" instead of alert.
5. searchMyOrcidResults.component.html: Added condition if totalResults > 0 and previewResults > 0 for <no-load-paging>.
2022-06-27 12:00:30 +03:00
Konstantina Galouni fff6dffd88 [Library | new-theme]:
1. orcid.service.ts: [Bug fix] In method "getOrcidWorks()", updated response type from <any[]> to <any> --> "bulk" object with an array inside is returned.
2. orcid-work.component.ts: [Bug fix] In method "getOrcidWorks()", parsing of bulk works fixed to not have problem when null response or error object inside bulk is returned.
2022-06-20 16:55:05 +03:00
Konstantina Galouni dea00ca988 [Library | new-theme]: Bug fixes in orcid (when work was deleted from ORCID ui, problem in "View orcid work" button & on grant (when not granting, but click on logout, success notification was appearing) | Deleted unused code.
1. resultLanding.component.ts & resultLanding.service.ts: Deleted code related to Open Citations (unused and deprecated).
2. myOrcidLinks.component.ts & orcid-work.component.ts: [Bug fix] On method "openGrantWindow()", condition changed to show success notification if (ev.isTrusted && ev.origin == location.origin && ev.data == 'success') - notification was appearing on logout.
3. orcid-work.component.ts:
   a. In #workModal set large="true".
   b. [Bug fix] In method "getPutCode()", called in "View orcid work" button, added check and warning notification if response is null - used to open empty modal.
   c. [Bug fix] In handleError() method, messages fixed -- used to show ...with pids: {{title}}...
4. datasourcesHelper.class.ts: In method "getQueryPrefix()" deleted commented conditional code for the environment.
2022-06-20 15:56:29 +03:00
Konstantina Galouni 65bf435e12 [Library | Explore | new-theme]: Added a container for modals | Fixes in orcid modal | for journals and registries use common query for beta & prod.
1. app.component.ts: Added <div id="modal-container"></div>.
2. alert.ts: [Bug fix] Updated target container in modal to id #modal-container (get portal specific css and have a generic z-index).
3. datasourcesHelper.class.ts: In method getQueryPrefix(), have a common setting for beta & prod environments.
4. orcid-work.component.ts: In grant modal, removed uk-text-center class and added [overflowBody]=false.
2022-06-20 13:02:23 +03:00
Konstantina Galouni f974e91c25 [Explore & Library & openaire-theme | new-theme]: Updated parsing of classified subjects by using a vocabulary | Added parsing of instance.license in Download from | Added feedback functionality for fos and sdgs in landing | #7509 Parsing both citations and references fields | In "view all/less" links added chervon-right icon with class "view-more-less-link".
1. fos.component.ts & sdg.component.ts: Added method "urlEncodeAndQuote()" to encode and then quote a string.
2. fos.component.html & sdg.component.html:
   a. "Beta" badge was updated to yellow uk-text-large.
   b. Link to the simple search page instead of the advanced and urlEncodeAndQuote the parameter used in url.
3. link.css: Added class "view-more-less-link" to set on ::after "chevron_right" icon (not underlined on hover) - used in "view all/more/less" links.
4. dataProvider.component.html & project.component.html & fundedBy.component.ts & relatedTo.component.ts & showIdentifiers.component.ts & showAuthors.component.ts: In "view all/less" links added class "view-more-less-link" | Renamed "view more" to "view all".
5. feedback.component.html: Rename wording to be more positive: issues -> feedback, issue -> comment, report -> feedback.
6. feedback.component.ts: Added @Input() preSelectedField: string = ""; and set with it "field" on "addIssue()" (fos/sdg preselected for feedback).
7. availableOn.component.ts:
   a. In "view all/less" links added class "view-more-less-link".
   b. #7833 - Show instance.license information (as link when recognized as url, string otherwise).
8. landing-utils/fos.component.ts & landing-utils/sdg.component.ts:
   a. "Beta" word was updated to yellow uk-text-xsmall.
   b. In "view all/less" links added class "view-more-less-link".
   c. Added feedback functionality: link to feedback form.
9. showSubjects.component.ts:
   a. In "view all/less" links added class "view-more-less-link".
   b. Added "view all" functionality for classified subjects too.
10. resultLanding.component.html:
    a. In "view all/less" links added class "view-more-less-link" | Renamed "view more" to "view all"
    b. Added feedback functionality: link to feedback form - preselect in feedback form fos/sdg.
11. resultLanding.component.ts:
    a. Added public feedbackPreSelectedField: string = ""; field.
    b. Added method "feedbackClicked()".
    c. [Bug fix] In hasPrimaryInfo() added check for classifiedSubjects.
    d. Renamed getProvenanceVocabularyAndResultLandingInfo() to getVocabulariesAndResultLandingInfo() and call also this._vocabulariesService.getSubjectsVocabulary().
12. parsingFunctions.class.ts:
    a. #7196 - Updated parsing of subjects in method "parseAllSubjects()".
    b. #7833 - In method "parseHostedBy_collectedFrom()", added parsing for "license" field.
13. orcid-work.component.ts: On calling method "this.resultLandingService.getResultLandingInfo()", added null parameter for subject vocabulary.
14. searchFilter.module.ts: Import IconsModule.
15. searchFilter.component.html: Removed +/- form "view all/less" links and added class "view-more-less-link".
16. result-preview.ts: Added "licence?: string" in HostedByCollectedFrom.
17. ISVocabularies.service.ts:
    a. Added "private subjectsVocabulary: BehaviorSubject<any> = new BehaviorSubject<any>(null);" field and methods "getSubjectsVocabulary()", "getSubjectsVocabularyFromService()".
    b. Commented this.clearSubscriptions() from "getProvenanceActionVocabularyFromServiceAsync()".
18. resultLanding.service.ts:
    a. On subjects parsing, use subjectsVocabulary.
    b. #7509- Added if/then/else case for parsing citations (new name: references).
2022-06-09 16:45:39 +03:00
Konstantina Galouni b88c65a343 [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:55 +03:00
Konstantina Galouni 0f747829f0 [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
Konstantina Galouni 35d91a5fc6 [Aggregator & Library | new-theme]: Fixes in search forms and logo | Removed animation in card results | Added service landing links for incompatible datasources in eosc portal.
1. home.component.html:
   a. Removed uk-margin-large-top from search form and logo.
   b. Removed uk-height-medium from  search form and logo.
   c. Move searchImage on top of search form (uk-width-1-1) for small screens.
2. searchMyOrcidResults.component.html: Removed animation with uk-scrollspy.
3. searchAll.component.html: Move searchImage on top of search form (uk-width-1-1) for small screens.
4. newSearchPage.component.html:
   a. Removed animation with uk-scrollspy.
   b. For simple search, move searchImage on top of search form (uk-width-1-1) for small screens.
   c. For advanced search, searchImage is on top of search form for any screen size.
5. result-preview.component.html & result-preview.component.ts: For eosc portalType, added in incompatible datasources link to the service landing page.
6. aggregators.ts:
   a. In #searchImage commented custom margin-left.
   b. In #searchForm commented custom padding and width.
   c. Exclude also .uk-button-link from custom css for buttons with parent .search_box_bg or #searchForm.
2022-05-20 15:20:50 +03:00
Konstantina Galouni 9577c7841d [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
Konstantina Galouni 7d563c19a8 [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 8e0ae78383 update 'my links' and 'my orcid links' pages 2022-05-16 14:07:15 +03:00
Alex Martzios bb4c310ede add padding to footer's top side, change feedback/report issue message on landing pages. change ORCID text tooltip on landing pages, rename ACTIONS in landing pages 2022-05-13 14:51:53 +03:00
Konstantina Galouni bd6e141801 [Monitor Dashboard & Library | new-theme]: Renaming entity types using OpenaireEntities.
Files updated: develop.component.ts, methodology.component.ts,  claimEntitiesSelection.component.ts, directLinking.component.ts, linkingGeneric.component.html, linkingGeneric.component.ts, approved.component.ts, searchDataprovidersToDeposit.component.ts, errorPage.component.ts, dataProvider.component.html, dataProvider.component.ts, dataProvider.service.ts, relatedDatasourcesTab.component.ts, project.component.ts, myOrcidLinks.component.ts, searchMyOrcidResults.component.html, searchMyOrcidResults.component.ts, searchAll.component.html, searchAll.component.ts, advancedSearchForm.component.html, advancedSearchForm.component.ts, searchDataProviders.component.ts, searchResearchResults.service.ts, numbers.component.ts, other-portals.component.html, other-portals.component.ts, fetchDataproviders.class.ts, fetchResearchResults.class.ts, searchFields.ts, result-preview.component.ts
2022-05-09 13:13:44 +03:00
Konstantinos Triantafyllou 4e57dd41d2 Remove animation fade from results card and add scrollspy. Remove condition for selected filters sections 2022-05-06 13:47:54 +03:00