[ui] No boxes for entities related to a concept or scheme from their primary view
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 08 Jul 2016 13:38:03 +0200
changeset 1370 365d91dcf2b5
parent 1369 fe4825937b4b
child 1371 f446c9a1c147
[ui] No boxes for entities related to a concept or scheme from their primary view Related to #14157219
views/uicfg.py
xsd2uicfg.py
--- a/views/uicfg.py	Fri Jul 08 12:16:01 2016 +0200
+++ b/views/uicfg.py	Fri Jul 08 13:38:03 2016 +0200
@@ -966,6 +966,10 @@
 pvs.tag_object_of(('*', 'seda_classification_rule', '*'), 'hidden')
 pvs.tag_subject_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_object_of(('*', 'seda_archive_unit', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_content', '*'), 'hidden')
@@ -978,6 +982,9 @@
 pvs.tag_object_of(('*', 'seda_restriction_value', '*'), 'hidden')
 pvs.tag_subject_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_object_of(('*', 'seda_gps_version_id', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_gps_altitude', '*'), 'hidden')
@@ -994,6 +1001,7 @@
 pvs.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden')
 pvs.tag_subject_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_object_of(('*', 'seda_is_version_of', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_replaces', '*'), 'hidden')
@@ -1010,12 +1018,15 @@
 pvs.tag_object_of(('*', 'seda_temporal', '*'), 'hidden')
 pvs.tag_subject_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_object_of(('*', 'seda_custodial_history_item', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_custodial_history_file', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_custodial_history_file', '*'), 'hidden')
 pvs.tag_subject_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_object_of(('*', 'seda_width', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_height', '*'), 'hidden')
@@ -1034,6 +1045,8 @@
 pvs.tag_object_of(('*', 'seda_weight', '*'), 'hidden')
 pvs.tag_subject_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_object_of(('*', 'seda_creating_application_name', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_creating_application_version', '*'), 'hidden')
@@ -1050,38 +1063,53 @@
 pvs.tag_object_of(('*', 'seda_format_litteral', '*'), '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_to', '*'), '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_to', '*'), 'hidden')
 pvs.tag_subject_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_subject_of(('*', 'seda_reply_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_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_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_subject_of(('*', 'seda_file_format_code_list_version', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), '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_to', '*'), 'hidden')
 
 
 rec = uicfg.reledit_ctrl
--- a/xsd2uicfg.py	Fri Jul 08 12:16:01 2016 +0200
+++ b/xsd2uicfg.py	Fri Jul 08 13:38:03 2016 +0200
@@ -156,6 +156,8 @@
             role = mapping.composite or 'subject'
             yield mapping.rtype, neg_role(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):
         for rtype, target_etype in sorted(mapping.attributes.items()):