acupedia-content/m0001-acupuncture-points/templates/m0001_ct0002.json

205 lines
5.2 KiB
JSON

{
"name": "point_list_content",
"code": "m0001_ct0002",
"description": "",
"content_kind": "point",
"is_searchable": false,
"is_filterable": false,
"attribute_prefix_code": "m0001_ct0002",
"attribute_prefix_name": "acu_point_list",
"attribute_defs": [
{
"name": "Name",
"code": "name",
"data_type": "text",
"is_searchable": false,
"is_filterable": false,
"default": ""
},
{
"name": "Code",
"code": "code",
"data_type": "text",
"is_searchable": false,
"is_filterable": false,
"default": ""
},
{
"name": "Sort Order",
"code": "sort_order",
"data_type": "number",
"is_searchable": false,
"is_filterable": false,
"default": 0
},
{
"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": "points"
},
{
"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": {
"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": [
{
"client_type": "mobile",
"version_no": 1,
"is_active": true,
"mode": "collection",
"renderers": {
"collection": "meridian_index_collection",
"collection_item": "meridian_index_card",
"detail": "meridian_index_detail"
},
"link": {
"renderer": "content_link"
},
"attributes": [
{
"attribute_key": "m0001_ct0002.name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0002.code",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0001_ct0002.sort_order",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0001_ct0002.content_count",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0002.content_label",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0002.point_codes",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
}
],
"metadata": {
"content_ref_contract_version": "1.0",
"authoring_identity": "source_code",
"navigation_identity": "content_id"
}
}
],
"metadata": {
"content_reference_policy": {
"contract_version": "1.0",
"explicit_relationships_only": true,
"authoring_reference_shape": {
"type": "content_ref",
"label": "<display label>",
"target": {
"module_code": "<module code>",
"template_code": "<template code>",
"source_code": "<canonical source code>"
}
},
"persisted_reference_identity": "source_key",
"runtime_reference_identity": "content_id",
"do_not_infer_from_display_strings": true
},
"search": {
"free_text_enabled": true,
"default_logic": "and",
"fields": [
{
"attribute_key": "m0001_ct0002.code",
"label": "Point Code",
"operators": [
"eq",
"starts_with",
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0001_ct0002.name",
"label": "Point Name",
"operators": [
"eq",
"starts_with",
"contains"
],
"renderer_hint": "text"
}
],
"sort_fields": [
{
"field": "sort_order",
"label": "Sort Order"
},
{
"field": "code",
"label": "Point Code"
},
{
"field": "name",
"label": "Point Name"
}
],
"default_sort": [
{
"field": "sort_order",
"direction": "asc"
}
]
}
}
}