You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a field year : int option to course, so that we can sort the courses by most recent.
Add a field lecture_notes_available: bool option to represent whether lecture notes can be found at the URL pointed to by the field online_resource
Similarly, add a field exercises_available: exercise_availability option where type exercise_availability = Yes | Interactive (where Yes maps to the string "yes", and Interactive maps to the string "interactive") to represent whether there are exercises provided at the URL pointed to by the field online_resource.
To make this data available in the templates, you need to change data.mli and render the new fields to the generated module in academic_institution.ml.
The task here is only to change the data model and maybe update one data entry (as to keep the PR small).
The text was updated successfully, but these errors were encountered:
Hey @0xSaksham, would be happy to have you! This issue is all about making changes to OCaml code.
To confirm that the data is available to the templates, you might want to try and render the data to the the EML template academic_users.eml (this file format is a mix of OCaml and HTML). Implementing the UI will be a separate issue later, when the design is finalized.
Hi, I can pick this up if it's still open. Looks like there's no extra decoding logic here for now.
Is there currently a Dream route serving the academic_users.eml template? Just so I can check that the template hydrates correctly with the new course fields.
In the Wireframes for the improved "Teaching and Research" page (formerly "Academic Users"), we list course materials from lectures.
To make this truly useful, we need to improve the data model in
academic_institution.ml
:year : int option
tocourse
, so that we can sort the courses by most recent.lecture_notes_available: bool option
to represent whether lecture notes can be found at the URL pointed to by the fieldonline_resource
exercises_available: exercise_availability option
wheretype exercise_availability = Yes | Interactive
(whereYes
maps to the string"yes"
, andInteractive
maps to the string"interactive"
) to represent whether there are exercises provided at the URL pointed to by the fieldonline_resource
.To make this data available in the templates, you need to change
data.mli
and render the new fields to the generated module inacademic_institution.ml
.The task here is only to change the data model and maybe update one data entry (as to keep the PR small).
The text was updated successfully, but these errors were encountered: