Skip to content

[C2] Continued restoration of catalogue features #6235

@ywarnier

Description

@ywarnier

The catalogue has been re-implemented completely in C2, and is lacking features of the previous catalogue.
Here is a list describing what the catalogue should be capable of doing in C2:

  • Display a language banner/ribbon on the right-hand side of the course block
  • Display an "info" icon on top of the course image. When clicking it, a modal window should appear showing the course description. This option is disabled if the option "Show the courses descriptions in the catalogue" is set to false
  • if the option "Publish course catalogue" is true, then loading the /catalogue/courses path should show the catalogue to anyone (including anonymous users). Otherwise this page should be restricted to logged in users. It should also appear as a link ("Browse courses") in the menu of anonymous users on the landing page (except if the option "Hide course catalogue's public link" is set to true).
  • There should be an "Advanced search" button showing an... advanced search form. The form elements should be combinated (AND, not OR in the search process). The advanced search form should contain at least (for courses) the title, category and language (if only one language is available in the languages table, then hide the language selector). For the sessions form, there should also be title, category, NOT language (because sessions can contain courses of multiple languages) and fields "Start date before" and "Start date after", which would only search on the "display start date".
  • In the advanced search form, if the option "Allow using extra fields in course catalogue" is set to true, then all extra fields that have the "filter" setting enabled should appear as search inputs in the form
  • The "Course catalogue settings" option is an array with several elements that dictate how the catalogue should appear. All these options have to be supported (they are pretty self-explanatory)
  • The "Display course catalogue on homepage" option, if set to true, should show a course catalogue block (with no search option) at the bottom of the homepage (/home)
  • The "Only show matching courses in catalogue" option may introduce a conflict with the recent addition of the possibility for courses to be set as hidden or visible from the catalogue. This has to be checked. If this option conflicts, then hide the option in the settings list. Otherwise make sure the option has the desired effect of only showing courses with the extra field "show_in_catalogue" set to 1.
  • If the option "Only show matching categories in courses catalogue" is set, then we should only show the courses in the given categories, and the list of categories in the advanced search form should be limited to these categories and we should verify in any search afterwards that we don't allow a manually-added input to break this condition
  • If the option "Learners access to course catalogue" is set to false, then the left menu entry for the catalogue should be hidden as well as the public link in the menu, if it is enabled (if learners cannot access, anonymous users cannot access either)
  • If the option "Auto-subscription in sessions catalogue" is set to true, then a "Subscribe" button should appear for any session that appears in the sessions catalogue. If the user is already subscribed, the button should be disabled (or any other option is ok, but not "Subscribe")
  • If the option "Auto-create single-user session on course auto-subscription" is set to true, then when clicking the "Subscribe" button in the course catalogue (not the session catalogue), the system should create a one-user session with that course in it (with no date limits).
  • If the option "Fields to search by in catalogue" is set, then the advanced search form should respect that list of fields.
  • When the "buy courses" plugin is enabled, some courses or sessions might have prices. In this case, the "Subscribe" button should change to the price.
  • If resources sequencing is enabled, the courses (in the courses catalogue, or the sessions in the sessions catalogue) that are affected by this sequencing should show a button (in C1 we use a shield icon, but it should have something to do with a sequence or requirements) that opens a modal with the dependencies. See screenshot. It seems that in C1 we only show that for sessions, but it should happen in the courses catalogue too.

Image

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions