Commit Graph

146 Commits

Author SHA1 Message Date
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
argiro.kokogiannaki b9af858885 [Library|Trunk]
Result landing: SEO fix: improve spam filter for authors (names that include 'nn')


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61000 d315682c-612b-4755-9ff5-7f18f6832af3
2021-05-13 09:51:46 +00:00
argiro.kokogiannaki d97a4d6f69 [Library | Trunk]
Search pages: 
	updating canonical url with filters
	update title with filter values



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60976 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-28 15:54:30 +00:00
argiro.kokogiannaki e34c5d4daa [Library|Trunk]
Checks for PIDs:
 - Landing page, ORCID page: add looser rule for pids (if not valid set it is a doi) 
 - String utils: Identifier.isValidDOI add generic rule doi starting with "10."



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60970 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-26 09:42:41 +00:00
konstantina.galouni a45915230c [Trunk | Library]: resultLanding.component.html & result-preview.component.html: [Bug fix] Remove check "&& properties.environment != 'production')" when "properties.adminToolsPortalType == 'community'".
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60939 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-21 11:09:40 +00:00
argiro.kokogiannaki 78f6d85d45 [Library|Trunk]
- Result landing: allow get result from input instead of the service.
- FetchResearchResults class: getResultsForCommunity add check for current year when sorting on date
- Customization checkForObsoleteVersion: add extra check




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60883 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-16 09:59:54 +00:00
argiro.kokogiannaki b78a463c5e [Library|Trunk]
- My orcid links: add piwik module
- comment consoles in Result landing


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60859 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-13 14:37:28 +00:00
argiro.kokogiannaki 635df208d8 [Library|Trunk]
SEO: use canonical url for jsonld in result/organization landing



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60854 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-13 12:52:58 +00:00
k.triantafyllou 7533e7d3ff [Library | Trunk]: PIDs add title, fix truncate on 2 lines. Remove input properties
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60852 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-13 12:33:40 +00:00
argiro.kokogiannaki ba496417ce [Library|Trunk]
SEO - robots filter: check for empty values



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60842 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-12 15:38:21 +00:00
argiro.kokogiannaki 8cdeb0e9ca [Library|Trunk]
Orcid: add orcid button also for community dashboards


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60837 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-12 13:43:33 +00:00
argiro.kokogiannaki a8a8ba4016 [Library|Trunk]
Metrics:
  add back the Openaire views

SEO:
 - Landing: encode pid in canonical url
 - result preview: single encoding in pid url

Enermaps Integration:
 - update landing tab
 - update look for tool url



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60826 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-09 15:39:42 +00:00
argiro.kokogiannaki e6d0721fb8 [Library|Trunk]
Tabs: 
 - use CustomClass directive instead of statistics
 - update it  in landing pages

Enermaps Integration:
 - Result LAnding at a new tab with enermaps tool
 - Image on the left of the result preview component



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60814 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-08 10:50:11 +00:00
argiro.kokogiannaki 84f4ca48fa [Library|Trunk]
Metrics:
- comment Openaire views



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60789 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-05 10:49:47 +00:00
argiro.kokogiannaki 3ef2e0168d [Library|Trunk]
Enermaps integration:
- parse enermaps id
- show in results and in landing (to be revised)
- add enermaps url property
- add function to query all results for community id/ context




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60783 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-02 09:17:00 +00:00
argiro.kokogiannaki 56081c33da [Library|Trunk]
- Cache Interceptor service: add explore home page search queries (stats numbers)
- Result Landing: enhance noindex filter (avoid common title/authors/abstract)
- Search module: remove unused module



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60750 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-30 11:50:15 +00:00
argiro.kokogiannaki 536f633de5 [Library | Landing]
Landing Metrics: make sure that iframes for metrics get the proper id (in case of pid parameter)



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60669 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-18 15:25:02 +00:00
argiro.kokogiannaki eb314179d3 [Library|Trunk]
SEO: update list of words for no-index filter add check about abstract



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60668 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-18 15:19:22 +00:00
argiro.kokogiannaki 3f64157136 [Library|Trunk]
- piwik update: for result landing create custom url using the url format with the dedup id 
- result landing service: url encode pid for search service
- update message for orcid 



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60625 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-11 13:27:30 +00:00
konstantina.galouni 07b659525e [Trunk | Library]: deletedByInference.service.ts & resultLanding.service.ts & searchResearchResults.service.ts: [Bug fix] In parsing <creator> before setting orcid and orcid_pending fields call .toUpperCase().
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60623 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-11 12:16:13 +00:00
konstantina.galouni 127c489da4 [Trunk | Library]:
1. resultLanding.component.html & result-preview.component.html: Show orcid buttons in all environments (production too) | in <orcid-work> added "resultTitle" property.
2. myOrcidLinks.component.ts: Added "getPersonalDetails()" method and link to advanced research outcomes page, filtered by user's name (if personal details from ORCID fails, use name from AAI - getUserInfo).
3. searchMyOrcidResults.module.ts: Removed PagingModule and added NoLoadPaging.
4. searchMyOrcidResults.component.ts: Added method "totalPages()" to calculate pages in paging.
5. searchMyOrcidResults.component.html: 
	a. Added <no-load-paging> (instead of custom paging with <paging-no-load>).
	b. In <orcid-work> added "resultTitle" property.
	c. Fix widths of grid inside card for result preview and orcid buttons.
6. orcid-work.component.ts:
	a. Added "resultTitle" @Input property, to show it in notifications, instead of pids.
	b. Updated messages for errors and for multiple put-codes.
	c. Use "danger" notifications instead of "warning" when an error occurs.
	d. For search and my orcid links pages, in orcid buttons, use <icon> for icons | For landing page, updated icons in orcid buttons.
	e. Added message "The action will affect your real ORCID iD." in tooltips, when environment == 'beta'.
	f. Removed property "procedurePaused" and its usage replaced by "currentAction".
	g. [Bug fix] For search pages, added "uk-align-right", in order orcid button not to take width for the whole line.
	h. [Bug fix] In method "getOrcidWorks()" check "Session.isLoggedIn()" was missing.
7. orcid.component.ts: If personal details from ORCID fails, use name from AAI - getUserInfo.
8. orcid.module.ts: Added IconsModule and registered icons: add, remove, preview, refresh in IconsService.
9. searchResult.component.ts: Call "orcidService.getPutCodes()" in all environments (production too).


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60619 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-11 01:40:53 +00:00
argiro.kokogiannaki 5791c1452a [Library|Trunk]
Organization + Result landing: 
	reset id with the dedup id (objidentifier) in case the parameters id was a pid or a canonical url. 
	this  fixes issues with related requests that need the dedup identifier

Result landing:
	- SEO no-index filter: add supplementary rules (title or authors contain spam record keywords e.g film, movie,hd, 4k,etc)
	- when the route is /result?id=  update url with pid if exists.



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60604 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-08 14:42:26 +00:00
k.triantafyllou fe7fa1298e [Library | Trunk]: Result preview: add hasLink param and check pid if result preview has been changed
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60520 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-26 14:30:10 +00:00
konstantina.galouni 584e3a0b16 [Trunk | Library]:
1. env-properties.ts: Added properties "orcidTokenURL", "orcidClientId".
2. orcid-work.component.ts & myOrcidLinks.component.ts: Set tokenUrl using properties.orcidTokenURL and properties.orcidClientId (not local strings).
3. searchMyOrcidResults.component.ts: Remove check for "development" environment (Menu is not added in production).
4. searchResult.component.ts: Parse previewResult.identifiers to set previewResult.orcidPutCodes only when environment is not "production" and portalType is "explore".
5. result-preview.component.html: Show ORCID dates or <orcid-work> only when environment is not "production" and portalType is "explore".
6. resultLanding.component.html: Show <orcid-work> only when environment is not "production" and portalType is "explore".


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60494 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-24 20:33:37 +00:00
konstantina.galouni f592e7943f [Trunk | Library]:
1. result-preview.ts: In interface "Author" add field "orcid_pending".
2. deletedByInference.service.ts, searchResearchResults.service.ts, resultLanding.service.ts:
	a. [Bug fix #6342]: On title parsing, set the title with classid = "main title" if exists.
	b. Add "orcid_pending" field to authors, to separate "orcid" from "orcid_pending".
	c. Only for resultLanding.service.ts: Add "orcid_pending" field to authors, to separate "orcid" from "orcid_pending".
3. open-aire-jsonld-converter.service.ts: [Bug fix #6342]: On title parsing, set the title with classid = "main title" if exists.
4. showAuthors.component.ts: Show black ORCID icon for authors with orcid_pending (and keep green icon for orcid).


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60464 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-20 09:20:05 +00:00
argiro.kokogiannaki ed5f31cb7b [Library|Trunk]
- Error interceptor add check for registry url
- landing canonical: keep  the canonical id (to be used in services like usage counts) and put the 1st pid for the canonical url



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60422 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-15 13:19:33 +00:00
argiro.kokogiannaki 36015705b0 [Library|Trunk]
SEO
Result landing: 
	canonical id is the 1st openaire id or the 1st valid pid (if exists)
	exclude from no-index filter, records with free text kywords



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60420 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-15 09:23:36 +00:00
argiro.kokogiannaki fd8a89ffe5 [Library|Trunk]
SEO updates: url in results preview:
	- use pid?  and the first valid pid if available
	- use the canonical id instead of dedup if available



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60410 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-11 10:20:10 +00:00
argiro.kokogiannaki 8a315f3963 [Library|Trunk]
Track Downloads:
- add the type of report (filename) in the url - to separate the different actions
- Organization: add piwik track in 2 reports that was missing
- Add track download for citations



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60406 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-10 12:50:02 +00:00
konstantina.galouni 66645f70f2 [Trunk | Library]:
1. newSearchPage.component.ts: 
	a. For filter with type "identifier", build params by calling createKeywordQuery() method (currently useless - authorid filter will be changed to type "identifier" on following commits).
	b. [Bug fix] EncodeURI the identifier.id of identifiers.
2. searchResult.component.ts: [Bug fix] Add check if result.identifiers.get("doi").
3. showIdentifiers.component.ts: [Bug fix] Add comma "," and "..." when needed.
4. showPublisher.component.ts: [Bug fix] Add class "uk-display-inline-block" for not breaking "Sherpa/ RoMEO" icon from text.
5. resultLanding.service.ts: [Bug fix] Set resultLandingInfo.title to title with classid=="main title" (requested in ticket #6342).


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