Skip to content

Commit

Permalink
Updated index and search views
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnar Eivind Martinsen committed Jul 12, 2024
1 parent 7b3cf84 commit 9bbd950
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,11 @@ field_settings:
datasource_id: solr_document
property_path: thumbnail_data
type: solr_string_storage
thumbnail_url:
label: 'Thumbnail URL'
datasource_id: solr_document
property_path: thumbnail_url
type: solr_string_storage
timestamp:
label: Timestamp
datasource_id: solr_document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- search_api_solr.solr_cache.cache_fieldvalue_default_7_0_0
- search_api_solr.solr_cache.cache_filter_default_7_0_0
- search_api_solr.solr_cache.cache_persegfilter_default_7_0_0
- search_api_solr.solr_cache.cache_queryresult_default_7_0_0
- search_api_solr.solr_field_type.text_edge_und_7_0_0
- search_api_solr.solr_field_type.text_edgestring_und_6_0_0
- search_api_solr.solr_field_type.text_en_7_0_0
Expand Down Expand Up @@ -42,7 +43,7 @@ backend_config:
connector: standard
connector_config:
scheme: http
host: 172.22.0.10
host: 172.21.0.2
port: 8983
path: /
core: adc
Expand All @@ -60,8 +61,7 @@ backend_config:
optimize: false
fallback_multiple: false
disabled_field_types: { }
disabled_caches:
- cache_queryresult_default_7_0_0
disabled_caches: { }
disabled_request_handlers:
- request_handler_elevate_default_7_0_0
- request_handler_replicationmaster_default_7_0_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,59 @@ display:
use_highlighting: false
multi_type: separator
multi_separator: ', '
thumbnail_url:
id: thumbnail_url
table: search_api_index_metsis
field: thumbnail_url
relationship: none
group_type: group
admin_label: 'Thumbnail URL'
plugin_id: search_api
label: ''
exclude: true
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: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
link_to_item: false
use_highlighting: false
multi_type: separator
multi_separator: ', '
is_parent:
id: is_parent
table: search_api_index_metsis
Expand Down Expand Up @@ -256,7 +309,7 @@ display:
exclude: false
alter:
alter_text: true
text: "<div id=\"thumb-wrapper-{{id|replace({'_': '-', '.' : '-'}) }}\" class=\"res-thumb w3-padding w3-left\">\r\n<a \r\nhref=\"/metsis/map/wms?dataset={{ id}}\" >\r\n<div class=\"lazyload\" data-ajax=\"/metsis/thumbnail/{{id}}\">\r\n<img id=\"thumb-{{id|replace({'_': '-', '.' : '-'}) }}\" class=\"w3-image\"\r\n src=\"/modules/metsis/metsis_search/images/missing_map_place_holder.png\" typeof=\"Image\"/>\r\n</div>\r\n</a>\r\n</div>"
text: "{% if thumbnail_url is not null and thumbnail_url is not empty %}\r\n<div id=\"thumb-ext-{{id|replace({'_': \"-\", \".\" : \"-\"}) }}\" class=\"res-thumb w3-padding w3-left\">\r\n<a href=\"/metsis/map/wms?dataset={{ id}}\" >\r\n<img id=\"thumb-{{id|replace({'_': \"-\", \".\" : \"-\"})}}\" class=\"w3-image\" loading=\"lazy\"\r\n src=\"{{thumbnail_url}}\" typeof=\"Image\"/></a>\r\n</div>\r\n{% else %}\r\n<div id=\"thumb-wrapper-{{id|replace({'_': \"-\", \".\" : \"-\"}) }}\" class=\"res-thumb w3-padding w3-left\">\r\n<a \r\nhref=\"/metsis/map/wms?dataset={{ id}}\" >\r\n<div class=\"lazyload\" data-ajax=\"/metsis/thumbnail/{{id}}\">\r\n<img id=\"thumb-{{id|replace({'_': \"-\", \".\" : \"-\"})}}\" class=\"w3-image\"\r\n src=\"/modules/metsis/metsis_search/images/missing_map_place_holder.png\" typeof=\"Image\"/>\r\n</div>\r\n</a>\r\n</div>\r\n{%endif %}"
make_link: false
path: ''
absolute: false
Expand Down
55 changes: 54 additions & 1 deletion metsis/metsis_search/config/install/views.view.metsis_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,59 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: false
thumbnail_url:
id: thumbnail_url
table: search_api_index_metsis
field: thumbnail_url
relationship: none
group_type: group
admin_label: 'Thumbnail URL'
plugin_id: search_api
label: ''
exclude: true
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: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
link_to_item: false
use_highlighting: false
multi_type: separator
multi_separator: ', '
is_parent:
id: is_parent
table: search_api_index_metsis
Expand Down Expand Up @@ -354,7 +407,7 @@ display:
exclude: false
alter:
alter_text: true
text: "<div id=\"thumb-wrapper-{{id|replace({'_': \"-\", \".\" : \"-\"}) }}\" class=\"res-thumb w3-padding w3-left\">\r\n<a \r\nhref=\"/metsis/map/wms?dataset={{ id}}\" >\r\n<div class=\"lazyload\" data-ajax=\"/metsis/thumbnail/{{id}}\">\r\n<img id=\"thumb-{{id|replace({'_': \"-\", \".\" : \"-\"})}}\" class=\"w3-image\"\r\n src=\"/modules/metsis/metsis_search/images/missing_map_place_holder.png\" typeof=\"Image\"/>\r\n</div>\r\n</a>\r\n</div>"
text: "{% if thumbnail_url is not null and thumbnail_url is not empty %}\r\n<div id=\"thumb-ext-{{id|replace({'_': \"-\", \".\" : \"-\"}) }}\" class=\"res-thumb w3-padding w3-left\">\r\n<a href=\"/metsis/map/wms?dataset={{ id}}\" >\r\n<img id=\"thumb-{{id|replace({'_': \"-\", \".\" : \"-\"})}}\" class=\"w3-image\" loading=\"lazy\"\r\n src=\"{{thumbnail_url}}\" typeof=\"Image\"/></a>\r\n</div>\r\n{% else %}\r\n<div id=\"thumb-wrapper-{{id|replace({'_': \"-\", \".\" : \"-\"}) }}\" class=\"res-thumb w3-padding w3-left\">\r\n<a \r\nhref=\"/metsis/map/wms?dataset={{ id}}\" >\r\n<div class=\"lazyload\" data-ajax=\"/metsis/thumbnail/{{id}}\">\r\n<img id=\"thumb-{{id|replace({'_': \"-\", \".\" : \"-\"})}}\" class=\"w3-image\"\r\n src=\"/modules/metsis/metsis_search/images/missing_map_place_holder.png\" typeof=\"Image\"/>\r\n</div>\r\n</a>\r\n</div>\r\n{%endif %}"
make_link: false
path: ''
absolute: false
Expand Down

0 comments on commit 9bbd950

Please sign in to comment.