From 89697ed887f5b47b775dd3becbd77b0898bacec3 Mon Sep 17 00:00:00 2001 From: Joel Brockbank Date: Wed, 6 Dec 2023 10:00:07 -0500 Subject: [PATCH 1/6] Adding reports --- ..._variant.user_reports-panels_variant-0.yml | 50 ++ ...ews.view.information_management_report.yml | 455 +++++++++++++++ config/sync/views.view.most_viewed.yml | 526 ++++++++++++++++++ html/modules/custom/bc_dc/bc_dc.tokens.inc | 77 +++ 4 files changed, 1108 insertions(+) create mode 100644 config/sync/page_manager.page_variant.user_reports-panels_variant-0.yml create mode 100644 config/sync/views.view.information_management_report.yml create mode 100644 config/sync/views.view.most_viewed.yml create mode 100644 html/modules/custom/bc_dc/bc_dc.tokens.inc diff --git a/config/sync/page_manager.page_variant.user_reports-panels_variant-0.yml b/config/sync/page_manager.page_variant.user_reports-panels_variant-0.yml new file mode 100644 index 00000000..9eaf074d --- /dev/null +++ b/config/sync/page_manager.page_variant.user_reports-panels_variant-0.yml @@ -0,0 +1,50 @@ +uuid: e1ef889d-b9fc-44fa-98e6-bc737c3f84a4 +langcode: en +status: true +dependencies: + config: + - page_manager.page.user_reports + - views.view.most_viewed + module: + - panels + - views +id: user_reports-panels_variant-0 +label: Panels +weight: 0 +variant: panels_variant +variant_settings: + id: panels_variant + label: null + weight: 0 + uuid: 5e5411ad-ef00-4d69-855b-ee2a01d91feb + blocks: + c3391005-8449-458c-9b09-f2d252320e0b: + id: 'views_block:most_viewed-block_1' + label: '' + label_display: visible + provider: views + context_mapping: { } + views_label: '' + items_per_page: none + region: main + weight: 0 + uuid: c3391005-8449-458c-9b09-f2d252320e0b + css_classes: + - '' + html_id: '' + css_styles: '' + page_title: Reports + layout: bcbb_bricks + layout_settings: + label: '' + builder: standard + storage_type: page_manager + storage_id: user_reports-panels_variant-0 + css_classes: + - '' + html_id: '' + css_styles: '' +page: user_reports +selection_criteria: { } +selection_logic: and +static_context: { } diff --git a/config/sync/views.view.information_management_report.yml b/config/sync/views.view.information_management_report.yml new file mode 100644 index 00000000..7562d902 --- /dev/null +++ b/config/sync/views.view.information_management_report.yml @@ -0,0 +1,455 @@ +uuid: e4c8bd2b-767d-4cd6-984b-9ce8279e2569 +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_information_schedule + - node.type.data_set + module: + - node + - user +id: information_management_report +label: 'Information management report' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: Reports + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: Name + 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: false + ellipsis: false + 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 + 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_information_schedule: + id: field_information_schedule + table: node__field_information_schedule + field: field_information_schedule + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: 'Current schedule' + 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: '' + 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 + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: entity_link + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: true + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: 'btn btn-secondary' + 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 + text: View + output_url_as_text: false + absolute: false + pager: + type: full + options: + offset: 0 + 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: Apply + 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: perm + options: + perm: 'access content' + cache: + type: none + options: { } + empty: { } + sorts: { } + arguments: + field_information_schedule_target_id: + id: field_information_schedule_target_id + table: node__field_information_schedule + field: field_information_schedule_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: numeric + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: token + default_argument_options: + argument: '[global:bc_dc_infosched_leafterms]' + process: 1 + and_or: ',' + all_option: 0 + debug: 1 + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: true + not: true + filters: + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + data_set: data_set + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: title_op + label: Name + description: '' + use_operator: false + operator: title_op + operator_limit_selection: false + operator_list: { } + identifier: title + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + data_catalogue_administrator: '0' + data_catalogue_manager: '0' + data_catalogue_editor: '0' + data_catalogue_user: '0' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + title: title + field_information_schedule: field_information_schedule + default: '-1' + info: + title: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_information_schedule: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: false + summary: '' + empty_table: false + caption: '' + description: '' + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + css_class: p-4 + header: + result: + id: result + table: views + field: result + relationship: none + group_type: group + admin_label: '' + plugin_id: result + empty: false + content: "

Information schedule missing

\r\n\r\nDisplaying @start - @end of @total" + footer: { } + display_extenders: { } + 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_information_schedule' + information_schedule: + id: information_schedule + display_title: Page + display_plugin: page + position: 2 + display_options: + display_extenders: { } + path: user/%user/reports/information-schedule + menu: + type: none + title: 'Information schedule' + description: '' + weight: 5 + expanded: false + menu_name: main + parent: '' + context: '0' + 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_information_schedule' diff --git a/config/sync/views.view.most_viewed.yml b/config/sync/views.view.most_viewed.yml new file mode 100644 index 00000000..82075aa1 --- /dev/null +++ b/config/sync/views.view.most_viewed.yml @@ -0,0 +1,526 @@ +uuid: c057eece-2f47-4496-b8fe-a79c8ac61d9c +langcode: en +status: true +dependencies: + config: + - node.type.data_set + module: + - node + - statistics + - user +id: most_viewed +label: 'Most viewed' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Most viewed data sets' + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: Name + 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: false + ellipsis: false + 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: string + settings: + link_to_entity: 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 + timestamp: + id: timestamp + table: node_counter + field: timestamp + relationship: none + group_type: group + admin_label: '' + plugin_id: node_counter_timestamp + label: 'Last viewed' + 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: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + date_format: html_date + custom_date_format: '' + timezone: '' + daycount: + id: daycount + table: node_counter + field: daycount + relationship: none + group_type: group + admin_label: '' + plugin_id: statistics_numeric + label: 'Views today' + 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: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: false + format_plural_string: !!binary MQNAY291bnQ= + prefix: '' + suffix: '' + totalcount: + id: totalcount + table: node_counter + field: totalcount + relationship: none + group_type: group + admin_label: '' + plugin_id: statistics_numeric + label: 'Total views' + 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: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: false + format_plural_string: !!binary MQNAY291bnQ= + prefix: '' + suffix: '' + pager: + type: full + options: + offset: 0 + items_per_page: 20 + 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: Apply + 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: perm + options: + perm: 'access content' + cache: + type: none + options: { } + empty: { } + sorts: + totalcount: + id: totalcount + table: node_counter + field: totalcount + relationship: none + group_type: group + admin_label: '' + plugin_id: standard + order: DESC + expose: + label: '' + field_identifier: '' + exposed: false + arguments: { } + filters: + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + data_set: data_set + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: title_op + label: Name + description: '' + use_operator: false + operator: title_op + operator_limit_selection: false + operator_list: { } + identifier: title + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + data_catalogue_administrator: '0' + data_catalogue_manager: '0' + data_catalogue_editor: '0' + data_catalogue_user: '0' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + totalcount: + id: totalcount + table: node_counter + field: totalcount + relationship: none + group_type: group + admin_label: '' + plugin_id: numeric + operator: '>' + value: + min: '' + max: '' + value: '0' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + min_placeholder: '' + max_placeholder: '' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + title: title + timestamp: timestamp + daycount: daycount + totalcount: totalcount + default: '-1' + info: + title: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + timestamp: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + daycount: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + totalcount: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: false + summary: '' + empty_table: false + caption: '' + description: '' + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + header: + result: + id: result + table: views + field: result + relationship: none + group_type: group + admin_label: '' + plugin_id: result + empty: false + content: 'Displaying @start - @end of @total' + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + block_1: + id: block_1 + display_title: Block + display_plugin: block + position: 1 + display_options: + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/html/modules/custom/bc_dc/bc_dc.tokens.inc b/html/modules/custom/bc_dc/bc_dc.tokens.inc new file mode 100644 index 00000000..4c333cb5 --- /dev/null +++ b/html/modules/custom/bc_dc/bc_dc.tokens.inc @@ -0,0 +1,77 @@ + t('Global tokens'), + 'description' => t('Tokens with no context.'), + ]; + + // Current-user tokens. + $tokens['global']['bc_dc_infosched_leafterms'] = [ + 'name' => t('Information schedule child terms'), + 'description' => t('Returns the child terms of the information schedule vocabulary concatentated with +.'), + ]; + + return ['types' => $types, 'tokens' => $tokens]; +} + +/** + * Implements hook_tokens(). + */ +function bc_dc_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) { + $replacements = []; + + // Global tokens. + if ($type == 'global') { + foreach ($tokens as $name => $original) { + // Find the desired token by name. + switch ($name) { + case 'bc_dc_infosched_leafterms': + // Getting first the entity type manager service. + $manager = \Drupal::entityTypeManager()->getStorage('taxonomy_term'); + // Load the taxonomy tree using values. + $tree = $manager->loadTree( + 'information_schedule', + 0, + NULL, + TRUE + ); + + $results = []; + foreach ($tree as $term) { + // Check if has children or not to validate if is at last level. + if (empty($manager->loadChildren($term->id()))) { + $results[] = $term->id(); + } + } + if (!empty($results)) { + $replacements[$original] = implode('+', $results); + } + break; + } + } + } + + return $replacements; +} From 708356ce6d91c68879e53b08c6efef11053cd750 Mon Sep 17 00:00:00 2001 From: Joel Brockbank Date: Wed, 6 Dec 2023 10:14:50 -0500 Subject: [PATCH 2/6] Fixing php error --- html/modules/custom/bc_dc/bc_dc.tokens.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/html/modules/custom/bc_dc/bc_dc.tokens.inc b/html/modules/custom/bc_dc/bc_dc.tokens.inc index 4c333cb5..b576cb48 100644 --- a/html/modules/custom/bc_dc/bc_dc.tokens.inc +++ b/html/modules/custom/bc_dc/bc_dc.tokens.inc @@ -6,9 +6,6 @@ */ use Drupal\Core\Render\BubbleableMetadata; -use Drupal\Core\Entity\RevisionableStorageInterface; -use Drupal\Core\Entity\RevisionLogInterface; -use Drupal\tac_lite\Form\SchemeForm; use Drupal\node\Entity\Node; use Drupal\taxonomy\Entity\Term; use Drupal\Core\Url; @@ -61,14 +58,14 @@ function bc_dc_tokens($type, $tokens, array $data, array $options, BubbleableMet $results = []; foreach ($tree as $term) { // Check if has children or not to validate if is at last level. - if (empty($manager->loadChildren($term->id()))) { + if (empty($manager->loadChildren($term->id()))) { $results[] = $term->id(); } } if (!empty($results)) { $replacements[$original] = implode('+', $results); } - break; + break; } } } From 84cf61c4958f9c4a15db93d187d22d71046b55a4 Mon Sep 17 00:00:00 2001 From: Joel Brockbank Date: Wed, 6 Dec 2023 10:23:33 -0500 Subject: [PATCH 3/6] Fixing whitespace error --- html/modules/custom/bc_dc/bc_dc.tokens.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/modules/custom/bc_dc/bc_dc.tokens.inc b/html/modules/custom/bc_dc/bc_dc.tokens.inc index b576cb48..f7cd6e1d 100644 --- a/html/modules/custom/bc_dc/bc_dc.tokens.inc +++ b/html/modules/custom/bc_dc/bc_dc.tokens.inc @@ -22,12 +22,12 @@ function bc_dc_token_info() { $types['global'] = [ 'name' => t('Global tokens'), 'description' => t('Tokens with no context.'), - ]; + ]; // Current-user tokens. $tokens['global']['bc_dc_infosched_leafterms'] = [ 'name' => t('Information schedule child terms'), - 'description' => t('Returns the child terms of the information schedule vocabulary concatentated with +.'), + 'description' => t('Returns the child terms of the information schedule vocabulary concatentated with +.'), ]; return ['types' => $types, 'tokens' => $tokens]; @@ -54,7 +54,7 @@ function bc_dc_tokens($type, $tokens, array $data, array $options, BubbleableMet NULL, TRUE ); - + $results = []; foreach ($tree as $term) { // Check if has children or not to validate if is at last level. From 6dc829ed239f5cdf9cd1218b5828220f40c9a509 Mon Sep 17 00:00:00 2001 From: Joel Brockbank Date: Wed, 6 Dec 2023 10:46:29 -0500 Subject: [PATCH 4/6] Removing unused use statements --- html/modules/custom/bc_dc/bc_dc.tokens.inc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/html/modules/custom/bc_dc/bc_dc.tokens.inc b/html/modules/custom/bc_dc/bc_dc.tokens.inc index f7cd6e1d..0fe40f9d 100644 --- a/html/modules/custom/bc_dc/bc_dc.tokens.inc +++ b/html/modules/custom/bc_dc/bc_dc.tokens.inc @@ -6,11 +6,6 @@ */ use Drupal\Core\Render\BubbleableMetadata; -use Drupal\node\Entity\Node; -use Drupal\taxonomy\Entity\Term; -use Drupal\Core\Url; -use Drupal\Core\Link; -use Drupal\Core\Render\Markup; /** * Implements hook_token_info(). From 98da1e1a62e46c57ce724ca8368c1c1c93b9e775 Mon Sep 17 00:00:00 2001 From: Joel Brockbank Date: Wed, 6 Dec 2023 13:48:49 -0500 Subject: [PATCH 5/6] Adding SHS backbone library patch --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 559bceca..53c86ed7 100644 --- a/composer.json +++ b/composer.json @@ -156,6 +156,7 @@ "2918537 - Cannot save unpublished versions of published content for users without manage book privileges": "https://www.drupal.org/files/issues/2022-12-14/2918537-92.patch" }, "drupal/shs": { + "3357151 - Backbone js error, wrong library": "https://www.drupal.org/project/shs/issues/3357151", "3284824 - Schema definition for entity_reference_shs field formatter missing": "https://www.drupal.org/files/issues/2022-06-09/shs-schema_formatter_missing-3284824-2.patch" }, "drupal/tac_lite": { From dad4bb5379ad00f037da39cdf1ab45f736f262b6 Mon Sep 17 00:00:00 2001 From: Joel Brockbank Date: Wed, 6 Dec 2023 13:52:16 -0500 Subject: [PATCH 6/6] Adding correct shs backbone patch --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 53c86ed7..1ebd79f8 100644 --- a/composer.json +++ b/composer.json @@ -156,7 +156,7 @@ "2918537 - Cannot save unpublished versions of published content for users without manage book privileges": "https://www.drupal.org/files/issues/2022-12-14/2918537-92.patch" }, "drupal/shs": { - "3357151 - Backbone js error, wrong library": "https://www.drupal.org/project/shs/issues/3357151", + "3357151 - Backbone js error, wrong library": "https://www.drupal.org/files/issues/2023-04-28/3357151_change_backbone_lib_001.patch", "3284824 - Schema definition for entity_reference_shs field formatter missing": "https://www.drupal.org/files/issues/2022-06-09/shs-schema_formatter_missing-3284824-2.patch" }, "drupal/tac_lite": {