opencast-ilias / OpenCast

Opencast plugin for ILIAS LMS. The plugin shows a Opencast series as an ILIAS object. This version of the ILIAS plugin for Opencast is operated and developed collaboratively by a community. The University of Bern acts as coordinative maintainer.
GNU General Public License v3.0
12 stars 14 forks source link

Upload of a new event with missing title | Replace technical error message: "Your input has a length of 0 and falls below the minimum length 1." #171

Open samuelinniger opened 1 year ago

samuelinniger commented 1 year ago

Minor issue/improvement:

When trying to upload a new event without setting a title, the OC-Plugin returns the error message: "Your input has a length of 0 and falls below the minimum length 1."

This error message is unneccessarily technical. We suggest to modify the message to "This input is required. Please enter a value.". The latter is already used in ILIAS (e.g. when creating a new folder without setting the title). The german translation would be: "Dieses Feld muss ausgefüllt werden. Bitte geben Sie etwas ein."

Screenshots

grafik

Suggested solution: See comment: https://github.com/opencast-ilias/OpenCast/issues/171#issuecomment-1611475381

Environment (please complete the following information):

reiferschris commented 1 year ago

If I am not mistaken in previous versions it just used the filename for the title. Is that something you would consider desirable? In my opinion it is always better to have fewer obstacles for the user. To optimize this failsafe we could strip the file type from the title.

dagraf commented 1 year ago

@reiferschris: You are not mistaken and we agree here it would be nice to have the old functionality back. Therefore, the suggested solution looks as follows:

Suggested solution: If no title is specified while uploading a video use the filename for the title and strip the file type.