Commit 38d917c4 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[uicfg] Hide relation to a profile from authority record POV

as we already did for concept and scheme.
parent b8fc498d0227
......@@ -938,6 +938,8 @@ afs.tag_object_of(('*', 'seda_repository_object_pid', '*'), 'main', 'inlined')
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_description_level', '*'), 'hidden')
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')
......
......@@ -158,7 +158,9 @@ class UICFGGenerator(CodeGenerator):
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):
......
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