Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-248: backend (metadata display) driven Search for OCR #252

Merged
merged 6 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions format_strawberryfield.routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,51 @@ format_strawberryfield.display_settings:
parameters:
node:
type: 'entity:node'

# Search Highlight Endpoint for a given Node file uuid and processor using an Exposed Metadata Display Entity.
format_strawberryfield.flavor_datasource_search:
path: '/do/{node}/metadata/search_endpoint/{metadataexposeconfigentity}/{fileuuid}/{processor}/{format}/{page}'
methods: [GET]
defaults:
_controller: '\Drupal\format_strawberryfield\Controller\MetadataDisplaySearchController::searchWithExposedMetadataDisplay'
format: 'json'
page: 'all'
options:
no_cache: TRUE
parameters:
node:
type: 'entity:node'
resource_type:
type: 'ado'
metadataexposeconfigentity:
type: 'entity:metadataexpose_entity'
fileuuid: 'all'
processor: 'ocr'
format: 'json'
page: 'all'
requirements:
_entity_access: 'node.view'

# Search Highlight Endpoint for a given Node file uuid and processor using Metadata Display Entity.
format_strawberryfield.flavor_datasource_search_template:
path: '/do/{node}/metadata/search/{metadatadisplayentity}/{fileuuid}/{processor}/{format}/{page}'
methods: [GET]
defaults:
_controller: '\Drupal\format_strawberryfield\Controller\MetadataDisplaySearchController::searchWithExposedMetadataDisplay'
format: 'json'
page: 'all'
options:
no_cache: TRUE
parameters:
node:
type: 'entity:node'
resource_type:
type: 'ado'
metadatadisplayentity:
type: 'entity:metadatadisplay_entity'
fileuuid: 'all'
processor: 'ocr'
format: 'json'
page: 'all'
requirements:
_entity_access: 'node.view'
Loading