diff --git a/packages/person-profile/src/i18n/de/translation.json b/packages/person-profile/src/i18n/de/translation.json index e468f0127c5b15ace9a6060f8eb95873843a9cd8..71b2d6ed32bbaeee2dbb3517abcb8141b6db7830 100644 --- a/packages/person-profile/src/i18n/de/translation.json +++ b/packages/person-profile/src/i18n/de/translation.json @@ -4,11 +4,6 @@ "given-name": "Vorname", "family-name": "Nachname", "email": "Email", - "telephone": "Telefon", - "role": "Rolle", - "none-selected": "Keine Person ausgewählt", - "staff": "Mitarbeiter/in", - "alumni": "Absolvent/in", - "unknown": "unbekannt" + "none-selected": "Keine Person ausgewählt" } } diff --git a/packages/person-profile/src/i18n/en/translation.json b/packages/person-profile/src/i18n/en/translation.json index b4cc34a2bfeaad2c4e74f7873d83b1d5221d78cf..372e344fb57b60c699f92d6deb8e38d616c60ffc 100644 --- a/packages/person-profile/src/i18n/en/translation.json +++ b/packages/person-profile/src/i18n/en/translation.json @@ -4,11 +4,6 @@ "given-name": "Given name", "family-name": "Family name", "email": "Email", - "telephone": "Telephone", - "role": "Role", - "none-selected": "No person selected", - "staff": "staff", - "alumni": "alumni", - "unknown": "unknown" + "none-selected": "No person selected" } } diff --git a/packages/person-profile/src/person-profile.js b/packages/person-profile/src/person-profile.js index 4ac5576baa5649106d56ed507628894474261ea1..46b0455a7a7eb6cb8f453c7dc16ea6d66a6451d5 100644 --- a/packages/person-profile/src/person-profile.js +++ b/packages/person-profile/src/person-profile.js @@ -78,15 +78,6 @@ export class PersonProfile extends DBPLitElement { render() { const i18n = this._i18n; - let role = i18n.t('person-profile.unknown'); - if (this.person !== null && this.person.roles !== undefined) { - // roles are only defined for self-disclosure - if (this.person.roles.indexOf('ROLE_STAFF') > -1) { - role = i18n.t('person-profile.staff'); - } else if (this.person.roles.indexOf('ROLE_ALUMNI') > -1) { - role = i18n.t('person-profile.alumni'); - } - } return html` <style> @@ -105,8 +96,6 @@ export class PersonProfile extends DBPLitElement { <tr><td class="td-profile">${i18n.t('person-profile.given-name')}</td><td>${this.person.givenName}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.family-name')}</td><td>${this.person.familyName}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.email')}</td><td>${this.person.email}</td></tr> - <tr><td class="td-profile">${i18n.t('person-profile.telephone')}</td><td>${this.person.telephone}</td></tr> - <tr><td class="td-profile">${i18n.t('person-profile.role')}</td><td>${role}</td></tr> </tbody> <tfoot></tfoot> </table>` : i18n.t('person-profile.none-selected') }