Skip to content

Commit

Permalink
Merge pull request #727 from UN-OCHA/develop
Browse files Browse the repository at this point in the history
Deploy 16-11-2022
  • Loading branch information
lazysoundsystem authored Nov 16, 2022
2 parents 472d3e2 + db1c6a5 commit 84666c7
Show file tree
Hide file tree
Showing 18 changed files with 249 additions and 97 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"drupal/views_data_export": "^1.1",
"drupal/viewsreference": "^2.0.0-beta3",
"drupal/webform": "^6.1.2",
"drupal/xmlsitemap": "^1.4",
"drush/drush": "^10.0.0",
"npm-asset/select2": "^4.0",
"oomphinc/composer-installers-extender": "^2.0",
Expand Down
276 changes: 182 additions & 94 deletions composer.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions composer.patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"drupal/search_api": {
"https://www.drupal.org/project/search_api/issues/3130004 - Facets query part is lost in views": "https://git.drupalcode.org/project/search_api/-/merge_requests/8.diff"
},
"drupal/search_api_attachments": {
"#3084967-41: Don't store full extracted file content data in the database": "https://www.drupal.org/files/issues/2021-08-10/search_api_attachments_files_cache-3084967-41.patch"
},
"drupal/search_api_solr": {
"#3314711-21: empty specific languages": "https://www.drupal.org/files/issues/2022-10-24/search_api_solr-empty-specific-languages-3314711-21.patch"
},
Expand Down
1 change: 1 addition & 0 deletions config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ module:
webform_ui: 0
menu_link_content: 1
pathauto: 1
xmlsitemap: 1
views: 10
paragraphs: 11
minimal: 1000
Expand Down
2 changes: 2 additions & 0 deletions config/search_api_attachments.admin_config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_core:
default_config_hash: 9o2nyVLLLeuFsboLJzHBTA0DoHb4TmUj6rGPG_cLXHY
extraction_method: solr_extractor
cache_backend: search_api_attachments.cache_files
tika_extractor_configuration:
java_path: java
tika_path: ''
Expand All @@ -19,3 +20,4 @@ python_pdf2txt_extractor_configuration:
pdftotext_extractor_configuration:
pdftotext_path: pdftotext
preserve_cache: true
read_text_files_directly: false
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.group.iasc_group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.7
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.group.iasc_space.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.7
changefreq: 60
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.6
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.announcement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.oa_event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.oa_section.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.oa_wiki_page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.panopoly_landing_page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.panopoly_page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
3 changes: 3 additions & 0 deletions config/xmlsitemap.settings.node.service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: true
priority: 0.5
changefreq: 60
16 changes: 16 additions & 0 deletions config/xmlsitemap.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
_core:
default_config_hash: 58nI4vVTGv677fB42ySkQN9iTenfZvvW-xJlXODHdV4
minimum_lifetime: 0
xsl: 1
prefetch_aliases: 1
chunk_size: auto
batch_limit: 100
path: xmlsitemap
frontpage_priority: !!float 1
frontpage_changefreq: 86400
lastmod_format: 'Y-m-d\TH:i\Z'
gz: false
clean_url: 0
disable_cron_regeneration: false
i18n_selection_mode: simple
metatag_exclude_noindex: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 1a239bd9-073e-4787-9a5d-5b4a52814681
langcode: en
status: true
dependencies: { }
id: g3XYqcXbSKPVBDODwnT6pq7oqhCFkPryj4vVqrl_Kfc
label: IASC
context:
language: en
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ class IascServicesSearch extends ControllerBase {
* {@inheritdoc}
*/
public static function execute(Request $request) {
$active_facets = iasc_service_landing_block_facets();
$active_facets = array_keys(iasc_service_landing_block_facets());
$filters = [];

foreach ($active_facets as $facet_name) {
$facets = $request->get($facet_name);
$facets = $request->get($facet_name, []);

if (!is_array($facets)) {
$facets = [$facets];
}

foreach ($facets as $facet) {
$filters[] = $facet;
if (!empty($facet)) {
$filters[] = $facet;
}
}
}

Expand Down

0 comments on commit 84666c7

Please sign in to comment.