Skip to content

Deployment of new Features #2107

@zubeydecivelek

Description

@zubeydecivelek

Replacing Master File

No change needed. In deposit form, replacing main video file and additional files are separated. After this feature you'll be able to upload additional video files.

PRs/Commits:

Transcriptions: Follow, search

No change needed, if record has a subtitle(vtt file) This feature will be active.

PRs/Commits:

Chapters: Follow, search, point in time jumps and share video with time

If record has a chapters in the descriprion, this feature will be active.
For the old records, to trigger chapter frames task to create the correct frames and chapters.vtt file, records needs to edit -> publish.
Downloading thumbnails from the Landing page will be removed, since it's useless
To display 10 or n lines in description, you need to have a config variable:

DESCRIPTION_PREVIEW_LINES = 10

Video player licence should be upgraded to use chapters in the player.

PRs/Commits:

Allow non-CERN users login and restrict upload Issue

In SSO application:
See dev for reference

  • Role cern-user should change to not required
  • Add new role with Minimum Level of Assurance and identifier authenticated-user.
    • Enable: This role is required to access my application
    • Enable: This role applies to all authenticated users

Permissions:

  • Users should have cern-user to upload/create. All the users already have this role in the identity. See here
  • This role should be connected with action: upload_access_action

To allow role to permission, run this commands in invenio shell:

cds roles create cern-user
cds access allow videos-upload-access role cern-user

You should also add your new role to your config: OAUTHCLIENT_CERN_OPENID_ALLOWED_ROLES

OAUTHCLIENT_CERN_OPENID_ALLOWED_ROLES = ["cern-user", "authenticated-user"]

PRs/Commits:

Homepage: Display Lectures

You can dynamically display any chapter/lecture/etc, changing the config variable: HOMEPAGE_DYNAMIC_QUERIES
Example:

HOMEPAGE_DYNAMIC_QUERIES = [
    {
        "label": "LATEST LECTURES",
        "query": "/api/records/?size=4&sort=mostrecent&q=collections:Lectures",
        "qs": "collections=Lectures",
        "subcategories": [
            {
                "label": "CERN Accelerator School Lectures",
                "qs": 'collections="Lectures::CERN Accelerator School"',
            },
            {
                "label": "Teacher Programmes",
                "qs": 'collections="Lectures::Talks, Seminars and Other Events::Teacher Programmes"',
            },
            {
                "label": "Student Lectures",
                "qs": 'collections="Lectures::Talks, Seminars and Other Events::Student Lectures"',
            },
        ],
    }
]

Also you need the new template for displaying results of tour search:

HOMEPAGE_VIDEO_SMALL = "templates/cds/video/small_video_card.html"

PRs/Commits:

Landing Page: Display Videos From Same Event

You can dynamically display videos from same event, it'll be a search for related_identifiers.identifier. If your record doesn't have this nothing will be displayed

PRs/Commits:

New Category: Lectures

New project category: Lectures. It'll restricted to weblecture-service team account.

Note: Category is restricted only from UI, with REST API you can submit any category you want.

To add the category follow this guide.

PRs/Commits:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions