create OCFL node.json files for each node and associated media/files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

ocfl_export.settings:
path: '/admin/config/content/ocfl-export'
defaults:
_form: '\Drupal\ocfl_export\Form\OcflSettingsForm'
_title: 'OCFL Export Settings'
requirements:
_permission: 'administer ocfl export'
ocfl_export.export_node:
path: '/admin/content/ocfl-export/{node}'
defaults:
_controller: '\Drupal\ocfl_export\Controller\OcflExportController::exportNode'
_title: 'Export to OCFL'
requirements:
_permission: 'export ocfl content'
options:
parameters:
node:
type: entity:node
ocfl_export.export_media:
path: '/admin/content/ocfl-export-media/{media}'
defaults:
_controller: '\Drupal\ocfl_export\Controller\OcflExportController::exportMedia'
_title: 'Export Media to OCFL'
requirements:
_permission: 'export ocfl content'
options:
parameters:
media:
type: entity:media
ocfl_export.view_export:
path: '/admin/content/ocfl-view/{entity_type}/{uuid}'
defaults:
_controller: '\Drupal\ocfl_export\Controller\OcflExportController::viewExport'
_title: 'View OCFL Export'
requirements:
_permission: 'export ocfl content'
entity_type: 'node|media'