Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default values for metadata fields #163

Closed
mtneug opened this issue Dec 2, 2020 · 9 comments · Fixed by #254
Closed

Add default values for metadata fields #163

mtneug opened this issue Dec 2, 2020 · 9 comments · Fixed by #254

Comments

@mtneug
Copy link
Member

mtneug commented Dec 2, 2020

Certain metadata fields could receive default values:

  • title: name of the file
  • licence / rights / etc: default per instructor or course
  • ...
@Zhoha28
Copy link

Zhoha28 commented Dec 3, 2020

Has this issue been solved yet? if not can you please assign it to me, I would like to work on this issue

@NinaHerrmann
Copy link
Collaborator

Hey, any help is appreciated so feel free to take the issue 🙂 👍

@Zhoha28
Copy link

Zhoha28 commented Dec 3, 2020

@NinaHerrmann @mtneug I am a little confused as to which files and what are to be updated, can you guys just guide me. I will make the necessary changes, I just need some guidance for the same

@NinaHerrmann
Copy link
Collaborator

Hey @Zhoha28, I fear we do not have the time to completely guide you through it. Having a default licence per user requires an additional setting for users. I am not completely sure how the second one can be realized. I would guess you can build a Javascript which automatically inserts the name into the field in case it is empty.
Best regards,
Nina

@mtneug
Copy link
Member Author

mtneug commented Dec 3, 2020

It could be sufficient to store the last used value for some of the metadata in a local data store of the browser. I would keep it simple and not change the backend code. Note that metadata fields are configurable so a generic solution would be necessary. Title would be a special case coming from the filename.

@ebbertd ebbertd added this to Near Future in Roadmap May 6, 2021
@ferishili
Copy link
Contributor

Hey @TamaraGunkel,
what is the current state of this issue?
Would you please assign it to me, if it is possible?
Thanks in advance

@TamaraGunkel
Copy link
Contributor

I think you can just have a look at the metadata fields and check where we already have default values and where not.
I guess you can decide yourself where default values might be helpful but we can discuss them also here if you want.

@ferishili
Copy link
Contributor

ferishili commented Feb 4, 2022

@TamaraGunkel, I can think of a new db table that can store the latest metadata inputs from the user/pre-defined default values and use those input values later on as default. What do you think?
The table structure would be simply a course_id and a text field to store the metadata values as JSON format!

@TamaraGunkel
Copy link
Contributor

I think saving the defaults per course is a bit overkill, per user should be fine.
So a table with user id and default values should work.
However, I just realized that teachers only see the required fields while the others are hidden.
I think setting default values for hidden fields is dangerous because they are usually not checked by the teachers.
Thus I think we should only set default values for the required fields.

@TamaraGunkel TamaraGunkel removed this from Near Future in Roadmap Feb 8, 2022
ferishili added a commit to ferishili/moodle-block_opencast that referenced this issue Feb 9, 2022
ferishili added a commit to ferishili/moodle-block_opencast that referenced this issue Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants