Skip to content

Commit

Permalink
Issue #473: Allow field_series to contain unlimited values
Browse files Browse the repository at this point in the history
  • Loading branch information
lkmorlan committed May 17, 2024
1 parent f0a2e5a commit 2c3ad49
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ content:
force_deepest: false
third_party_settings: { }
field_series:
type: options_select
type: entity_reference_autocomplete
weight: 2
region: content
settings: { }
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
title:
type: string_textfield
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ content:
type: data_set_facet_search_link
label: inline
settings:
format_as_list: false
format_as_list: true
third_party_settings: { }
weight: 6
region: content
Expand Down
12 changes: 10 additions & 2 deletions config/sync/core.entity_view_display.node.data_set.section_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies:
- field.field.node.data_set.field_visibility
- node.type.data_set
module:
- formatter_suite
- layout_builder
- shs
- user
Expand All @@ -52,10 +53,17 @@ content:
weight: 0
region: content
field_series:
type: entity_reference_label
type: formatter_suite_general_entity_reference
label: inline
settings:
link: false
entityReferenceStyle: title
titleCustomText: ''
classes: ''
openLinkIn: _self
linkTopic: any
listStyle: ul
listSeparator: ', '
showLink: 0
third_party_settings: { }
weight: 1
region: content
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.storage.node.field_series.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function test(): void {
[div/a[starts-with(@href, "/search?f%5B0%5D=source_system%3A")]]');
$container = $this->assertSession()->elementExists('xpath', '//div
[*[text() = "Series"]]
[div/a[starts-with(@href, "/search?f%5B0%5D=series%3A")]]');
[//ul/li/a[starts-with(@href, "/search?f%5B0%5D=series%3A")]]');

// Test Dashboard for DC user.
// These tests are here instead of in Functional tests because search does
Expand Down

0 comments on commit 2c3ad49

Please sign in to comment.