Revision 58128
Added by Konstantina Galouni about 4 years ago
resultLanding.service.ts | ||
---|---|---|
102 | 102 |
// res['result']['metadata']['oaf:entity']['oaf:result']['title'] |
103 | 103 |
if(data[1] != null) { |
104 | 104 |
if(Array.isArray(data[1])) { |
105 |
this.resultLandingInfo.title = String(data[1][0].content);
|
|
105 |
this.resultLandingInfo.title = (data[1][0] && data[1][0].content) ? String(data[1][0].content) : "";
|
|
106 | 106 |
if(data[1][1].classid === 'subtitle') { |
107 |
this.resultLandingInfo.subtitle = String(data[1][1].content);
|
|
107 |
this.resultLandingInfo.subtitle = (data[1][1] && data[1][1].content) ? String(data[1][1].content) : "";
|
|
108 | 108 |
} |
109 | 109 |
} else { |
110 |
this.resultLandingInfo.title = String(data[1].content);
|
|
110 |
this.resultLandingInfo.title = (data[1] && data[1].content) ? String(data[1].content) : "";
|
|
111 | 111 |
} |
112 | 112 |
} |
113 | 113 |
|
Also available in: Unified diff
[Trunk | Library]:
1. resultLanding.service.ts & searchResearchResults.service.ts: [Bug Fix] When parsing title, we stringify it. Make sure we do not stringify values: undefined.
2. searchResearchResults.service.ts: Changed "sortby" parameter to match /resources2 api format (search redesign).