Revision 55730
Added by Argiro Kokogiannaki almost 5 years ago
searchDatasets.service.ts | ||
---|---|---|
239 | 239 |
var date:string = (resData.dateofacceptance)+""; // transform to string in case it is an integer |
240 | 240 |
result.year = (date && (date).indexOf('-') !== -1)?date.split('-')[0]:date; |
241 | 241 |
if(!Array.isArray(resData.description)) { |
242 |
result.description = resData.description;
|
|
242 |
result.description = String(resData.description);
|
|
243 | 243 |
} else { |
244 |
result.description = resData.description[0];
|
|
244 |
result.description = String(resData.description[0]);
|
|
245 | 245 |
} |
246 | 246 |
if(result.description && result.description.length > this.sizeOfDescription) { |
247 | 247 |
result.description = result.description.substring(0, this.sizeOfDescription)+"..."; |
Also available in: Unified diff
[angular7|library]
Merging Trunk into branch 55541:55729