[PATCH 5 of 9 saem_ref] [eac] Add missing uicfg rule

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Mar 16 17:38:20 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1489674520 -3600
#      Thu Mar 16 15:28:40 2017 +0100
# Node ID 5c08296ca40fd3af40aad181097d9ade65cd0023
# Parent  485e18d47240086af89ec46893399789c53f3743
[eac] Add missing uicfg rule

to avoid having other record ids displayed both in main tab and in description
tab.

diff --git a/cubicweb_saem_ref/views/authorityrecord.py b/cubicweb_saem_ref/views/authorityrecord.py
--- a/cubicweb_saem_ref/views/authorityrecord.py
+++ b/cubicweb_saem_ref/views/authorityrecord.py
@@ -308,10 +308,13 @@ class AuthorityRecordOtherRecordIdView(R
     subvid = 'saem.authorityrecord.other_record_id.listitem'
     _('creating EACOtherRecordId (EACOtherRecordId eac_other_record_id_of '
       'AuthorityRecord %(linkto)s)')
 
 
+pvs.tag_object_of(('*', 'eac_other_record_id_of', 'AuthorityRecord'), 'hidden')
+
+
 class OtherRecordIdListItemView(EntityView):
     """Display an EACOtherRecordId item."""
     __regid__ = 'saem.authorityrecord.other_record_id.listitem'
 
     def entity_call(self, entity, **kwargs):


More information about the saem-devel mailing list