[Library|Trunk]
Jsonld: truncate description to 5000 - add '...' git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58013 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
bbc045a366
commit
105e67d626
|
@ -152,7 +152,7 @@ convertDatasource(datasource: any, URL, otherUrl): Organization {
|
||||||
private getDescription(result: any): String[] {
|
private getDescription(result: any): String[] {
|
||||||
const item = _.get(result, "result.metadata.oaf:entity.oaf:result.description", null);
|
const item = _.get(result, "result.metadata.oaf:entity.oaf:result.description", null);
|
||||||
if (!item) return null;
|
if (!item) return null;
|
||||||
return [item as String];
|
return [(item.substring(0,4997)+(item.substring(0,4997).length == 4997?'...':'')) as String];
|
||||||
}
|
}
|
||||||
|
|
||||||
private getDateCreated(result: any): String[] {
|
private getDateCreated(result: any): String[] {
|
||||||
|
|
Loading…
Reference in New Issue