Project

General

Profile

« Previous | Next » 

Revision 58145

[Library | Landing Redesign]: Merge from trunk

View differences:

open-aire-jsonld-converter.service.ts
152 152
	private getDescription(result: any): String[] {
153 153
		const item = _.get(result, "result.metadata.oaf:entity.oaf:result.description", null);
154 154
		if (!item) return null;
155
		return [(item.substring(0,4997)+(item.substring(0,4997).length == 4997?'...':'')) as String];
155
		let descr = Array.isArray(item) ? item[0]:item;
156
		return [(descr.substring(0,4997)+(descr.substring(0,4997).length == 4997?'...':'')) as String];
156 157
	}
157 158

  
158 159
	private getDateCreated(result: any): String[] {

Also available in: Unified diff