From 55d8a76b2007300f91f328fcd94b457ca20a603a Mon Sep 17 00:00:00 2001 From: Tom Virgin Date: Thu, 12 Dec 2024 09:36:17 -0500 Subject: [PATCH 1/6] LibCal daily hours sidebar embed widget for single library --- .../src/Plugin/EmbedSource/LibCal.php | 351 ++++++++++++++++++ 1 file changed, 351 insertions(+) create mode 100644 web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php new file mode 100644 index 000000000..cdebade6e --- /dev/null +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php @@ -0,0 +1,351 @@ +\ + + + +EOT; + + /** + * {@inheritdoc} + */ + protected static $instructions = 'Place embed code for a LibCal listing. DO NOT INCLUDE JQUERY (make sure that option is unchecked in LibCal). Styles will be ignored.'; + + /** + * {@inheritdoc} + */ + protected static $example = '
'; + +} \ No newline at end of file From 00107c73e49449268edc0eb2e50bd48e323e4611 Mon Sep 17 00:00:00 2001 From: Tom Virgin Date: Thu, 12 Dec 2024 11:59:22 -0500 Subject: [PATCH 2/6] Added new line to end of file --- .../modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php index cdebade6e..f754434bb 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php @@ -348,4 +348,4 @@ function waitForJQuery(callback) { */ protected static $example = '
'; -} \ No newline at end of file +} From df811e4404bdf02b83ee2800334ea928cb42b454 Mon Sep 17 00:00:00 2001 From: Tom Virgin Date: Thu, 12 Dec 2024 16:45:09 -0500 Subject: [PATCH 3/6] Exporting config to allow for embed in sidebar --- .../config/local_config/devel.settings.yml | 12 - .../local_config/devel.toolbar.settings.yml | 10 - .../config/local_config/system.menu.devel.yml | 13 - ...ty_form_display.media.document.default.yml | 10 - ...m_display.media.document.media_library.yml | 2 - ...ty_view_display.media.document.default.yml | 2 - ...w_display.media.document.media_library.yml | 2 - ..._view_display.node.event.search_result.yml | 19 +- ....entity_view_display.node.page.default.yml | 7 +- ...y_view_display.node.page.search_result.yml | 19 +- ...y_view_display.node.post.search_result.yml | 24 +- ...iew_display.node.profile.search_result.yml | 19 +- .../config/sync/core.extension.yml | 1 + ...ld.field.media.document.field_metatags.yml | 21 -- .../field.storage.media.field_metatags.yml | 19 -- .../config/sync/metatag.settings.yml | 11 +- .../sync/search_api.index.secure_index.yml | 165 ---------- .../config/sync/views.view.content.yml | 75 +---- .../config/sync/views.view.manage_events.yml | 75 +---- .../config/sync/views.view.manage_pages.yml | 75 +---- .../config/sync/views.view.manage_posts.yml | 75 +---- .../sync/views.view.manage_profiles.yml | 154 +--------- .../config/sync/views.view.search.yml | 26 ++ .../config/sync/views.view.search_cas.yml | 285 ------------------ 24 files changed, 85 insertions(+), 1036 deletions(-) delete mode 100644 web/profiles/custom/yalesites_profile/config/local_config/devel.settings.yml delete mode 100644 web/profiles/custom/yalesites_profile/config/local_config/devel.toolbar.settings.yml delete mode 100644 web/profiles/custom/yalesites_profile/config/local_config/system.menu.devel.yml delete mode 100644 web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml delete mode 100644 web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml delete mode 100644 web/profiles/custom/yalesites_profile/config/sync/search_api.index.secure_index.yml delete mode 100644 web/profiles/custom/yalesites_profile/config/sync/views.view.search_cas.yml diff --git a/web/profiles/custom/yalesites_profile/config/local_config/devel.settings.yml b/web/profiles/custom/yalesites_profile/config/local_config/devel.settings.yml deleted file mode 100644 index 9a2d3056c..000000000 --- a/web/profiles/custom/yalesites_profile/config/local_config/devel.settings.yml +++ /dev/null @@ -1,12 +0,0 @@ -_core: - default_config_hash: Aqx6J0yYT6mVqT0fbjeP4JkoL-700nmudVF5d6Pq2Yo -page_alter: false -raw_names: false -error_handlers: - 1: 1 -rebuild_theme: false -debug_mail_file_format: '%to-%subject-%datetime.mail.txt' -debug_mail_directory: 'temporary://devel-mails' -devel_dumper: kint -debug_logfile: 'temporary://drupal_debug.txt' -debug_pre: true diff --git a/web/profiles/custom/yalesites_profile/config/local_config/devel.toolbar.settings.yml b/web/profiles/custom/yalesites_profile/config/local_config/devel.toolbar.settings.yml deleted file mode 100644 index 76ada43ce..000000000 --- a/web/profiles/custom/yalesites_profile/config/local_config/devel.toolbar.settings.yml +++ /dev/null @@ -1,10 +0,0 @@ -_core: - default_config_hash: IQjf_ytthngZTAk_MU8-74VecArWD3G5g0oEH6PM6GA -toolbar_items: - - devel.admin_settings_link - - devel.cache_clear - - devel.container_info.service - - devel.menu_rebuild - - devel.reinstall - - devel.route_info - - devel.run_cron diff --git a/web/profiles/custom/yalesites_profile/config/local_config/system.menu.devel.yml b/web/profiles/custom/yalesites_profile/config/local_config/system.menu.devel.yml deleted file mode 100644 index 57ba77681..000000000 --- a/web/profiles/custom/yalesites_profile/config/local_config/system.menu.devel.yml +++ /dev/null @@ -1,13 +0,0 @@ -uuid: a805251d-285f-4e0a-9d95-17041a98fea7 -langcode: en -status: true -dependencies: - enforced: - module: - - devel -_core: - default_config_hash: 3V-l1uuTcyirYOGLPZV5HWaDfr02uEbWZJIwc8Byz-c -id: devel -label: Development -description: 'Links related to Devel module.' -locked: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml index 2ab30817d..105d67861 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml @@ -4,13 +4,11 @@ status: true dependencies: config: - field.field.media.document.field_media_file - - field.field.media.document.field_metatags - field.field.media.document.field_tags - media.type.document module: - chosen_field - file - - metatag id: media.document.default targetEntityType: media bundle: document @@ -23,14 +21,6 @@ content: settings: progress_indicator: throbber third_party_settings: { } - field_metatags: - type: metatag_firehose - weight: 3 - region: content - settings: - sidebar: true - use_details: true - third_party_settings: { } field_tags: type: chosen_select weight: 2 diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml index 043efd999..a7cdcf1d4 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml @@ -5,7 +5,6 @@ dependencies: config: - core.entity_form_mode.media.media_library - field.field.media.document.field_media_file - - field.field.media.document.field_metatags - field.field.media.document.field_tags - media.type.document module: @@ -39,7 +38,6 @@ content: third_party_settings: { } hidden: created: true - field_metatags: true path: true revision_log_message: true status: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml index d548f4e1e..c31582543 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml @@ -4,7 +4,6 @@ status: true dependencies: config: - field.field.media.document.field_media_file - - field.field.media.document.field_metatags - field.field.media.document.field_tags - media.type.document module: @@ -23,7 +22,6 @@ content: region: content hidden: created: true - field_metatags: true field_tags: true name: true search_api_excerpt: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml index 72bba4425..296612bea 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml @@ -5,7 +5,6 @@ dependencies: config: - core.entity_view_mode.media.media_library - field.field.media.document.field_media_file - - field.field.media.document.field_metatags - field.field.media.document.field_tags - image.style.media_library - media.type.document @@ -30,7 +29,6 @@ content: hidden: created: true field_media_file: true - field_metatags: true field_tags: true name: true search_api_excerpt: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.search_result.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.search_result.yml index 6a7f21b2b..c8bea2ac5 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.search_result.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.search_result.yml @@ -51,7 +51,7 @@ content: content_moderation_control: settings: { } third_party_settings: { } - weight: 0 + weight: -20 region: content field_external_source: type: link_separate @@ -63,29 +63,19 @@ content: rel: '' target: '' third_party_settings: { } - weight: 3 - region: content - field_login_required: - type: boolean - label: hidden - settings: - format: boolean - format_custom_false: '' - format_custom_true: '' - third_party_settings: { } - weight: 4 + weight: 2 region: content field_teaser_text: type: text_default label: hidden settings: { } third_party_settings: { } - weight: 2 + weight: 1 region: content search_api_excerpt: settings: { } third_party_settings: { } - weight: 1 + weight: 0 region: content hidden: field_category: true @@ -110,6 +100,7 @@ hidden: field_localist_id: true field_localist_info: true field_localist_register_enabled: true + field_login_required: true field_metatags: true field_stream_embed_code: true field_stream_url: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml index af82f6c56..5c53a6c55 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml @@ -135,15 +135,16 @@ third_party_settings: - 'inline_block:video' sidebar: 'Custom block types': + - embed - text 'Inline blocks': + - 'inline_block:embed' - 'inline_block:text' restricted_categories: ys_layout_two_column: - sidebar: + content: - 'Chaos Tools' - 'Content fields' - - Devel - Forms - Help - 'Lists (Views)' @@ -154,7 +155,7 @@ third_party_settings: - 'YaleSites Layouts' - 'YaleSites alert' - core - content: + sidebar: - 'Chaos Tools' - 'Content fields' - Forms diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.search_result.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.search_result.yml index 41a2174cd..e4148b32b 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.search_result.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.search_result.yml @@ -26,7 +26,7 @@ content: content_moderation_control: settings: { } third_party_settings: { } - weight: 0 + weight: -20 region: content field_external_source: type: link_separate @@ -38,32 +38,23 @@ content: rel: '' target: '' third_party_settings: { } - weight: 3 - region: content - field_login_required: - type: boolean - label: hidden - settings: - format: true-false - format_custom_false: '' - format_custom_true: '' - third_party_settings: { } - weight: 4 + weight: 2 region: content field_teaser_text: type: text_default label: hidden settings: { } third_party_settings: { } - weight: 2 + weight: 1 region: content search_api_excerpt: settings: { } third_party_settings: { } - weight: 1 + weight: 0 region: content hidden: field_category: true + field_login_required: true field_metatags: true field_tags: true field_teaser_media: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml index ffbfc299a..55223405e 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml @@ -17,7 +17,6 @@ dependencies: - field.field.node.post.layout_builder__layout - node.type.post module: - - link - text - user id: node.post.search_result @@ -25,11 +24,6 @@ targetEntityType: node bundle: post mode: search_result content: - content_moderation_control: - settings: { } - third_party_settings: { } - weight: 0 - region: content field_external_source: type: link_separate label: hidden @@ -40,33 +34,24 @@ content: rel: '' target: '' third_party_settings: { } - weight: 3 - region: content - field_login_required: - type: boolean - label: above - settings: - format: boolean - format_custom_false: '' - format_custom_true: '' - third_party_settings: { } - weight: 4 + weight: 2 region: content field_teaser_text: type: text_default label: hidden settings: { } third_party_settings: { } - weight: 2 + weight: 1 region: content search_api_excerpt: settings: { } third_party_settings: { } - weight: 1 + weight: 0 region: content hidden: field_author: true field_category: true + field_login_required: true field_metatags: true field_publish_date: true field_tags: true @@ -74,4 +59,3 @@ hidden: field_teaser_title: true layout_builder__layout: true links: true - workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.search_result.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.search_result.yml index a540cf2f2..c4154d40d 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.search_result.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.search_result.yml @@ -42,7 +42,7 @@ content: content_moderation_control: settings: { } third_party_settings: { } - weight: 0 + weight: -20 region: content field_external_source: type: link_separate @@ -54,29 +54,19 @@ content: rel: '' target: '' third_party_settings: { } - weight: 3 - region: content - field_login_required: - type: boolean - label: hidden - settings: - format: boolean - format_custom_false: '' - format_custom_true: '' - third_party_settings: { } - weight: 4 + weight: 2 region: content field_teaser_text: type: text_default label: hidden settings: { } third_party_settings: { } - weight: 2 + weight: 1 region: content search_api_excerpt: settings: { } third_party_settings: { } - weight: 1 + weight: 0 region: content hidden: field_address: true @@ -86,6 +76,7 @@ hidden: field_first_name: true field_honorific_prefix: true field_last_name: true + field_login_required: true field_media: true field_metatags: true field_position: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml b/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml index b0c770970..505611106 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml @@ -105,6 +105,7 @@ module: options: 0 override_node_options: 0 page_cache: 0 + pantheon_advanced_page_cache: 0 pantheon_secrets: 0 paragraphs_features: 0 path: 0 diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml deleted file mode 100644 index b05c99ce8..000000000 --- a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml +++ /dev/null @@ -1,21 +0,0 @@ -uuid: 3c7d1cca-b0b1-4ee7-886b-ad6fa0400e92 -langcode: en -status: true -dependencies: - config: - - field.storage.media.field_metatags - - media.type.document - module: - - metatag -id: media.document.field_metatags -field_name: field_metatags -entity_type: media -bundle: document -label: Metadata -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: metatag diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml deleted file mode 100644 index 5ad13bd77..000000000 --- a/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml +++ /dev/null @@ -1,19 +0,0 @@ -uuid: 241ba697-d6b1-4a31-88e4-a696c1aee334 -langcode: en -status: true -dependencies: - module: - - media - - metatag -id: media.field_metatags -field_name: field_metatags -entity_type: media -type: metatag -settings: { } -module: metatag -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml b/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml index 1c96e1c52..e3681c1bb 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml @@ -1,7 +1,4 @@ entity_type_groups: - media: - document: - ai_engine: ai_engine node: event: basic: basic @@ -10,14 +7,12 @@ entity_type_groups: post: basic: basic open_graph: open_graph -separator: ',' tag_trim_method: beforeValue -use_maxlength: true tag_trim_maxlength: - metatag_maxlength_title: null - metatag_maxlength_description: null metatag_maxlength_abstract: null + metatag_maxlength_description: null + metatag_maxlength_title: null + metatag_maxlength_og_description: null metatag_maxlength_og_site_name: null metatag_maxlength_og_title: null - metatag_maxlength_og_description: null tag_scroll_max_height: '' diff --git a/web/profiles/custom/yalesites_profile/config/sync/search_api.index.secure_index.yml b/web/profiles/custom/yalesites_profile/config/sync/search_api.index.secure_index.yml deleted file mode 100644 index 6afc593e5..000000000 --- a/web/profiles/custom/yalesites_profile/config/sync/search_api.index.secure_index.yml +++ /dev/null @@ -1,165 +0,0 @@ -uuid: eaac8aa4-ebe9-48a6-8d40-2aefff92390f -langcode: en -status: true -dependencies: - config: - - field.storage.node.field_teaser_text - - search_api.server.database_server - module: - - node - - search_api - - search_api_exclude - - search_api_html_element_filter -id: secure_index -name: 'Node and CAS Index' -description: '' -read_only: false -field_settings: - field_teaser_text: - label: 'Teaser Text' - datasource_id: 'entity:node' - property_path: field_teaser_text - type: text - dependencies: - config: - - field.storage.node.field_teaser_text - rendered_item: - label: 'Rendered HTML output' - property_path: rendered_item - type: text - configuration: - roles: - - authenticated - view_mode: - 'entity:node': - event: default - page: default - post: default - profile: default - status: - label: Published - datasource_id: 'entity:node' - property_path: status - type: boolean - dependencies: - module: - - node - type: - label: 'Content type' - datasource_id: 'entity:node' - property_path: type - type: string - dependencies: - module: - - node - uid: - label: 'Authored by' - datasource_id: 'entity:node' - property_path: uid - type: integer - dependencies: - module: - - node -datasource_settings: - 'entity:node': - bundles: - default: true - selected: { } - languages: - default: true - selected: { } -processor_settings: - add_url: { } - aggregated_field: { } - custom_value: { } - entity_status: { } - entity_type: { } - highlight: - weights: - postprocess_query: 0 - prefix: '' - suffix: '' - excerpt: true - excerpt_always: true - excerpt_length: 256 - exclude_fields: { } - highlight: always - highlight_partial: false - html_element_filter: - weights: - postprocess_query: -30 - preprocess_index: -50 - all_fields: 0 - fields: - - field_teaser_text - - rendered_item - - type - css_selectors: .visually-hidden - html_filter: - weights: - preprocess_index: -49 - preprocess_query: -48 - all_fields: false - fields: - - field_teaser_text - - rendered_item - title: true - alt: true - tags: - b: 2 - h1: 5 - h2: 3 - h3: 2 - strong: 2 - ignorecase: - weights: - preprocess_index: -48 - preprocess_query: -47 - all_fields: true - fields: - - field_teaser_text - - rendered_item - - type - language_with_fallback: { } - node_exclude: { } - rendered_item: { } - stemmer: - weights: - preprocess_index: -42 - preprocess_query: -42 - all_fields: false - fields: - - field_teaser_text - - rendered_item - exceptions: - mexican: mexic - texan: texa - tokenizer: - weights: - preprocess_index: -45 - preprocess_query: -44 - all_fields: false - fields: - - field_teaser_text - - rendered_item - spaces: '' - ignored: ._- - overlap_cjk: 1 - minimum_word_size: '3' - transliteration: - weights: - preprocess_index: -47 - preprocess_query: -46 - all_fields: true - fields: - - field_teaser_text - - rendered_item - - type -tracker_settings: - default: - indexing_order: fifo -options: - cron_limit: 50 - index_directly: true - track_changes_in_references: true -server: database_server diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml index cec84f922..926a6f286 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml @@ -299,15 +299,15 @@ display: multi_type: separator separator: ', ' field_api_classes: false - uid: - id: uid - table: node_field_revision - field: uid + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid relationship: none group_type: group admin_label: '' entity_type: node - entity_field: uid + entity_field: revision_uid plugin_id: field label: Author exclude: false @@ -440,71 +440,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - revision_uid: - id: revision_uid - table: node_revision - field: revision_uid - relationship: none - group_type: group - admin_label: '' - entity_type: node - entity_field: revision_uid - plugin_id: field - label: 'Last Updated By' - 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: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: false - group_column: target_id - 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 operations: id: operations table: node diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml index 7216c3d50..ad6f951ae 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml @@ -469,15 +469,15 @@ display: multi_type: separator separator: ', ' field_api_classes: false - uid: - id: uid - table: node_field_data - field: uid + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid relationship: none group_type: group admin_label: '' entity_type: node - entity_field: uid + entity_field: revision_uid plugin_id: field label: Author exclude: false @@ -610,71 +610,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - revision_uid: - id: revision_uid - table: node_revision - field: revision_uid - relationship: none - group_type: group - admin_label: '' - entity_type: node - entity_field: revision_uid - plugin_id: field - label: 'Last Updated By' - 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: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: false - group_column: target_id - 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 operations: id: operations table: node diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml index 6ca4e7bc5..63f8d9215 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml @@ -279,15 +279,15 @@ display: multi_type: separator separator: ', ' field_api_classes: false - uid: - id: uid - table: node_field_data - field: uid + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid relationship: none group_type: group admin_label: '' entity_type: node - entity_field: uid + entity_field: revision_uid plugin_id: field label: Author exclude: false @@ -420,71 +420,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - revision_uid: - id: revision_uid - table: node_revision - field: revision_uid - relationship: none - group_type: group - admin_label: '' - entity_type: node - entity_field: revision_uid - plugin_id: field - label: 'Last Updated By' - 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: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: false - group_column: target_id - 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 operations: id: operations table: node diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml index c2d60e0c0..fcbea9e45 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml @@ -390,15 +390,15 @@ display: multi_type: separator separator: ', ' field_api_classes: false - uid: - id: uid - table: node_field_data - field: uid + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid relationship: none group_type: group admin_label: '' entity_type: node - entity_field: uid + entity_field: revision_uid plugin_id: field label: Author exclude: false @@ -531,71 +531,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - revision_uid: - id: revision_uid - table: node_revision - field: revision_uid - relationship: none - group_type: group - admin_label: '' - entity_type: node - entity_field: revision_uid - plugin_id: field - label: 'Last Updated By' - 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: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: false - group_column: target_id - 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 operations: id: operations table: node diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml index 834cb03f8..4b0fd05d6 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml @@ -470,138 +470,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - status: - id: status - table: node_field_data - field: status - relationship: none - group_type: group - admin_label: '' - entity_type: node - entity_field: status - plugin_id: field - label: Published - 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: true - 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: boolean - settings: - format: yes-no - format_custom_false: '' - format_custom_true: '' - 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 - uid: - id: uid - table: node_field_data - field: uid - relationship: none - group_type: group - admin_label: '' - entity_type: node - entity_field: uid - plugin_id: field - label: Author - 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: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: false - group_column: target_id - 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 changed: id: changed table: node_field_data @@ -678,17 +546,17 @@ display: multi_type: separator separator: ', ' field_api_classes: false - revision_uid: - id: revision_uid - table: node_revision - field: revision_uid + status: + id: status + table: node_field_data + field: status relationship: none group_type: group admin_label: '' entity_type: node - entity_field: revision_uid + entity_field: status plugin_id: field - label: 'Last Updated By' + label: Published exclude: false alter: alter_text: false @@ -729,11 +597,13 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label + click_sort_column: value + type: boolean settings: - link: false - group_column: target_id + format: yes-no + format_custom_false: '' + format_custom_true: '' + group_column: value group_columns: { } group_rows: true delta_limit: 0 diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.search.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.search.yml index 6c78b3782..e9cc3b568 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.search.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.search.yml @@ -279,3 +279,29 @@ display: - 'config:field.storage.node.field_teaser_text' - 'config:search_api.index.node_index' - 'search_api_list:node_index' + page_1: + id: page_1 + display_title: Page + display_plugin: page + position: 1 + display_options: + exposed_block: false + display_extenders: + metatag_display_extender: + metatags: + title: '[view:title] | [site:name]' + tokenize: true + path: search + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_teaser_text' + - 'config:search_api.index.node_index' + - 'search_api_list:node_index' diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.search_cas.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.search_cas.yml deleted file mode 100644 index 03412e2e0..000000000 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.search_cas.yml +++ /dev/null @@ -1,285 +0,0 @@ -uuid: 9fc73ca3-3fb4-486a-af60-ebc8213dc241 -langcode: en -status: true -dependencies: - config: - - field.storage.node.field_teaser_text - - search_api.index.secure_index - module: - - search_api - - text -id: search_cas -label: 'Search CAS' -module: views -description: 'Shows all items including CAS items (titles only via twig)' -tag: '' -base_table: search_api_index_secure_index -base_field: search_api_id -display: - default: - id: default - display_title: Default - display_plugin: default - position: 0 - display_options: - title: 'Search CAS' - fields: - field_teaser_text: - id: field_teaser_text - table: search_api_index_secure_index - field: field_teaser_text - relationship: none - group_type: group - admin_label: '' - entity_type: null - entity_field: null - 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: true - 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: text_default - settings: { } - 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: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - pager: - type: full - options: - offset: 0 - pagination_heading_level: h4 - items_per_page: 10 - total_pages: null - id: 0 - tags: - next: ›› - previous: ‹‹ - first: '« First' - last: 'Last »' - expose: - items_per_page: false - items_per_page_label: 'Items per page' - items_per_page_options: '5, 10, 25, 50' - items_per_page_options_all: false - items_per_page_options_all_label: '- All -' - offset: false - offset_label: Offset - quantity: 9 - exposed_form: - type: basic - options: - submit_button: Search - reset_button: false - reset_button_label: Reset - exposed_sorts_label: 'Sort by' - expose_sort_order: true - sort_asc_label: Asc - sort_desc_label: Desc - access: - type: none - options: { } - cache: - type: search_api_tag - options: { } - empty: - area: - id: area - table: views - field: area - relationship: none - group_type: group - admin_label: '' - plugin_id: text - empty: true - content: - value: 'There were no results for your search.' - format: basic_html - tokenize: false - sorts: - search_api_relevance: - id: search_api_relevance - table: search_api_index_secure_index - field: search_api_relevance - relationship: none - group_type: group - admin_label: '' - plugin_id: search_api - order: DESC - expose: - label: '' - field_identifier: '' - exposed: false - arguments: - search_api_fulltext: - id: search_api_fulltext - table: search_api_index_secure_index - field: search_api_fulltext - relationship: none - group_type: group - admin_label: '' - plugin_id: search_api_fulltext - default_action: default - exception: - value: all - title_enable: false - title: All - title_enable: true - title: 'Search results: {{ arguments.search_api_fulltext }}' - default_argument_type: query_parameter - default_argument_options: - query_param: keywords - fallback: '' - multiple: and - summary_options: { } - summary: - sort_order: asc - number_of_records: 0 - format: default_summary - specify_validation: true - validate: - type: none - fail: empty - validate_options: { } - break_phrase: false - not: false - parse_mode: terms - conjunction: AND - fields: { } - search_api_datasource: - id: search_api_datasource - table: search_api_index_secure_index - field: search_api_datasource - relationship: none - group_type: group - admin_label: '' - plugin_id: search_api - default_action: default - exception: - value: all - title_enable: false - title: All - title_enable: false - title: '' - default_argument_type: query_parameter - default_argument_options: - query_param: type - fallback: '' - multiple: and - summary_options: { } - summary: - sort_order: asc - number_of_records: 0 - format: default_summary - specify_validation: true - validate: - type: none - fail: ignore - validate_options: { } - break_phrase: false - not: false - filters: { } - style: - type: default - options: - row_class: '' - default_row_class: true - uses_fields: false - row: - type: search_api - options: - view_modes: - 'entity:node': - event: search_result - page: search_result - post: search_result - profile: search_result - query: - type: search_api_query - options: - bypass_access: true - skip_access: true - preserve_facet_query_args: false - query_tags: { } - relationships: { } - header: - result_plural: - id: result_plural - table: views - field: result_plural - relationship: none - group_type: group - admin_label: '' - plugin_id: result_plural - empty: false - content: '
@total search result
' - content_plural: '
@total search results
' - plural_count_token: '@total' - footer: { } - display_extenders: - metatag_display_extender: - metatags: { } - tokenize: false - cache_metadata: - max-age: -1 - contexts: - - 'languages:language_content' - - 'languages:language_interface' - - url - - url.query_args - - 'user.node_grants:view' - tags: - - 'config:field.storage.node.field_teaser_text' - - 'config:search_api.index.secure_index' - - 'search_api_list:secure_index' From cb05dbe17b5d90fba91961e3fcfa8a3e5dd6feba Mon Sep 17 00:00:00 2001 From: Tom Virgin Date: Fri, 13 Dec 2024 10:22:59 -0500 Subject: [PATCH 4/6] Added a jQuery dependency for ys_embed --- .../modules/custom/ys_embed/ys_embed.libraries.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml new file mode 100644 index 000000000..885755258 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml @@ -0,0 +1,6 @@ +ys_embed.libcal: + version: 1.x + js: + js/libcal.js: {} + dependencies: + - core/jquery \ No newline at end of file From e6ef150e8bc78c7212a55e9c3501ab28f81560d8 Mon Sep 17 00:00:00 2001 From: Tom Virgin Date: Mon, 16 Dec 2024 11:46:42 -0500 Subject: [PATCH 5/6] Testing jQuery dependency --- .../modules/custom/ys_embed/ys_embed.libraries.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml index 885755258..adb4322d9 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.libraries.yml @@ -1,6 +1,4 @@ ys_embed.libcal: version: 1.x - js: - js/libcal.js: {} dependencies: - core/jquery \ No newline at end of file From b82f7c845c9bfe4f9d00eca23c461d4a8224dd60 Mon Sep 17 00:00:00 2001 From: Tom Virgin Date: Mon, 16 Dec 2024 13:18:10 -0500 Subject: [PATCH 6/6] Rebuilding to test with updated Atomic dependency --- .../modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php index f754434bb..31134fe9d 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/LibCal.php @@ -156,7 +156,7 @@ function waitForJQuery(callback) { if (typeof jQuery !== 'undefined') { callback(jQuery); } else { - console.error('jQuery not loaded. Embed code will not work.'); + console.error('jQuery not loaded. Embed code will not work.'); } }); }