[uicfg] Hide relation to a profile from authority record POV
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 01 Mar 2017 15:49:31 +0100
changeset 2389 08ff736126f1
parent 2388 b8fc498d0227
child 2399 f9ce0269a69b
[uicfg] Hide relation to a profile from authority record POV as we already did for concept and scheme.
cubicweb_seda/views/uicfg.py
cubicweb_seda/xsd2uicfg.py
--- a/cubicweb_seda/views/uicfg.py	Wed Mar 01 15:48:41 2017 +0100
+++ b/cubicweb_seda/views/uicfg.py	Wed Mar 01 15:49:31 2017 +0100
@@ -938,6 +938,8 @@
 pvs = uicfg.primaryview_section
 pvs.tag_subject_of(('*', 'seda_related_transfer_reference', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_related_transfer_reference', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_archival_agency', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_transferring_agency', '*'), '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')
@@ -1056,6 +1058,12 @@
 pvs.tag_object_of(('*', 'seda_type_to', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_language_to', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_description_language_to', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_originating_agency_to', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_submission_agency_to', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_authorized_agent_to', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_writer_to', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_addressee_to', '*'), 'hidden')
+pvs.tag_object_of(('*', 'seda_recipient_to', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_rule', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_ref_non_rule_id_to', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_custodial_history_item', '*'), 'hidden')
--- a/cubicweb_seda/xsd2uicfg.py	Wed Mar 01 15:48:41 2017 +0100
+++ b/cubicweb_seda/xsd2uicfg.py	Wed Mar 01 15:49:31 2017 +0100
@@ -158,7 +158,9 @@
             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:
+        elif ('Concept' in mapping.objtypes
+              or 'ConceptScheme' in mapping.objtypes
+              or 'AuthorityRecord' in mapping.objtypes):
             yield mapping.rtype, 'object', 'hidden'
 
     def reledit_ctrl_for_e_type_mapping(self, mapping):