Project

General

Profile

« Previous | Next » 

Revision 55056

2nd attempt to fix utf-8 issue

View differences:

modules/uoa-repository-dashboard-gui/trunk/src/app/pages/sources/sources-forms/datasource-update-form.component.ts
280 280
    } else if (this.updateGroup.get('platformName').value) {
281 281
      this.selectedRepo.typology = this.updateGroup.get('platformName').value;
282 282
    }
283
    this.selectedRepo.officialName = encodeURI(this.updateGroup.get('officialName').value);
284
    this.selectedRepo.description = encodeURI(this.updateGroup.get('repoDescription').value);
283
    this.selectedRepo.officialName = this.updateGroup.get('officialName').value.toString();
284
    this.selectedRepo.description = this.updateGroup.get('repoDescription').value.toString();
285 285
    this.selectedRepo.countryCode = this.updateGroup.get('country').value;
286 286
    this.selectedRepo.countryName = this.countries.filter(x => x.code === this.updateGroup.get('country').value)[0].name;
287 287
    this.selectedRepo.longitude = this.updateGroup.get('longtitude').value;
288 288
    this.selectedRepo.latitude = this.updateGroup.get('latitude').value;
289 289
    this.selectedRepo.websiteUrl = this.updateGroup.get('websiteUrl').value;
290
    this.selectedRepo.organization = encodeURI(this.updateGroup.get('institutionName').value);
291
    this.selectedRepo.englishName = encodeURI(this.updateGroup.get('englishName').value);
290
    this.selectedRepo.organization = this.updateGroup.get('institutionName').value.toString();
291
    this.selectedRepo.englishName = this.updateGroup.get('englishName').value.toString();
292 292
    this.selectedRepo.logoUrl = this.updateGroup.get('logoUrl').value;
293 293
    this.selectedRepo.timezone = this.updateGroup.get('timezone').value;
294 294
    this.selectedRepo.datasourceClass = this.updateGroup.get('datasourceType').value;
modules/uoa-repository-dashboard-gui/trunk/src/app/pages/sources/sources-forms/datasource-create-form.component.ts
208 208

  
209 209
  createNewRepository(): Repository {
210 210
    const newRepo: Repository = new Repository();
211
    newRepo.officialName = encodeURI(this.group.get('officialName').value);
212
    newRepo.englishName = encodeURI(this.group.get('englishName').value);
211
    newRepo.officialName = this.group.get('officialName').value.toString();
212
    newRepo.englishName = this.group.get('englishName').value.toString();
213 213
    newRepo.websiteUrl = this.group.get('websiteUrl').value;
214 214
    newRepo.logoUrl = this.group.get('logoUrl').value;
215 215
    newRepo.contactEmail = this.group.get('adminEmail').value;
216 216
    newRepo.countryName = this.countries.filter(x => x.code === this.group.get('country').value)[0].name;
217 217
    newRepo.countryCode = this.group.get('country').value;
218
    newRepo.organization = encodeURI(this.group.get('institutionName').value);
218
    newRepo.organization = this.group.get('institutionName').value.toString();
219 219
    newRepo.latitude = this.group.get('latitude').value;
220 220
    newRepo.longitude = this.group.get('longtitude').value;
221 221
    newRepo.timezone = this.group.get('timezone').value;
222 222
    newRepo.datasourceClass = this.group.get('datasourceType').value;
223 223
    newRepo.typology = this.group.get('softwarePlatform').value;
224
    newRepo.description = encodeURI(this.group.get('repoDescription').value);
224
    newRepo.description = this.group.get('repoDescription').value.toString();
225 225
    newRepo.issn = '';
226 226
    newRepo.eissn = '';
227 227
    newRepo.lissn = '';

Also available in: Unified diff