feat(m0001): group acupoints by channels and update ct0002 template
This commit is contained in:
parent
5c056a89fd
commit
09bdae296f
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
"name": "Acupoints",
|
||||
"sort_order": 0,
|
||||
"content_count": 333,
|
||||
"content_count": 15,
|
||||
"content_label": "points",
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -17,16 +17,8 @@
|
|||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "alt_name_1",
|
||||
"code": "alt_name_1",
|
||||
"data_type": "text",
|
||||
"is_searchable": false,
|
||||
"is_filterable": false,
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "alt_name_2",
|
||||
"code": "alt_name_2",
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"is_searchable": false,
|
||||
"is_filterable": false,
|
||||
|
|
@ -41,121 +33,48 @@
|
|||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"name": "Content Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"is_searchable": false,
|
||||
"is_filterable": false,
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Content Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"is_searchable": false,
|
||||
"is_filterable": false,
|
||||
"default": ""
|
||||
"default": "points"
|
||||
},
|
||||
{
|
||||
"name": "Content Link",
|
||||
"code": "link",
|
||||
"definition_kind": "object",
|
||||
"is_multivalue": false,
|
||||
"is_required": false,
|
||||
"is_searchable": false,
|
||||
"is_filterable": false,
|
||||
"children": [
|
||||
{
|
||||
"name": "Type",
|
||||
"code": "type",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": true,
|
||||
"default": "content_ref",
|
||||
"allowed_values": [
|
||||
"content_ref"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "label",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "Target",
|
||||
"code": "target",
|
||||
"definition_kind": "object",
|
||||
"is_required": true,
|
||||
"children": [
|
||||
{
|
||||
"name": "Module Code",
|
||||
"code": "module_code",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": true
|
||||
},
|
||||
{
|
||||
"name": "Template Code",
|
||||
"code": "template_code",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": true
|
||||
},
|
||||
{
|
||||
"name": "Source Code",
|
||||
"code": "source_code",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": false,
|
||||
"is_searchable": false,
|
||||
"is_filterable": false,
|
||||
"metadata": {
|
||||
"lifecycle": "authoring_only",
|
||||
"description": "Canonical target content code used in source/seed JSON. Seeder resolves it to source_key before persistence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Source Key",
|
||||
"code": "source_key",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": false,
|
||||
"metadata": {
|
||||
"lifecycle": "persisted",
|
||||
"description": "Stable target identity derived from template_code and source_code."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Content ID",
|
||||
"code": "content_id",
|
||||
"data_type": "text",
|
||||
"definition_kind": "scalar",
|
||||
"is_required": false,
|
||||
"metadata": {
|
||||
"lifecycle": "runtime_hydrated",
|
||||
"description": "Target content UUID hydrated by the backend for client navigation."
|
||||
}
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"identity_contract": {
|
||||
"authoring": "source_code",
|
||||
"persisted": "source_key",
|
||||
"runtime": "content_id"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"name": "Points",
|
||||
"code": "point_codes",
|
||||
"data_type": "json",
|
||||
"multivalue": true,
|
||||
"default": [],
|
||||
"definition_kind": "scalar",
|
||||
"is_multivalue": true,
|
||||
"metadata": {
|
||||
"value_contract": {
|
||||
"kind": "content_ref",
|
||||
"contract_version": "1.0",
|
||||
"reference_type": "content_ref",
|
||||
"target_module_code": "m0001",
|
||||
"target_template_code": "m0001_ct0003",
|
||||
"cardinality": "many",
|
||||
"authoring_identity": "source_code",
|
||||
"persisted_identity": "source_key",
|
||||
"runtime_identity": "content_id",
|
||||
"resolution_pipeline": "source_code -> source_key -> content_id",
|
||||
"rules": {
|
||||
"type_must_equal": "content_ref",
|
||||
"explicit_reference_required_when_value_present": true,
|
||||
"plain_text_allowed": false,
|
||||
"source_code_authoring_only": true,
|
||||
"source_key_persisted_only": true,
|
||||
"content_id_runtime_only": true,
|
||||
"do_not_infer_reference_from_label": true,
|
||||
"do_not_infer_reference_from_plain_text": true
|
||||
"do_not_infer_reference_from_label": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -168,9 +87,9 @@
|
|||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "acu_point_index_collection",
|
||||
"collection_item": "acu_point_index_card",
|
||||
"detail": "acu_point_index_detail"
|
||||
"collection": "meridian_index_collection",
|
||||
"collection_item": "meridian_index_card",
|
||||
"detail": "meridian_index_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
|
|
@ -183,16 +102,9 @@
|
|||
"display_order": 0
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.alt_name_1",
|
||||
"attribute_key": "m0001_ct0002.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show",
|
||||
"display_order": 0
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.alt_name_2",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show",
|
||||
"display_order": 0
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.sort_order",
|
||||
|
|
@ -200,54 +112,22 @@
|
|||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.code",
|
||||
"attribute_key": "m0001_ct0002.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
"visibility": "show",
|
||||
"display_order": 0
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link",
|
||||
"attribute_key": "m0001_ct0002.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
"visibility": "show",
|
||||
"display_order": 0
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.type",
|
||||
"attribute_key": "m0001_ct0002.point_codes",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.link.target.content_id",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
"visibility": "show",
|
||||
"display_order": 1
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
@ -297,24 +177,6 @@
|
|||
"contains"
|
||||
],
|
||||
"renderer_hint": "text"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.alt_name_1",
|
||||
"label": "Alternative Name",
|
||||
"operators": [
|
||||
"starts_with",
|
||||
"contains"
|
||||
],
|
||||
"renderer_hint": "text"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0001_ct0002.alt_name_2",
|
||||
"label": "English Name",
|
||||
"operators": [
|
||||
"starts_with",
|
||||
"contains"
|
||||
],
|
||||
"renderer_hint": "text"
|
||||
}
|
||||
],
|
||||
"sort_fields": [
|
||||
|
|
@ -329,10 +191,6 @@
|
|||
{
|
||||
"field": "name",
|
||||
"label": "Point Name"
|
||||
},
|
||||
{
|
||||
"field": "alt_name_1",
|
||||
"label": "Alternative Name"
|
||||
}
|
||||
],
|
||||
"default_sort": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue