-
Notifications
You must be signed in to change notification settings - Fork 35
Description
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:
- support uploading additional video files #1984
- subtitles: fix renaming on publish #2023 (small fix about subtitles)
Transcriptions: Follow, search
No change needed, if record has a subtitle(vtt file) This feature will be active.
PRs/Commits:
- feature: follow and search transcriptions #2081
- transcriptions: move them side-by-side to player and add hide button #2084
- fix: transcriptions search #2106
- 08c6254
- 1adb60c
- 262c8c9
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 = 10Video player licence should be upgraded to use chapters in the player.
PRs/Commits:
- feature: add chapters and task for chapter frames #2087
- landing page: remove thumbnails download #2090
- feature: chapter improvements #2094
- chapters: increase frame size #2095
- fix: chapters height for small screens #2096
- fix: deposit form bug #2097
- chapters: improve ExtractChapterFramesTask #2099
- Chapters improvements #2103
- chapters: fix bugs #2104
- chapters: improve task and landing page #2105
Allow non-CERN users login and restrict upload Issue
In SSO application:
See dev for reference
- Role
cern-usershould change to notrequired - Add new role with
Minimum Level of Assuranceand identifierauthenticated-user.- Enable:
This role is required to access my application - Enable:
This role applies to all authenticated users
- Enable:
Permissions:
- Users should have
cern-userto 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-usercds access allow videos-upload-access role cern-userYou 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: