#\#CIF_2.0
##############################################################################
#                                                                            #
#                   DICTIONARY FOR IMPORT TESTING PURPOSES                   #
#                                                                            #
##############################################################################
data_BASE_DIC

    _dictionary.title            BASE_DIC
    _dictionary.class            Instance
    _dictionary.version          1.0.0
    _dictionary.date             2023-09-13
    _dictionary.uri              http://www.example.org/base.dic
    _dictionary.ddl_conformance  4.2.0
    _dictionary.namespace        BaseDic
    _description.text
;
    This is a test dictionary.

    This dictionary contains data item definitions that import
    the _name.category_id attribute from a template dictionary file.
    Although this is not allowed by the DDLm specification, such
    situations should still preferably be handled without data loss.
;
    loop_
    _dictionary_audit.version
    _dictionary_audit.date
    _dictionary_audit.revision
    1.0.0 2023-09-13 'Created the dictionary.'

save_BASE_HEAD_CATEGORY_ID
    _definition.id               BASE_HEAD_CATEGORY_ID
    _definition.scope            Category
    _definition.class            Head
    _definition.update           2023-09-13
    _description.text
;
    This category is parent of all other categories in the
    BASE_DIC dictionary.
;
    _name.category_id            BASE_DIC
    _name.object_id              BASE_HEAD_CATEGORY_ID
save_

save_TEST_IMPORT_CATEGORY_ID
    _definition.id               TEST_IMPORT_CATEGORY_ID
    _definition.scope            Category
    _definition.class            Set
    _definition.update           2019-03-28
    _description.text
;
    A category that contains items with the import statement.
;
    _name.category_id            BASE_HEAD_CATEGORY_ID
    _name.object_id              TEST_IMPORT_CATEGORY_ID
save_

save_test_import_category_id.item_1
    _definition.id             '_test_import_category_id.item_1'
    _import.get
             [{"file":'non-existant-template.cif' "save":'category_id_frame'}]
    _description.text
;
    A faulty data item definition that imports the _name.category_id attribute
    instead of having in the main definition body.
;
    _name.object_id            item_1
save_

save_test_import_category_id.item_2
    _definition.id             '_test_import_category_id.item_2'
    _import.get
             [{"file":'non-existant-template.cif' "save":'category_id_frame'}]
    _description.text
;
    A faulty data item definition that imports the _name.category_id attribute
    instead of having in the main definition body.
;
    _name.object_id            item_2
save_

save_test_import_category_id.item_3
    _definition.id             '_test_import_category_id.item_3'
    _import.get
             [{"file":'non-existant-template.cif' "save":'category_id_frame'}]
    _description.text
;
    A faulty data item definition that imports the _name.category_id attribute
    instead of having in the main definition body.
;
    _name.object_id            item_3
save_

save_test_import_category_id.item_4
    _definition.id             '_test_import_category_id.item_4'
    _name.category_id           TEST_IMPORT_CATEGORY_ID
    _import.get
             [{"file":'non-existant-template.cif' "save":'category_id_frame'}]
    _description.text
;
    A data item definition that does contain the _name.category_id attribute.
;
    _name.object_id            item_4
save_
