diff --git a/src/main/java/org/olat/course/learningpath/ui/LearningPathNodeConfigController.java b/src/main/java/org/olat/course/learningpath/ui/LearningPathNodeConfigController.java index 680cd7c7aabfac239b59035858efc3d7ae2e4ea9..2d492632f2ead52b4b7d78c6330d0cd5f70fc7e0 100644 --- a/src/main/java/org/olat/course/learningpath/ui/LearningPathNodeConfigController.java +++ b/src/main/java/org/olat/course/learningpath/ui/LearningPathNodeConfigController.java @@ -65,10 +65,10 @@ public class LearningPathNodeConfigController extends FormBasicController { public static final String CONFIG_VALUE_TRIGGER_SCORE = FullyAssessedTrigger.score.name(); public static final String CONFIG_VALUE_TRIGGER_PASSED = FullyAssessedTrigger.passed.name(); - private TextElement durationEl; private SingleSelection obligationEl; private DateChooser startDateEl; private DateChooser endDateEl; + private TextElement durationEl; private SingleSelection triggerEl; private TextElement scoreCutEl; @@ -92,9 +92,6 @@ public class LearningPathNodeConfigController extends FormBasicController { protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) { setFormTitle("config.title"); - String duration = learningPathConfigs.getDuration() != null? learningPathConfigs.getDuration().toString(): null; - durationEl = uifactory.addTextElement("config.duration", 128, duration , formLayout); - KeyValues obligationKV = new KeyValues(); obligationKV.add(entry(AssessmentObligation.mandatory.name(), translate("config.obligation.mandatory"))); obligationKV.add(entry(AssessmentObligation.optional.name(), translate("config.obligation.optional"))); @@ -117,6 +114,9 @@ public class LearningPathNodeConfigController extends FormBasicController { endDateEl = uifactory.addDateChooser("config.end.date", endDate, formLayout); endDateEl.setDateChooserTimeEnabled(true); + String duration = learningPathConfigs.getDuration() != null? learningPathConfigs.getDuration().toString(): null; + durationEl = uifactory.addTextElement("config.duration", 128, duration , formLayout); + KeyValues triggerKV = getTriggerKV(); triggerEl = uifactory.addRadiosVertical("config.trigger", formLayout, triggerKV.keys(), triggerKV.values()); @@ -173,14 +173,14 @@ public class LearningPathNodeConfigController extends FormBasicController { } private void updateUI() { - durationEl.setMandatory(isDurationMandatory()); - AssessmentObligation obligation = obligationEl.isOneSelected() ? AssessmentObligation.valueOf(obligationEl.getSelectedKey()) : LearningPathConfigs.OBLIGATION_DEFAULT; boolean obligationMandatory = AssessmentObligation.mandatory.equals(obligation); endDateEl.setVisible(obligationMandatory); + durationEl.setMandatory(isDurationMandatory()); + boolean triggerScore = triggerEl.isOneSelected() && triggerEl.getSelectedKey().equals(CONFIG_VALUE_TRIGGER_SCORE); scoreCutEl.setVisible(triggerScore); } @@ -233,11 +233,6 @@ public class LearningPathNodeConfigController extends FormBasicController { @Override protected void formOK(UserRequest ureq) { - Integer duration = StringHelper.containsNonWhitespace(durationEl.getValue()) - ? Integer.valueOf(durationEl.getValue()) - : null; - learningPathConfigs.setDuration(duration); - AssessmentObligation obligation = obligationEl.isOneSelected() ? AssessmentObligation.valueOf(obligationEl.getSelectedKey()) : LearningPathConfigs.OBLIGATION_DEFAULT; @@ -252,6 +247,11 @@ public class LearningPathNodeConfigController extends FormBasicController { Date endDate = endDateEl.getDate(); learningPathConfigs.setEndDate(endDate); + Integer duration = StringHelper.containsNonWhitespace(durationEl.getValue()) + ? Integer.valueOf(durationEl.getValue()) + : null; + learningPathConfigs.setDuration(duration); + FullyAssessedTrigger trigger = triggerEl.isOneSelected() ? FullyAssessedTrigger.valueOf(triggerEl.getSelectedKey()) : LearningPathConfigs.TRIGGER_DEFAULT; diff --git a/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_de.properties b/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_de.properties index 7e8c39aa1182e98eb852f53a21384ecc3ea66f2c..91f28371b29a4d1fddf0a704efd97c5b0d4efb21 100644 --- a/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_de.properties +++ b/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_de.properties @@ -5,7 +5,7 @@ assessment.status.inReview=$org.olat.modules.assessment.ui\:assessment.status.in assessment.status.notReady=$org.olat.modules.assessment.ui\:assessment.status.notReady assessment.status.notStart=$org.olat.modules.assessment.ui\:assessment.status.notStart error.positiv.int=Geben Sie bitte eine positive Zahl ein. -config.duration=Zeitvorgabe (Minuten) +config.duration=Bearbeitungszeit (Minuten) config.end.date=Zu bearbeiten bis config.obligation=Pflicht config.obligation.mandatory=Obligatorisch @@ -13,17 +13,17 @@ config.obligation.optional=Freiwillig config.score.cut=Punkteminimum config.start.date=Freigabedatum config.title=$\:pane.tab.learning.path -config.trigger=Abschluss +config.trigger=Erledigungskriterium config.trigger.confirmed=Best\u00E4tigung durch den Benutzer config.trigger.passed=Bestanden config.trigger.score=Punkte config.trigger.score.value=Punkteminimum: {0} config.trigger.status.done=Durchf\u00FChrung erledigt config.trigger.status.in.review=Korrigieren -config.trigger.visited=Kursbaustein ge\u00F6ffnet +config.trigger.visited=Kursbaustein \u00F6ffnen curriculum.element.list.title=$org.olat.modules.assessment.ui\:learning.progress -error.fully.assessed.passed=Der Abschluss des Kurselementes kann nicht auf "erledigt" gesetzt sein, wenn im Kursbaustein nicht erledigt werden kann. -error.fully.assessed.score=Der Abschluss des Kurselementes kann nicht auf "Punkte" gesetzt sein, if no points are assigned in the course element. +error.fully.assessed.passed=Das Erledigungskriterium des Kursbausteines kann nicht auf "bestanden" gesetzt sein, wenn der Kursbaustein nicht bestanden werden kann. +error.fully.assessed.score=Das Erledigungskriterium des Kursbausteines kann nicht auf "Punkte" gesetzt sein, wenn im Kursbaustein keine Punkte vergeben werden. error.positiv.int=Geben Sie eine positive Zahl ein. identities.list.course=im Kurs {0} identities.list.title=Lernpfade @@ -35,9 +35,9 @@ override.end.date=Benutzerdefiniertes "zu bearbeiten bis" override.end.date.info=Der Termin "zu bearbeiten bis" wurde von {1} am {2} ge\u00E4ndert. Das ursp\u00FCngliche Termin war der {0}. override.obligation=Benutzerdefinierte Pflicht override.obligation.mandatory.do=Obligatorisch -override.obligation.mandatory.info=Dieses Kurselement wurde von {0} am {1} auf "obligatorisch" ge\u00E4ndert. +override.obligation.mandatory.info=Dieser Kursbaustein wurde von {0} am {1} auf "obligatorisch" ge\u00E4ndert. override.obligation.optional.do=Freiwillig -override.obligation.optional.info=Dieses Kurselement wurde von {0} am {1} auf "freiwillig" ge\u00E4ndert. +override.obligation.optional.info=Dieser Kursbaustein wurde von {0} am {1} auf "freiwillig" ge\u00E4ndert. override.reset=\u00C4nderung l\u00F6schen pane.tab.learning.path=Lernpfad passed.false=$org.olat.course.assessment\:passed.false @@ -51,11 +51,11 @@ table.empty.repository=Es sind keine Kurse vorhanden. table.header.completion=$org.olat.modules.assessment.ui\:learning.progress table.header.first.visit=Erster Besuch table.header.fully.assessed.date=Datum erledigt -table.header.duration=Zeitvorgabe +table.header.duration=Bearbeitungszeit table.header.end=$\:config.end.date table.header.last.visit=Letzter Besuch table.header.learning.path.icon=<i class\='o_icon o_icon-lg o_icon_learning_path'> </i> -table.header.node=Kurselement +table.header.node=Kursbaustein table.header.obligation=Pflicht table.header.passed=$org.olat.modules.assessment.ui\:table.header.passed table.header.progress=Fortschritt diff --git a/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_en.properties b/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_en.properties index 4299a8f6e9818621308cab6b9b84082b1bdc0d76..343d6a4a3cee3eded7a8f5bdaa4a3f897820eae7 100644 --- a/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_en.properties +++ b/src/main/java/org/olat/course/learningpath/ui/_i18n/LocalStrings_en.properties @@ -5,7 +5,7 @@ assessment.status.inReview=$org.olat.modules.assessment.ui\:assessment.status.in assessment.status.notReady=$org.olat.modules.assessment.ui\:assessment.status.notReady assessment.status.notStart=$org.olat.modules.assessment.ui\:assessment.status.notStart error.positiv.int=Enter a positive number. -config.duration=Estimated duration (minutes) +config.duration=Learning time (minutes) config.end.date=Due date config.obligation=Obligation config.obligation.mandatory=Mandatory @@ -13,17 +13,17 @@ config.obligation.optional=Optional config.score.cut=Minimal score config.start.date=Release date config.title=$\:pane.tab.learning.path -config.trigger=Completion -config.trigger.confirmed=Confirmed by user +config.trigger=Completion criterion +config.trigger.confirmed=Confirmation by participant config.trigger.passed=Passed config.trigger.score=Score config.trigger.score.value=Minimal score: {0} config.trigger.status.done=Execution done config.trigger.status.in.review=In review -config.trigger.visited=Course element visited +config.trigger.visited=Visit course element curriculum.element.list.title=$org.olat.modules.assessment.ui\:learning.progress -error.fully.assessed.passed=The completion of the course element can't be set to "passed", if the course element can't be passed. -error.fully.assessed.score=The completion of the course element can't be set to "score", if the course element has no score. +error.fully.assessed.passed=The completion criterion of the course element can't be set to "passed", if the course element can't be passed. +error.fully.assessed.score=The completion criterion of the course element can't be set to "score", if the course element has no score. error.positiv.int=Enter a positive number. identities.list.course=in course {0} identities.list.title=Learning pathes @@ -52,7 +52,7 @@ table.header.completion=$org.olat.modules.assessment.ui\:learning.progress table.header.end=$\:config.end.date table.header.first.visit=First visit table.header.fully.assessed.date=Date done -table.header.duration=Duration +table.header.duration=Learning time table.header.last.visit=Last visit table.header.learning.path.icon=<i class\='o_icon o_icon-lg o_icon_learning_path'> </i> table.header.node=Course element diff --git a/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_de.properties b/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_de.properties index 6e860be27d63406707c9e38cfe0a448c7b701371..8ef15b81b07caade41e539eb4f7133b780ac4044 100644 --- a/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_de.properties +++ b/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_de.properties @@ -1,14 +1,14 @@ error.course.locked=Dieser Kurs wird bereits von jemand anderem bearbeitet. Diese Einstellun kann nicht g\u00E4ndert werden. error.positiv.int=$org.olat.course.learningpath.ui\:error.positiv.int settings.completion.type.confirmation.duration=$org.olat.course.learningpath.ui\:config.duration -settings.completion.type.confirmation.info=Wollen Sie den Lernfortschritt wirklich anhand der gesch\u00E4tzten Zeitdauer der einzelnen Kurselemente berechnen? In diesem Fall muss in jedem Kurselement die gesch\u00E4tzte Dauer definiert sein. Geben Sie hier einen Initialwert ein, welcher bei Kurselementen ohne gesch\u00E4tzte Dauer eingetragen wird. +settings.completion.type.confirmation.info=Wollen Sie den Lernfortschritt wirklich anhand der gesch\u00E4tzten Zeitdauer der einzelnen Kursbausteine berechnen? In diesem Fall muss in jedem Kursbaustein die Bearbeitungszeit definiert sein. Geben Sie hier einen Initialwert ein, welcher bei Kurselementen ohne gesch\u00E4tzte Dauer eingetragen wird. settings.completion.type.confirmation.title=Berechnungsmethode des Lernfortschrittes -settings.completion.type.duration=Anhand der gesch\u00E4tzten Dauer der Kurselemente -settings.completion.type.number.of.nodes=Anhand der Anzahl der Kurselemente +settings.completion.type.duration=Anhand der Bearbeitungszeit der Kursbausteine +settings.completion.type.number.of.nodes=Anhand der Anzahl der Kursbausteine settings.completion.type=Lernfortschritt berechnen settings.migrate=In Lernpfad-Kurs umwandeln settings.title=Zugriff Kursbausteine settings.type=Typ -unsupported.course.nodes.names=Nicht unterst\u00FCtzte Kurselemente -unsupported.course.nodes.warning=Dieser Kurs kann nicht in einen Lernpfad-Kurs umgewandelt werden, da nicht alle bestehenden Kurselement unterst\u00FCtzt werden. -unsupported.course.nodes.title=Nicht unterst\u00FCtzte Kurselemente \ No newline at end of file +unsupported.course.nodes.names=Nicht unterst\u00FCtzte Kursbausteine +unsupported.course.nodes.warning=Dieser Kurs kann nicht in einen Lernpfad-Kurs umgewandelt werden, da nicht alle bestehenden Kursbausteine unterst\u00FCtzt werden. +unsupported.course.nodes.title=Nicht unterst\u00FCtzte Kursbausteine \ No newline at end of file diff --git a/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_en.properties b/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_en.properties index 36c9e93bb9e20455b909254379839f272b9fc35f..2458c92738933574e28891e6798a47b338ea38db 100644 --- a/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_en.properties +++ b/src/main/java/org/olat/course/nodeaccess/ui/_i18n/LocalStrings_en.properties @@ -1,7 +1,7 @@ error.course.locked=This course is already being edited on by someone else. This setting cannot be changed. error.positiv.int=$org.olat.course.learningpath.ui\:error.positiv.int settings.completion.type.confirmation.duration=$org.olat.course.learningpath.ui\:config.duration -settings.completion.type.confirmation.info=Do you really want to calculate the learning progress based on the estimated duration of the individual course elements? In this case, the estimated duration must be defined in each course element. Enter an initial value here, which is entered for course elements without an estimated duration. +settings.completion.type.confirmation.info=Do you really want to calculate the learning progress based on the estimated duration of the individual course elements? In this case, the learning time must be defined in each course element. Enter an initial value here, which is entered for course elements without an estimated duration. settings.completion.type.confirmation.title=Calculation of learning progress settings.completion.type.duration=According to the estimated duration of the course elements settings.completion.type.number.of.nodes=According to the number of course elements