Commit 3e514dc5 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[ui] No boxes for entities related to a concept or scheme from their primary view

Related to #14157219
parent fe4825937b4b
...@@ -966,6 +966,10 @@ pvs.tag_subject_of(('*', 'seda_classification_rule', '*'), 'hidden') ...@@ -966,6 +966,10 @@ pvs.tag_subject_of(('*', 'seda_classification_rule', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_classification_rule', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_classification_rule', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_need_authorization', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_need_authorization', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_need_authorization', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_need_authorization', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_classification_level', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_ref_non_rule_id_to', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_rule', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_final_action', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_archive_unit', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_archive_unit', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_archive_unit', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_archive_unit', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_content', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_content', '*'), 'hidden')
...@@ -978,6 +982,9 @@ pvs.tag_subject_of(('*', 'seda_restriction_value', '*'), 'hidden') ...@@ -978,6 +982,9 @@ pvs.tag_subject_of(('*', 'seda_restriction_value', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_restriction_value', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_restriction_value', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_restriction_end_date', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_restriction_end_date', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_restriction_end_date', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_restriction_end_date', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_description_level', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_language_to', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_description_language_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_version_id', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_gps_version_id', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_version_id', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_gps_version_id', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_altitude', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_gps_altitude', '*'), 'hidden')
...@@ -994,6 +1001,7 @@ pvs.tag_subject_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden') ...@@ -994,6 +1001,7 @@ pvs.tag_subject_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_date_stamp', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_gps_date_stamp', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_date_stamp', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_gps_date_stamp', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_event_type_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_is_version_of', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_is_version_of', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_is_version_of', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_is_version_of', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_replaces', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_replaces', '*'), 'hidden')
...@@ -1010,12 +1018,15 @@ pvs.tag_subject_of(('*', 'seda_temporal', '*'), 'hidden') ...@@ -1010,12 +1018,15 @@ pvs.tag_subject_of(('*', 'seda_temporal', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_temporal', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_temporal', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_juridictional', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_juridictional', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_juridictional', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_juridictional', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_keyword_reference_to', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_keyword_type_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_custodial_history_item', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_custodial_history_item', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_custodial_history_item', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_custodial_history_item', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_custodial_history_file', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_custodial_history_file', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_custodial_history_file', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_custodial_history_file', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_relationship', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_relationship', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_relationship', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_relationship', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_data_object_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_width', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_width', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_width', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_width', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_height', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_height', '*'), 'hidden')
...@@ -1034,6 +1045,8 @@ pvs.tag_subject_of(('*', 'seda_weight', '*'), 'hidden') ...@@ -1034,6 +1045,8 @@ pvs.tag_subject_of(('*', 'seda_weight', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_weight', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_weight', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_number_of_page', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_number_of_page', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_number_of_page', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_number_of_page', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_unit', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_type_relationship', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_creating_application_name', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_creating_application_name', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_creating_application_name', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_creating_application_name', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_creating_application_version', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_creating_application_version', '*'), 'hidden')
...@@ -1050,38 +1063,53 @@ pvs.tag_subject_of(('*', 'seda_format_litteral', '*'), 'hidden') ...@@ -1050,38 +1063,53 @@ pvs.tag_subject_of(('*', 'seda_format_litteral', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_format_litteral', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_format_litteral', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_mime_type_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_mime_type_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_mime_type_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_mime_type_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_mime_type_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_format_id_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_format_id_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_format_id_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_format_id_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_format_id_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_encoding_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_encoding_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_encoding_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_encoding_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_encoding_to', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_algorithm', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_reply_code_list_version', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_reply_code_list_version', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_reply_code_list_version', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_reply_code_list_version', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_message_digest_algorithm_code_list_version', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_message_digest_algorithm_code_list_version', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_message_digest_algorithm_code_list_version', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_message_digest_algorithm_code_list_version', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_mime_type_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_mime_type_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_mime_type_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_mime_type_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_mime_type_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_encoding_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_encoding_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_encoding_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_encoding_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_encoding_code_list_version_to', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_file_format_code_list_version', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_file_format_code_list_version', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_file_format_code_list_version', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_file_format_code_list_version', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_compression_algorithm_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_compression_algorithm_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_compression_algorithm_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_compression_algorithm_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_compression_algorithm_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_data_object_version_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_data_object_version_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_data_object_version_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_data_object_version_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_data_object_version_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_storage_rule_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_storage_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_storage_rule_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_storage_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_storage_rule_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_appraisal_rule_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_appraisal_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_appraisal_rule_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_appraisal_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_appraisal_rule_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_access_rule_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_access_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_access_rule_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_access_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_access_rule_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_dissemination_rule_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_dissemination_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_dissemination_rule_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_dissemination_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_dissemination_rule_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_reuse_rule_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_reuse_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_reuse_rule_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_reuse_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_reuse_rule_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_classification_rule_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_classification_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_classification_rule_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_classification_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_classification_rule_code_list_version_to', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_relationship_code_list_version_from', '*'), 'hidden') pvs.tag_subject_of(('*', 'seda_relationship_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_relationship_code_list_version_from', '*'), 'hidden') pvs.tag_object_of(('*', 'seda_relationship_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_relationship_code_list_version_to', '*'), 'hidden')
rec = uicfg.reledit_ctrl rec = uicfg.reledit_ctrl
......
...@@ -156,6 +156,8 @@ class UICFGGenerator(CodeGenerator): ...@@ -156,6 +156,8 @@ class UICFGGenerator(CodeGenerator):
role = mapping.composite or 'subject' role = mapping.composite or 'subject'
yield mapping.rtype, neg_role(role), section yield mapping.rtype, neg_role(role), section
yield mapping.rtype, role, section yield mapping.rtype, role, section
elif 'Concept' in mapping.objtypes or 'ConceptScheme' in mapping.objtypes:
yield mapping.rtype, 'object', 'hidden'
def reledit_ctrl_for_e_type_mapping(self, mapping): def reledit_ctrl_for_e_type_mapping(self, mapping):
for rtype, target_etype in sorted(mapping.attributes.items()): for rtype, target_etype in sorted(mapping.attributes.items()):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment