Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-5336

Appointment: some people wish to send more information with confirmation email

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15.4.3
    • Fix Version/s: 15.3.12, 15.4.4
    • Component/s: None
    • Labels:
      None

      Description

      There are some people who wish to add more information to the confirmation email of an appointment. In particular this should be the description and/or the details of an appointment. I applied the following patch to make them happy

      diff --git a/src/main/java/org/olat/modules/appointments/manager/AppointmentsMailing.java b/src/main/java/org/olat/modules/appointments/manager/AppointmentsMailing.java
      index 66f6bed..fe5cd69 100644
      --- a/src/main/java/org/olat/modules/appointments/manager/AppointmentsMailing.java
      +++ b/src/main/java/org/olat/modules/appointments/manager/AppointmentsMailing.java
      @@ -301,6 +301,16 @@
       			sb.append(translator.translate("mail.end", new String[] { dateFormat.format(appointment.getEnd()) }));
       			sb.append("<br>");
       		}
      +		String description = appointment.getTopic().getDescription();
      +		if (StringHelper.containsNonWhitespace(description)) {
      +			sb.append(translator.translate("mail.description", new String[] { description }));
      +			sb.append("<br>");
      +		}
      +		String details = appointment.getDetails();
      +		if (StringHelper.containsNonWhitespace(details)) {
      +			sb.append(translator.translate("mail.details", new String[] { details }));
      +			sb.append("<br>");
      +		}
       		String location = AppointmentsUIFactory.getDisplayLocation(translator, appointment);
       		if (StringHelper.containsNonWhitespace(location)) {
       			sb.append(translator.translate("mail.location", new String[] { location }));
      diff --git a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_de.properties b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_de.properties
      index b310f46..ea0864f 100644
      --- a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_de.properties
      +++ b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_de.properties
      @@ -136,6 +136,8 @@
       mail.day=Datum: {0} (ganzer Tag)
       mail.deleted.body=Liebe/r {0} <br><br>Folgender Termin wurde abgesagt.<br><br>{1}
       mail.deleted.subject=Termin "{0}" abgesagt
      +mail.description=Beschreibung: {0}
      +mail.details=Details: {0}
       mail.end=Ende: {0}
       mail.location=Ort: {0}
       mail.participation.created.body=Liebe/r {0} <br><br>Sie wurden zu folgendem Termin hinzugef\u00fcgt.<br><br>{1}
      diff --git a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_en.properties b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_en.properties
      index 32d1246..c0041d8 100644
      --- a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_en.properties
      +++ b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_en.properties
      @@ -136,6 +136,8 @@
       mail.day=Date: {0} (full day)
       mail.deleted.body=Dear {0} <br><br>The following appointment was declined.<br><br>{1}
       mail.deleted.subject=Appointment "{0}" declined
      +mail.description=Description: {0}
      +mail.details=Details: {0}
       mail.end=End: {0}
       mail.location=Location: {0}
       mail.participation.created.body=Dear {0} <br><br>You were added to the following appointment.<br><br>{1}
      diff --git a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_fr.properties b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_fr.properties
      index fca3b49..bf64bb1 100644
      --- a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_fr.properties
      +++ b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_fr.properties
      @@ -138,6 +138,8 @@
       mail.day=Date\: {0} (jour entier)
       mail.deleted.body=Ch\u00E8re/cher {0} <br><br>Le rendez-vous suivant a \u00E9t\u00E9 annul\u00E9.<br><br>{1}
       mail.deleted.subject=Rendez-vous "{0}" annul\u00E9
      +mail.description=Description: {0}
      +mail.details=D\u00E9tails: {0}
       mail.end=Fin\: {0}
       mail.location=Lieu\: {0}
       mail.participation.created.body=Ch\u00E8re/cher {0} <br><br>Vous avez \u00E9t\u00E9 ajout\u00E9 au rendez-vous suivant\:<br><br>{1}
      diff --git a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_it.properties b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_it.properties
      index cc2305a..5d0d891 100644
      --- a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_it.properties
      +++ b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_it.properties
      @@ -136,6 +136,8 @@
       mail.day=Data\: {0} (intera giornata)
       mail.deleted.body=Gentile {0} <br><br>Il seguente appuntamento \u00E8 stato annullato.<br><br>{1}
       mail.deleted.subject=Appuntamento "{0}" annullato.
      +mail.description=Descrizione: {0}
      +mail.details=Dettagli: {0}
       mail.end=Fine\: {0}
       mail.location=Luogo\: {0}
       mail.participation.created.body=Gentile {0} <br><br>E' stato/a aggiunto/a al seguente appuntamento.<br><br>{1}
      diff --git a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_pt_BR.properties b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_pt_BR.properties
      index 8c0fd24..7fe1283 100644
      --- a/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_pt_BR.properties
      +++ b/src/main/java/org/olat/modules/appointments/ui/_i18n/LocalStrings_pt_BR.properties
      @@ -100,6 +100,8 @@
       mail.day=Data\: {0} (dia inteiro)
       mail.deleted.body=Caro {0} <br><br>O seguinte compromisso foi recusado.<br><br>{1}
       mail.deleted.subject=Compromisso "{0}" recusado
      +mail.description=Descri\u00e7\u00e3o: {0}
      +mail.details=Detalhes: {0}
       mail.end=Fim\: {0}
       mail.location=Localiza\u00e7\u00e3o\: {0}
       mail.participation.created.body=Caro {0} <br><br>Voc\u00ea foi adicionado ao seguinte compromisso.<br><br>{1}
      

       

        Figma for Jira By 42nd

          Attachments

            Activity

              People

              Assignee:
              uhensler Urs Hensler
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Mandy Menzel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m