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

[ui] don't handle seda_data_object_reference globally

We've to distinguish the case of generic reference from other kind of references
available through SEDAContent (IsPartOf, VersionOf, etc).
parent 1ffc8d98bade
......@@ -891,6 +891,31 @@ msgstr ""
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgid "SEDADataObjectReference_plural"
msgstr ""
......@@ -2856,6 +2881,31 @@ msgstr ""
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgid "add a SEDADataObjectVersion"
msgstr ""
......
......@@ -891,6 +891,31 @@ msgstr ""
msgid "SEDACustodialHistoryItem_plural"
msgstr ""
msgid "SEDADataObjectReference"
msgstr "référence à un objet-données interne"
msgctxt ""
"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
msgid "SEDADataObjectReference"
msgstr ""
......@@ -2856,6 +2881,31 @@ msgstr "ajouter une référence à un fichier de journalisation externe"
msgid "add a SEDACustodialHistoryItem"
msgstr ""
msgid "add a SEDADataObjectReference"
msgstr "référence à un objet-donnée interne"
msgctxt ""
"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
msgctxt ""
"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
msgid "add a SEDADataObjectReference"
msgstr ""
......
......@@ -271,6 +271,14 @@ class ArchiveUnitDataObjectReferencesTab(ArchiveUnitSubObjectsTab):
# other for archive unit content. This is done by a mix of uicfg, form and renderer customization
# depending on a 'unit_type' parameter in form params.
pvs.tag_object_of(('*', 'seda_data_object_reference',
'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'),
'hidden')
afs.tag_object_of(('*', 'seda_data_object_reference',
'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'),
'main', 'hidden')
au_ref_afs = deepcopy(afs)
au_ref_afs.__module__ = __name__
au_ref_afs.__select__ = (is_instance('SEDAAltArchiveUnitArchiveUnitRefId')
......
......@@ -668,7 +668,7 @@ afs.tag_subject_of(('*', 'seda_seq_alt_archive_unit_archive_unit_ref_id_manageme
afs.tag_subject_of(('*', 'seda_content', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_content', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_data_object_reference', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_data_object_reference_id', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_data_object_reference_id', '*'), 'main', 'attributes')
afs.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), 'main', 'hidden')
......@@ -974,8 +974,6 @@ pvs.tag_subject_of(('*', 'seda_archive_unit', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_archive_unit', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_content', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_content', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_data_object_reference', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_restriction_value', '*'), 'hidden')
......
......@@ -43,7 +43,6 @@ RTYPES_IN_TAB = set((
'seda_reuse_rule',
'seda_classification_rule',
'seda_need_authorization',
'seda_data_object_reference',
'seda_content',
'seda_restriction_rule_id_ref',
'seda_restriction_value',
......
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