Revision 58238
Added by Konstantinos Triantafyllou about 4 years ago
resultLanding.service.ts | ||
---|---|---|
93 | 93 |
this.resultLandingInfo.dateofacceptance = data[0].dateofacceptance?new Date(data[0].dateofacceptance):null; |
94 | 94 |
this.resultLandingInfo.publisher = data[0].publisher; |
95 | 95 |
if(!Array.isArray(data[0].description)) { |
96 |
this.resultLandingInfo.description = (data[0].description) ? String(data[0].description) : ""; |
|
96 |
//this.resultLandingInfo.description = String(data[0].description); |
|
97 |
this.resultLandingInfo.description = (data[0] && data[0].description) ? String(data[0].description) : ""; |
|
97 | 98 |
} else { |
98 |
this.resultLandingInfo.description = (data[0].description[0]) ? String(data[0].description[0]) : ""; |
|
99 |
//this.resultLandingInfo.description = String(data[0].description[0]); |
|
100 |
this.resultLandingInfo.description = (data[0] && data[0].description[0]) ? String(data[0].description[0]) : ""; |
|
99 | 101 |
} |
100 | 102 |
this.resultLandingInfo.embargoEndDate = data[0].embargoenddate?new Date(data[0].embargoenddate):null; |
101 | 103 |
} |
Also available in: Unified diff
[Library | Landing-redesign]: Merge from trunk