Revision 58145
Added by Konstantinos Triantafyllou about 4 years ago
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
[Library | Landing Redesign]: Merge from trunk