Compare commits

..

No commits in common. "7580b89f0fde6dec953dd8b84360c0d5487a475f" and "ef996d74c7c1382679b76be246adf091e719c5dc" have entirely different histories.

5 changed files with 19 additions and 4229 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,6 @@
{ {
"name": "Food Items", "name": "Food Items",
"sort_order": 0, "sort_order": 0,
"content_count": 441,
"content_label": "items",
"link": { "link": {
"type": "template_ref", "type": "template_ref",
"label": "Food Items", "label": "Food Items",
@ -16,19 +14,17 @@
"code": "food_items" "code": "food_items"
}, },
{ {
"name": "Categories", "name": "Effects",
"sort_order": 1, "sort_order": 1,
"content_count": 14,
"content_label": "categories",
"link": { "link": {
"type": "template_ref", "type": "template_ref",
"label": "Categories", "label": "Effects",
"target": { "target": {
"module_code": "m0031", "module_code": "m0031",
"template_code": "m0031_ct0003" "template_code": "m0031_ct0003"
} }
}, },
"code": "categories" "code": "effects"
} }
] ]
} }

View File

@ -3,12 +3,12 @@
"description": "Traditional Chinese dietary therapy, food thermal energetics (cold, cool, neutral, warm, hot), and therapeutic effects.", "description": "Traditional Chinese dietary therapy, food thermal energetics (cold, cool, neutral, warm, hot), and therapeutic effects.",
"short_description": "TCM dietary therapy and food thermal energetics.", "short_description": "TCM dietary therapy and food thermal energetics.",
"code": "m0031", "code": "m0031",
"default_template_code": "m0031_ct0001", "default_template_code": "m0031_ct0002",
"kind": "nutrition", "kind": "nutrition",
"metadata": { "metadata": {
"version": 1, "version": 1,
"status": "active", "status": "draft",
"entry_template_code": "m0031_ct0001" "entry_template_code": "m0031_ct0002"
}, },
"content_mapping": [ "content_mapping": [
{ {
@ -26,10 +26,10 @@
"template_path": "templates/m0031_ct0002.json" "template_path": "templates/m0031_ct0002.json"
}, },
{ {
"name": "Categories", "name": "Effects List",
"code": "m0031_ct0003", "code": "m0031_ct0003",
"content_kind": "nutrition", "content_kind": "nutrition",
"data_path": "data/categories.json", "data_path": "data/effects_master.json",
"template_path": "templates/m0031_ct0003.json" "template_path": "templates/m0031_ct0003.json"
} }
] ]

View File

@ -36,22 +36,6 @@
"definition_kind": "scalar", "definition_kind": "scalar",
"is_multivalue": false "is_multivalue": false
}, },
{
"name": "Content Count",
"code": "content_count",
"data_type": "number",
"default": 0,
"definition_kind": "scalar",
"is_multivalue": false
},
{
"name": "Content Label",
"code": "content_label",
"data_type": "text",
"default": "",
"definition_kind": "scalar",
"is_multivalue": false
},
{ {
"name": "Content Link", "name": "Content Link",
"code": "link", "code": "link",
@ -248,18 +232,6 @@
"empty_behavior": "hide", "empty_behavior": "hide",
"visibility": "hide" "visibility": "hide"
}, },
{
"attribute_key": "m0031_ct0001.content_count",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0031_ct0001.content_label",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{ {
"attribute_key": "m0031_ct0001.code", "attribute_key": "m0031_ct0001.code",
"empty_behavior": "hide", "empty_behavior": "hide",

View File

@ -1,12 +1,12 @@
{ {
"name": "nutrition_category_content", "name": "nutrition_effect_content",
"code": "m0031_ct0003", "code": "m0031_ct0003",
"description": "Nutrition categories classification", "description": "",
"content_kind": "nutrition", "content_kind": "nutrition",
"is_searchable": true, "is_searchable": false,
"is_filterable": true, "is_filterable": false,
"attribute_prefix_code": "m0031_ct0003", "attribute_prefix_code": "m0031_ct0003",
"attribute_prefix_name": "nutrition_category", "attribute_prefix_name": "nutrition_effect",
"attribute_defs": [ "attribute_defs": [
{ {
"name": "Source ID", "name": "Source ID",
@ -28,8 +28,8 @@
"is_searchable": true "is_searchable": true
}, },
{ {
"name": "Name", "name": "Effect Name",
"code": "name", "code": "effect_name",
"data_type": "text", "data_type": "text",
"default": "", "default": "",
"definition_kind": "scalar", "definition_kind": "scalar",
@ -38,22 +38,6 @@
"is_filterable": true, "is_filterable": true,
"is_searchable": true "is_searchable": true
}, },
{
"name": "Content Count",
"code": "content_count",
"data_type": "number",
"default": 0,
"definition_kind": "scalar",
"is_multivalue": false
},
{
"name": "Content Label",
"code": "content_label",
"data_type": "text",
"default": "items",
"definition_kind": "scalar",
"is_multivalue": false
},
{ {
"name": "Sort Order", "name": "Sort Order",
"code": "sort_order", "code": "sort_order",
@ -61,37 +45,6 @@
"default": 0, "default": 0,
"definition_kind": "scalar", "definition_kind": "scalar",
"is_multivalue": false "is_multivalue": false
},
{
"name": "Food Items",
"code": "food_items",
"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": "m0031",
"target_template_code": "m0031_ct0002",
"cardinality": "many",
"authoring_identity": "source_code",
"persisted_identity": "source_key",
"runtime_identity": "content_id",
"resolution_pipeline": "source_code -> source_key -> content_id",
"rules": {
"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
}
}
}
} }
], ],
"presentation_contracts": [ "presentation_contracts": [
@ -101,9 +54,9 @@
"is_active": true, "is_active": true,
"mode": "collection", "mode": "collection",
"renderers": { "renderers": {
"collection": "nutrition_category_collection", "collection": "nutrition_effect_collection",
"collection_item": "nutrition_category_card", "collection_item": "nutrition_effect_card",
"detail": "nutrition_category_detail" "detail": "nutrition_effect_detail"
}, },
"link": { "link": {
"renderer": "content_link" "renderer": "content_link"
@ -120,19 +73,7 @@
"visibility": "hide" "visibility": "hide"
}, },
{ {
"attribute_key": "m0031_ct0003.name", "attribute_key": "m0031_ct0003.effect_name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 10
},
{
"attribute_key": "m0031_ct0003.content_count",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0031_ct0003.content_label",
"empty_behavior": "hide", "empty_behavior": "hide",
"visibility": "show", "visibility": "show",
"display_order": 0 "display_order": 0
@ -141,12 +82,6 @@
"attribute_key": "m0031_ct0003.sort_order", "attribute_key": "m0031_ct0003.sort_order",
"empty_behavior": "hide", "empty_behavior": "hide",
"visibility": "hide" "visibility": "hide"
},
{
"attribute_key": "m0031_ct0003.food_items",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 20
} }
], ],
"metadata": { "metadata": {