Revision 55056
Added by Myrto Koukouli over 5 years ago
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
2nd attempt to fix utf-8 issue