slub / slub-web-sachsendigital
Sachsen.Digital的模板、样式和配置
v3.0.0
2022-05-25 08:54 UTC
Requires
- kitodo/presentation: ^4.0|dev-master
- slub/slub-digitalcollections: ^3.0|dev-master
- typo3/cms-core: ~9.5.26|^10.4
This package is auto-updated.
Last update: 2024-09-06 11:04:51 UTC
README
此TYPO3扩展为SLUB Dresden新实施的SACHSEN.digital提供配置和设置。
安装
此扩展需要位于TYPO3扩展文件夹('typoconf/ext')中名为slub_web_sachsendigital
的文件夹中。
在TYPO3扩展管理器中激活扩展后,您需要将名为SLUB: Portal Sachsen.Digital
的静态模板包含在SACHSEN.digtal分支的源页面模板设置中。
升级到Kitodo.Presentation 4
要升级现有安装
- 遵循Kitodo.Presentation升级指南中的步骤,特别是
- 在模板中设置存储PID
- 运行升级向导和数据库更新
- 更新CSP
- 在搜索页面的列表视图插件中,设置目标PID
配置
播放器在media.typoscript中配置。
可以使用settings.shareButtons
配置书签模态中可用的哪些共享按钮
- 按钮图标:使用
- either
type = material
andicon = ...
使用指定的Material Icon, - or
type = image
andsrc =
使用指定URL的图像。
- either
- 工具提示:将
titleTranslationKey
设置为在playerTranslations
文件中定义的翻译键。 - 共享目标:在
hrefTemplate
中输入链接URL- 占位符
{url}
将被替换为要共享的URL。 - 可以使用特殊值
dlf:qr_code
生成QR码。
- 占位符
可以使用constants
配置视频播放器
prevChapterTolerance
:在返回上一章时仍可以倒退的秒数volumeStep
:按上/下箭头键时音量增加/减少的分数值seekStep
:搜索/倒回的秒数trickPlayFactor
:连续倒回/搜索的技巧播放因子forceLandscapeOnFullscreen
:是否在全屏模式下切换到横幅
前端开发
与构建JavaScript和Less代码相关的内容位于Build/
,这是本节中列出的所有命令的工作目录。
通常,Resources/Private/{JavaScript,Less}
包含编写的代码,而Resources/Public/{JavaScript,Css}
包含构建过程生成的编译代码。
入门
对于选择正确的Node版本,您可以使用NVM或检查Build/.nvmrc
。
nvm install # If you use NVM
npm install
开发
您可以使用以下命令在开发模式下构建代码并监视文件更改
nvm use # If you use NVM
npm run watch
生产
在提交之前,请运行以下命令在生产模式下构建代码
nvm use # If you use NVM
npm run build
运行测试
npm test # (Alternative) Watch mode npm test -- --watch # With coverage report npm test -- --coverage xdg-open coverage/lcov-report/index.html
Typings
npm run typecheck
# (Alternative) Watch mode
npm run tsc-watch
浏览器兼容性
npm run compat npm run compat-build
备注
- jQuery在Webpack配置中被标记为外部
依赖关系
- TYPO3 CMS 前端 (cms)
- Extbase 框架 (Extbase)
- Fluid 模板引擎 (fluid)
- Kitodo.Presentation (dlf)
- 新闻系统 (news)