Project

General

Profile

« Previous | Next » 

Revision 58238

[Library | Landing-redesign]: Merge from trunk

View differences:

searchProjects.service.ts
156 156

  
157 157
            result.id = Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
158 158

  
159
            if(!Array.isArray(resData['summary'])) {
160
              result.description = (resData['summary']) ? String(resData['summary']) : "";
161
            } else {
162
              result.description = (resData['summary'][0]) ? String(resData['summary'][0]) : "";
163
            }
164

  
165
            if (result.description && result.description.length > this.sizeOfDescription) {
166
              result.description = result.description.substring(0, this.sizeOfDescription) + "...";
167
            }
168

  
159 169
            if(resData['rels'].hasOwnProperty("rel")) {
160 170
                let relLength = Array.isArray(resData['rels']['rel']) ? resData['rels']['rel'].length : 1;
161 171

  

Also available in: Unified diff