Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3470 Additional Course Fields #3495

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.az_course.field_az_course_term
- field.field.node.az_course.field_az_course_title
- field.field.node.az_course.field_az_course_types
- field.field.node.az_course.field_az_course_units
- field.field.node.az_course.field_az_subject_and_catalog
- field.field.node.az_course.field_az_subject_code
- node.type.az_course
Expand All @@ -30,7 +31,7 @@ content:
third_party_settings: { }
field_az_academic_program:
type: options_select
weight: 16
weight: 17
region: content
settings: { }
third_party_settings: { }
Expand All @@ -44,7 +45,7 @@ content:
third_party_settings: { }
field_az_course_attributes:
type: options_select
weight: 14
weight: 15
region: content
settings: { }
third_party_settings: { }
Expand All @@ -58,15 +59,15 @@ content:
third_party_settings: { }
field_az_course_instructor:
type: link_default
weight: 17
weight: 18
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_az_course_term:
type: options_select
weight: 15
weight: 16
region: content
settings: { }
third_party_settings: { }
Expand All @@ -80,10 +81,17 @@ content:
third_party_settings: { }
field_az_course_types:
type: options_select
weight: 13
weight: 14
region: content
settings: { }
third_party_settings: { }
field_az_course_units:
type: number
weight: 13
region: content
settings:
placeholder: ''
third_party_settings: { }
field_az_subject_and_catalog:
type: string_textfield
weight: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.az_course.field_az_course_term
- field.field.node.az_course.field_az_course_title
- field.field.node.az_course.field_az_course_types
- field.field.node.az_course.field_az_course_units
- field.field.node.az_course.field_az_subject_and_catalog
- field.field.node.az_course.field_az_subject_code
- node.type.az_course
Expand Down Expand Up @@ -44,6 +45,7 @@ third_party_settings:
children:
- smart_title
- field_az_course_description
- field_az_course_units
- links
label: 'Card Body'
parent_name: group_card
Expand Down Expand Up @@ -81,10 +83,19 @@ content:
third_party_settings: { }
weight: 4
region: content
field_az_course_units:
type: number_integer
label: inline
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 5
region: content
links:
settings: { }
third_party_settings: { }
weight: 5
weight: 6
region: content
smart_title:
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.az_course.field_az_course_term
- field.field.node.az_course.field_az_course_title
- field.field.node.az_course.field_az_course_types
- field.field.node.az_course.field_az_course_units
- field.field.node.az_course.field_az_subject_and_catalog
- field.field.node.az_course.field_az_subject_code
- node.type.az_course
Expand All @@ -32,6 +33,15 @@ content:
third_party_settings: { }
weight: 1
region: content
field_az_course_units:
type: number_integer
label: inline
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 2
region: content
links:
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.az_course.field_az_course_term
- field.field.node.az_course.field_az_course_title
- field.field.node.az_course.field_az_course_types
- field.field.node.az_course.field_az_course_units
- field.field.node.az_course.field_az_subject_and_catalog
- field.field.node.az_course.field_az_subject_code
- node.type.az_course
Expand Down Expand Up @@ -39,6 +40,7 @@ hidden:
field_az_course_term: true
field_az_course_title: true
field_az_course_types: true
field_az_course_units: true
field_az_subject_and_catalog: true
field_az_subject_code: true
smart_title: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_az_course_units
- node.type.az_course
id: node.az_course.field_az_course_units
field_name: field_az_course_units
entity_type: node
bundle: az_course
label: 'Course Units'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: 0
max: null
prefix: ''
suffix: ''
field_type: integer
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- node
id: node.field_az_course_units
field_name: field_az_course_units
entity_type: node
type: integer
settings:
unsigned: false
size: normal
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ display:
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
Expand Down
8 changes: 8 additions & 0 deletions modules/custom/az_course/migrations/az_courses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ source:
name: catalog_number
label: Catalog Number
selector: ns1:catalog_nbr
-
name: units
label: Units
selector: ns1:units
-
# Squash data from multiple sections into this one.
name: course_type
Expand Down Expand Up @@ -58,6 +62,10 @@ process:
field_az_course_description/value: description
field_az_subject_code: subject_code
field_az_catalog_number: catalog_number
field_az_course_units:
plugin: callback
callable: intval
source: units
field_az_subject_and_catalog:
plugin: concat
source:
Expand Down