Skip to content

Commit

Permalink
Merge pull request #72 from rosiel/thumbnails
Browse files Browse the repository at this point in the history
Add thumbnail view and view with fallback.
  • Loading branch information
rosiel authored Mar 15, 2023
2 parents 92125bc + f5b5d9d commit 7864f06
Show file tree
Hide file tree
Showing 9 changed files with 855 additions and 69 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"drupal/transliterate_filenames": "^2.0",
"drupal/twig_tweak": "^3.2",
"drupal/views_data_export": "^1.2",
"drupal/views_field_view": "^1.0@beta",
"drush/drush": "^10.3",
"islandora-rdm/islandora_fits": "dev-8.x-1.x as 1.x-dev",
"islandora/advanced_search": "dev-contrib",
Expand Down
71 changes: 66 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ module:
update: 0
user: 0
views_data_export: 0
views_field_view: 0
views_nested_details: 0
views_ui: 0
content_translation: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ configuration:
source_term_uri: 'http://pcdm.org/use#OriginalFile'
derivative_term_uri: 'http://pcdm.org/use#ThumbnailImage'
mimetype: image/jpeg
args: '-thumbnail 100x100'
args: '-thumbnail 220x220'
scheme: public
path: '[date:custom:Y]-[date:custom:m]/[node:nid]-[term:name].jpg'
115 changes: 86 additions & 29 deletions config/sync/views.view.solr_search_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- search_api.index.default_solr_index
module:
- search_api
- views_field_view
_core:
default_config_hash: d-DwLzBXnDh7as84BBK0Pxv16Ypczqg_TF9tjAyNgjU
id: solr_search_content
Expand All @@ -25,6 +26,76 @@ display:
display_options:
title: 'Search Content'
fields:
title:
id: title
table: search_api_index_default_solr_index
field: title
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_field
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: h3
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: false
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
field_rendering: false
fallback_handler: search_api
fallback_options:
link_to_item: true
use_highlighting: true
multi_type: separator
multi_separator: ', '
nid:
id: nid
table: search_api_index_default_solr_index
Expand Down Expand Up @@ -105,14 +176,14 @@ display:
format_plural_values:
- '1'
- '@count'
title:
id: title
table: search_api_index_default_solr_index
field: title
view:
id: view
table: views
field: view
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_field
plugin_id: view
label: ''
exclude: false
alter:
Expand Down Expand Up @@ -143,38 +214,20 @@ display:
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_class: align-right
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: h3
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: false
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
field_rendering: false
fallback_handler: search_api
fallback_options:
link_to_item: true
use_highlighting: true
multi_type: separator
multi_separator: ', '
view: thumbnail
display: block_2
arguments: '{{ raw_fields.nid }}'
field_resource_type:
id: field_resource_type
table: search_api_index_default_solr_index
Expand Down Expand Up @@ -493,7 +546,7 @@ display:
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
hide_empty: true
empty_zero: false
hide_alter_empty: true
click_sort_column: value
Expand Down Expand Up @@ -706,6 +759,10 @@ display:
1: AND
style:
type: default
options:
grouping: { }
row_class: clearfix
default_row_class: true
row:
type: fields
options:
Expand Down
Loading

0 comments on commit 7864f06

Please sign in to comment.