Commit Graph

175 Commits

Author SHA1 Message Date
Konstantina Galouni e658c5d23a [Library | new-theme]: Redesign of project landing page and small upadates on result landing and common components.
1. addThis.component.ts: Updated social icons of addThis.
2. landing-header.component.ts: Added "uk-text-small" in subtitle.
3. metrics.component.ts: Added method "clickedMetrics()" to set "metricsClicked" | Added metricsClicked and metrics.infos conditions for loading table or iframes | Added customContainerClass and customIframeClass in <i-frame>.
4. project.component: Updated project landing page according to UI redesign.
5. project.module.ts: Import LoadingModule, IconsModule, InputModule.
6. project.service.ts: Use parsingFunctions.parseDescription.
7. projectService.module.ts: iconsService.registerIcons([link, graph]).
8. resultLanding.component.html: Small fixes in ui | Added right arrow on tooltips of actions that are links to other pages | Display of description updated as innerHtml (#7345).
9. orcid-work.component.ts: Added flex=true in <icon>.
10. input.component.ts: Added disabled?: boolean in Option interface and show disabled options as muted.
11. projectInfo.ts: Updated description to be string[] instead of string.
12. iframe.component.ts: Added @Input() customContainerClass: string = ""; and @Input() customIframeClass: string = "";
13. search-tab.component.ts: Updated according to redesign | Update "getEntityName()" to return values from OpenaireEntities.
14. tabs.component.ts: Added "uk-height-1-1" in custom tabs | In #mytabs::before set left:0.
2022-04-28 12:13:06 +03:00
Konstantina Galouni 53d05bf54f [Explore & Library & Common Assets | new-theme]: Updates related to result landing redesign.
1. fos.component.css: Removed rule "mark.highlighted" and ".custom-bottom-border" updated with variables.
2. feedback.component.html: Updated width of email input for small screens.
3. parsingFunctions.class.ts: In "parseAllSubjects()" method, comment otherSubjects and push them in subjects.
4. showIdentifiers.component.ts: Updated classes in <modal-alert>.
5. showSubjects.component.ts: "Subjects by Vocabulary" and "Subjects" separated & view more functionality added in "Subjects".
6. resultLanding.component:
	a. Added button and modal for <addThis> (share in social media).
	b. View more functionality for related organizations.
	c. Graph and feedback section sticky.
	d. Added checks for summary tab and right sidebar.
	e. In small screens made right sidebar offcanvas.
7. resultLanding.module.ts: Updated iconsService.registerIcons to register link, graph, quotes.
8. orcid-work.component.ts: Added visually-hidden in icon buttons for landing | Updated classes in <modal-alert> and use buttons of alert instead of custom.
9. no-load-paging.component.ts: Use new component <results-and-pages> for results and pages number and set uk-flex-right in <paging-no-load> (default is center).
10. cookie-law.css: In ".cookie-law-wrapper" increased z-index from 100 to 1000.
11. showAuthors.component.ts: Removed shadow from search button | Updated classes in <modal-alert>.
12. icons.ts: Added "quotes" svg.
13. alert.ts: Updated modal to have header - body - footer (theme was updated too) | classTitle input set default to "uk-background-primary-opacity" | @Input() overflowBody: boolean = true; added to add overflow in body.
14. paging.module.ts: Added ResultsAndPagesNumComponent in declarations and exports.
15. pagingFormatter.component.ts: Add "uk-invisible" to previous and next buttons instead of hiding them.
16. pagingFormatterNoLoad.component.ts: Add "uk-invisible" to previous and next buttons instead of hiding them | Set customClasses default to "uk-flex-center".
17. tabs.component.ts: Updated margins/ paddings | Added @Input() offsetForSticky:number=0; to compare with the top distance for isSticky.
18. resultsAndPagesNum.component.ts: [NEW] Component to show number of results, number of pages and current page (used in paging).
19. landing-utils.css:
	a. Moved variables in .landing instead of :root.
	b. Added variable --landing-light-color-rgb: var(--light-color-rgb);
	c. Added glass filter in #graph_and_feedback.
	d. Set z-index of #main-tabs-div and #graph_and_feedback to 979 (default 980 caused problems with metrics box).
	e. Added padding-bottom: 80px and margin-top: 80px in .landing-sections.
	f. Added top rule for #right-sidebar-switcher.
	g. Added custom width rules for .landing-left-sidebar-width.
20. css-rules.txt: Added cookie-law-wrapper: 1000 info for z-index
21. explore-custom.css: Added variable --background-primary-rgb: var(--explore-color-rgb);
2022-04-20 17:40:18 +03:00
Konstantina Galouni e28e06b239 [Library & common-assets | new-theme]: Updates for redesign.
1. availableOn.component.ts: Updated class of title to "uk-text-light-grey" and added custom-external icon to links and updated accessright icons.
2. citation.class.ts: Added fileFormatOptions: Option[] to use it in input options.
3. citeThis.component.ts: Updated select inputs using "input" from InputComponent | Updated copy to clipboard button to link.
4. citeThis.module.ts: Import InputModule.
5. fos.component.ts: Updated class of title to "uk-text-light-grey".
6. fundedBy.component.ts: Updated class of title to "uk-text-light-grey" and updated links with uk-text-emphasis class.
7. landing-header.component.ts: Increase authorsLimit to 7 | Changed class of "under curation" to uk-text-primary (used to be custom class).
8. metrics.component.ts: Updated in clickOutside event.
parsingFunctions.class.ts: Updated open, closed and unknown with icon names instead of paths to svgs (download accessright icons).
9. relatedTo.component.ts: Updated class of title to "uk-text-light-grey" and added custom-external for links.
10. resultLandingUtils.module.ts: Inport AlertModalModule (to open modal).
11. sdg.component.ts: Updated class of titlte to "uk-text-light-grey".
12. showIdentifiers.component.ts: Added view more functionality.
13. showPublisher.component.ts: Updated custon-external class.
14. resultLanding.module.ts: registerIcon link.
15. resultLanding.component.html: Updated css for result landing and commented annotations (b2note).
16. orcid-work.component.ts: Updated orcid action button for landing page.
17. orcid.module.ts: registerIcons orcid_add and orcid_bin.
18. customOptions.class.ts: [Bug fix] [By Kostis] registryOptions() was not returning properly httpHeaders.
19. showAuthors.component.ts: Updated css
20. icons.ts: Export svgs orcid_add, orcid_bin, link.
21. alert.ts: Removed margin from title.
22. result-preview.component.html: Title of results set to <h2> and uk-h6 and when links to uk-link-heading | accessRightIcon for hostedBy_collectedFrom.
23. result-preview.module.ts: Imported IconsModule.
24. landing-utils.css: Updates in landing css & css of landing-action-button & added backdrop filter missing rules.
25. utils.css: Updated class orcid-clipboard-wrapper and renamed to clipboad-wrapper | Update class .custom-external to set in content with code instead of name and updated not to underline it on hover
26. library.css: Added class .default-dropdown with max-width: 500px;
2022-04-16 10:47:30 +03:00
argirok 0e8143b4e2 Merge branch 'new-theme' of code-repo.d4science.org:MaDgIK/openaire-library into new-theme 2022-04-12 18:18:57 +03:00
argirok 9d245840ad landing tabs - changes for the background color 2022-04-12 18:14:29 +03:00
Konstantina Galouni 322ee51e26 [Library & common-assets| new-theme]: Fixes in custom-external.
1. resultLanding.component.html: [Bug fix] In EGI Notebook, uk-text-uppercase should be in text (custom-external icon could not be loaded).
2. resultLanding.component.ts: Removed unnecessary log.
3. result-preview.component.html: Added properly "custom-external" class.
4. utils.css: In class "custom-external", set verical-align: super.
2022-04-12 16:52:49 +03:00
Konstantina Galouni 599f590b8e [Library | new-theme]: resultLanding.component.html: Linking action button updated to redirect to direct linking page. 2022-04-12 15:20:43 +03:00
Konstantina Galouni 4ddef450a8 [Library | new-theme]: [NEW] landing-utils/: Added fos.component.ts and sdg.component.ts | Redesign updates on availableOn.component.ts & fundedBy.component.ts & relatedTo.component.ts & resultLanding.component.html | resultLanding.component.ts: [Bug Fix] Updated how "isLoggeIn" is calculated (userManagementService.getUserInfo() instead of Session). 2022-04-12 15:15:04 +03:00
Konstantina Galouni 362dd1cc80 [Library | new-theme]: Delete fromYearAfterToYear.directive.ts, inValidYear.directive.ts, rangeYearsRequired.directive.ts directives from rangeFilter folder (validator functions moved to string-utils.class.ts (previous commit)). 2022-04-05 16:50:49 +03:00
Konstantina Galouni c4e6f6e09c [Library & Common-Assets | new-theme]: 1st version of restructure of result landing page according to redesign | Bug fix in method "hasMetrics".
1. landing-header.component.ts: Remove from <showTitle>, isH1 input.
2. metrics.component.ts: On metrics error, emit also "pageViews: 0".
3. showTitle.component.ts: Remove "isH1" input property and add in title class uk-h5 always.
4. resultLanding.component.html: Redesign (currently broken) of result landing page.
5. orcid-work.component.ts: Remove label "Add to / Remove from ORCID".
6. import.css: Import "landing-utils.css".
7. landing-utils.css: Comment all existing css rules and add new.
2022-04-04 12:14:54 +03:00
Konstantinos Triantafyllou e678ca1072 Merge from master 2022-03-21 14:39:34 +02:00
Konstantina Galouni 6c0724f026 Rename some result refine filter names and reorder them. 2022-03-17 15:13:07 +02:00
Konstantinos Triantafyllou e103ced738 Merge remote-tracking branch 'origin/master' into new-theme 2022-03-16 15:33:05 +02:00
Konstantina Galouni 6759508fb6 [Library]: Fixes (major: Parsing of organizations in result landing) & Addition of "FOS" and "SDGs" in result refine filters and result landing pages.
1. searchFields.ts: Added fos & sdg refine filters for research results.
2. resultLandingInfo.ts: Added string arrays "fos" and "sdg".
3. HelperFunctions.class.ts: Added method for sdg sorting (splits value, keeps only number before dot and compares numerically).
4. searchResearchResults.service.ts: [Bug fix] when parsing "dateofacceptance", stringify it only if it has a value.
5. searchFilter.component.ts: When sorting filters, sort differently SDGs.
6. resultLanding.service.ts:
	a. [Bug fix] Fix in parsing subtitle.
	b. [Bug fix] Parsing of "Related organizations" was accidentally deleted when parsing of relations changed.
	c. Parse "FOS" and "SDGs" in their specific fields, separately from subjects.
7. resultLanding.component.ts:
	a. [Bug fix] Do not make call for opencitations (deprecated).
	b. Updated method "hasPrimaryInfo()": Description is now array and added checks for organizations.
8. resultLanding.component.html: Display of "FOS" and "SDGs" separately from subjects.
9. showPublisher.component.ts: [Bug fix] Remove from html name of developer!
10. parsingFunctions.class.ts: Parse "FOS" and "SDGs" in their specific fields, separately from subjects.
11. metrics.component.ts: [Bug fix] Default value of "metricsClicked" should be false.
2022-03-15 23:31:10 +02:00
Alex Martzios e1a632e63f redesign of result-preview component 2022-03-15 13:13:28 +02:00
Konstantinos Triantafyllou 53a0cd733b Merge changes from master 2022-03-08 20:42:50 +02:00
argirok 0d66dab63e enable feedback when recaptcha key is available 2022-03-08 15:25:58 +02:00
Konstantinos Triantafyllou 4698a5fafd Delete old sidebar. Make some changes in navbar and user-mini 2022-03-02 23:48:21 +02:00
argirok dccf62d445 Update Abstract to be an array - fix issue with B2Find missing information 2022-02-14 17:04:09 +02:00
Alex Martzios 049ac1a8a1 add 'SDG' and 'FOS' as fields options - report issues 2022-02-04 13:01:54 +02:00
Konstantina Galouni ae970394e9 [Library]: resultLanding.component.html & result-preview.component.html: [Bug fix] In accessmode label added class "uk-text-truncate" to cut text and show ellipsis when larger that the available space. 2022-01-07 18:35:45 +02:00
Konstantina Galouni e1c520d65f [Library]: Altmetrics bug fix (more checks for previous commit) (from landing page with identifiers to landing page without: ERROR) | Updated parsing of relations in result landing page #7231.
1. result-preview.component.ts: Display relationName (added in beforeTitlte).
2. resultLandingInfo.ts: Added field "relatedResults" (replaced other structures for relations) and "relatedClassFilters".
3. resultLanding.component.html:
	a. In tab "Related research" show all relations.
	b. [Bug fix] Added check when accessing resultLandingInfo.identifiers for altmetrics.
4. resultLanding.module.ts: Import MatFormFieldModule and MatSelectModule for filtering relations in tab which shows all relations.
5. result-preview.ts:
	a. Added in class RelationResult "percentageName" (e.g. trust) and "relationName" (e.g. IsSupplementedBy) fields.
	b. Added in class ResultPreview "relationName" field (e.g. IsSupplementedBy).
	c. In method "relationResultConvert()", removed "relation" from parameters (included in RelationResult).
6. resultLanding.service.ts:
	a. Updated parsing of relations (parse all relations for research results).
	b. Updated sorting of relations.
7. resultLanding.component.ts: Handle updated relations and show them in one tab all together.
8. parsingFunctions.class.ts: Updated parsing of relations - parse all relations for results and keep the relationName and the percentageName.
2022-01-07 12:16:23 +02:00
Konstantina Galouni 8140beb701 [Library]: Altmetrics bug fix (from landing page with identifiers to landing page without: ERROR) | Instances model changed to merge common urls #7153 & #7156.
1. deletedByInference.service.ts: Call updated parsing method for hostedBy_collectedFrom.
2. result-preview.component.html: Updated display of hostedBy_collectedFrom (new schema).
3. availableOn.component.ts: Updated display of instances in download from section of result landing page (new schema - merged instances with common url and multiple collectedfrom & hostedby)
4. result-preview.ts: Updated class HostedByCollectedFrom (new schema).
5. resultLanding.service.ts:
	a. Updated parsing of hostedBy_collectedFrom (new schema).
	c. Updated sorting of hostedBy_collectedFrom.
6. resultLanding.component.ts:
	a. Use updated resultLandingInfo.hostedBy_collectedFrom to check if this result will be indexed or not.
	b. [Bug fix] Set hasAltmetrics to false when requesting a new id.
7. parsingFunctions.class.ts: Updated parsing of hostedBy_collectedFrom according to new schema.
2022-01-07 12:01:22 +02:00
argirok 5c215af73e Merge branch 'master' of code-repo.d4science.org:MaDgIK/openaire-library 2021-12-17 15:41:15 +02:00
argirok f911dec31e landing pages: keep the loaded url as canonical if there is a timeout error - show the correct message 2021-12-17 15:39:32 +02:00
argirok 55ec94b95f Subjects: add subjects section in home page. add 50 in the link to the search results
update login properties beta/test
Landing allow index off newly added records - zenodo
2021-12-17 14:35:18 +02:00
Alex Martzios 55f7167fb4 Change relatedTo and fundedBy component to match new mock - add dashboard links on resultLanding page 2021-11-23 10:44:36 +02:00
Alex Martzios cf08054ab5 connect links component visible only for dev enviroment 2021-11-11 12:11:45 +02:00
Alex Martzios cd3558f134 Modify component for the new connect gateway links card 2021-11-08 17:24:32 +02:00
Alex Martzios 389cd74ba5 Add regex to change error-causing XML character in a URL 2021-10-25 12:40:55 +03:00
argirok f854849462 Merge remote-tracking branch 'origin/master' 2021-10-06 16:24:23 +03:00
argirok a3299a3fe5 update urls for enermaps 2021-10-06 16:23:57 +03:00
argirok 9b6913c85c SEO: enable no-index filter for poor content 2021-10-04 13:20:18 +03:00
Konstantina Galouni 532be0e568 [Trunk | Explore]: 1. assets/common-assets: Added "eosc-logo.png" & deleted "egi-fed.notebook.png". 2. resultLanding.component.ts: Removed local styles for "notebook-button" class. 3. resultLanding.component.html: Logo and name of button for egi notebook updated. 4. parsingFunctions.class.ts: When "eosc jupyter notebook" is in subjects, show as classified subject (vocabulary) "EOSC: EOSC Jupyter Notebook" [Paolo's request]. 2021-09-29 14:34:03 +03:00
Konstantina Galouni aab0341bea [Explore | Trunk]: 1. dataProvider.service.ts & project.service.ts & resultLanding.service.ts & searchDataproviders.service.ts & searchOrganizations.service.ts & searchProjects.service.ts & searchResearchResults.service.ts: Removed case sensitivity in parsing relations (rels.rel.to.class). 2. orcid.service.ts: Removed unused imports | Added comment related to KPI metrics calculated by orcid API. 2021-09-27 12:19:24 +03:00
Konstantina Galouni 3e3379d038 [Trunk | Explore]: 1. parsingFunctions.class.ts: created field "notebookKeyword" to be compared with subjects. 2. resultLanding.component.html: Property "egiNotebookLink" is used for Notebook button on top right section. 3. env-properties.ts: Added property "egiNotebookLink". 4. environment.beta.ts & environment.ts: Added property "egiNotebookLink". 2021-09-27 12:14:17 +03:00
Konstantina Galouni ef8c330f7c [Library | Trunk]: 1. showSubjects.component.ts: Nothing but aligning code 2. parsingFunctions.class.ts: Added field "notebookInSubjects", which is set to true when "notebook" is included in subjects. 3. resultLandingInfo.ts: [New] "showEgiNotebookButton" property added. 4. resultLanding.service.ts: Set resultLandingInfo.showEgiNotebookButton. 5. resultLanding.component.html: Added Egi Notebook button on top right section of page (for beta Explore only). 6. resultLanding.component.ts: Added styles (background color) for new class "notebook-button". 2021-09-23 17:49:41 +03:00
Konstantina Galouni d80ac4904a [Connect]: resultLanding.service.ts: In method "getEnermapsDetails()", change url to /api/metadata (used to be /api/datasets). 2021-09-20 16:32:27 +03:00
argirok 9d65eaab72 update metrics API: use the new stats tool for both numbers & charts 2021-09-08 15:21:30 +03:00
Konstantina Galouni d7c7a18f51 [Connect]: 1. resultLanding.service.ts: Enermaps details as string. 2. resultLanding.component.html: In enermaps details, show "words" starting with "http://" or "https://" as links. 2021-08-23 17:55:30 +03:00
argirok 01edbef93c landing pages: update spam words list 2021-08-13 11:43:26 +03:00
argirok f51e47afa0 SEO - accessibility: more changes for accessibility, new manifest file 2021-08-11 13:59:50 +03:00
argirok 3d413cde2d SEO - accessibility: In images add alt, add specific width and height, in links add <span class="visually-hidden"></span> with descriptive text - not visible (add class in library.css) 2021-08-10 13:46:33 +03:00
Konstantina Galouni aea456942e [Library]: resultLanding.component.ts: In method "checkIfAllowed()", keep only "covid-19" in publicCommunitities array (no index only for covid-19 related results in Explore). 2021-08-10 12:49:23 +03:00
Konstantina Galouni b4b3e143bb [Explore Service]: resultLanding.component.ts: added "checkIfAllowed()" method to be called by sitemap script and by updated "addNoIndexFilter()" method | Added spam words in "title_authors_words" | Added "publicCommunities" array with public communities in production - no index results from these communities. 2021-08-06 14:10:42 +03:00
argirok 58b44c7bb0 strip HTML for research outcomes description (landing and search results), Update no-index filter (remove poor content filter, add filter for communities) 2021-07-26 13:05:36 +03:00
k.triantafyllou 08bf703186 [Library]: Move angular 11 to trunk. Remove no needed files. Delete angular upgrade branches
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61381 d315682c-612b-4755-9ff5-7f18f6832af3
2021-07-14 11:19:57 +00:00
konstantina.galouni c4e58f942c [Trunk | Library]:
1. env-properties.ts: Deleted property "enermapsAPIURL" (always used enermapsURL).
2. resultLanding.component.ts: Removed all usages of "enermapsAPIURL" and use "enermapsURL".
3. resultLanding.service.ts: In "getEnermapsDetails()" method, set url to properties.enermapsURL+"/api/datasets_full?shared_id=eq."+id;
4. parsingFunctions.class.ts: In "getEnermapsConceptId()" method, uncomment parsing of contexts to find enermaps id and commented a default id which was set.


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61231 d315682c-612b-4755-9ff5-7f18f6832af3
2021-06-16 08:19:16 +00:00
konstantina.galouni d79a202ed7 [Trunk | Library]: resultLanding.component.html: Added "uk-animation-fade" in enermaps details.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61030 d315682c-612b-4755-9ff5-7f18f6832af3
2021-05-20 14:11:35 +00:00
konstantina.galouni ac8381b004 [Trunk | Library]:
1. src/app/openaireLibrary/orcid/orcid-work.component.ts: [Bug fix] On ngOnInit() method, call getPutCode, only if(!this.givenPutCode && this.isLoggedIn).
2. src/app/openaireLibrary/utils/properties/env-properties.ts: Added field "enermapsAPIURL?: string".
3. src/app/openaireLibrary/utils/tabs/contents/search-tab.component.ts: Added <ng-content></ng-content> on top of <search-result>.
4. src/app/openaireLibrary/landingPages/project/project.component.html: Moved alert inside <search-tab> (was before it).
5. src/app/openaireLibrary/landingPages/result/resultLanding.service.ts: Added methods "getEnermapsDetails()" and "parseEnermapsDetails()" (hide "shared_id").
6. src/app/openaireLibrary/landingPages/result/resultLanding.component.ts: Added fields and methods to get enermpas details (only when properties.enermapsAPIURL is set).
7. src/app/openaireLibrary/landingPages/result/resultLanding.component.html: 
	a. [Bug fix] Capitalize first letter of title in "References" tab (in small tabs).
	b. When clicking on tab, call (selectedActiveTab)="onSelectActiveTab($event)".
	c. If available, show uk-list with enermaps details (key-value pairs).


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61021 d315682c-612b-4755-9ff5-7f18f6832af3
2021-05-19 09:36:09 +00:00