Commit c6865463 authored by Yann Voté's avatar Yann Voté
Browse files

[ui] Fix custodial history tab

parent ba23f3a96d2d
......@@ -855,10 +855,6 @@ msgstr ""
msgid "SEDACustodialHistoryItem"
msgstr ""
msgctxt "inlined:SEDAContent.seda_custodial_history_item.object"
msgid "SEDACustodialHistoryItem"
msgstr ""
msgid "SEDACustodialHistoryItem_plural"
msgstr ""
......@@ -2859,10 +2855,6 @@ msgstr ""
msgid "add a SEDACustodialHistoryItem"
msgstr ""
msgctxt "inlined:SEDAContent.seda_custodial_history_item.object"
msgid "add a SEDACustodialHistoryItem"
msgstr ""
msgid "add a SEDADataObjectReference"
msgstr ""
......@@ -4092,6 +4084,12 @@ msgid ""
"SEDASeqAltArchiveUnitArchiveUnitRefIdManagement %(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDACustodialHistoryItem (SEDACustodialHistoryItem "
"seda_custodial_history_item SEDAContent %(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDADataObjectReference (SEDADataObjectReference "
......
......@@ -858,10 +858,6 @@ msgstr ""
msgid "SEDACustodialHistoryItem"
msgstr ""
msgctxt "inlined:SEDAContent.seda_custodial_history_item.object"
msgid "SEDACustodialHistoryItem"
msgstr ""
msgid "SEDACustodialHistoryItem_plural"
msgstr ""
......@@ -1745,7 +1741,7 @@ msgid "SEDArestrictionValue_plural"
msgstr ""
msgid "SEDAwhen"
msgstr ""
msgstr "date"
msgctxt "inlined:SEDACustodialHistoryItem.seda_when.object"
msgid "SEDAwhen"
......@@ -2862,10 +2858,6 @@ msgstr ""
msgid "add a SEDACustodialHistoryItem"
msgstr ""
msgctxt "inlined:SEDAContent.seda_custodial_history_item.object"
msgid "add a SEDACustodialHistoryItem"
msgstr ""
msgid "add a SEDADataObjectReference"
msgstr ""
......@@ -4095,6 +4087,12 @@ msgid ""
"SEDASeqAltArchiveUnitArchiveUnitRefIdManagement %(linkto)s)"
msgstr "création d'un contenu dans l'unité d'archive %(linkto)s"
#, python-format
msgid ""
"creating SEDACustodialHistoryItem (SEDACustodialHistoryItem "
"seda_custodial_history_item SEDAContent %(linkto)s)"
msgstr "création d'un élément d'historique pour %(linkto)s"
#, python-format
msgid ""
"creating SEDADataObjectReference (SEDADataObjectReference "
......@@ -5169,7 +5167,7 @@ msgid "seda_custodial_history_item"
msgstr ""
msgid "seda_custodial_history_item_object"
msgstr ""
msgstr "élément d'historique"
msgctxt "SEDAContent"
msgid "seda_custodial_history_item_object"
......
......@@ -121,7 +121,7 @@ event_rtype_role = [
]
history_rtype_role = [
('seda_custodial_history', 'object'),
('seda_custodial_history_item', 'object'),
]
# Remove from relations section and autoform what is shown in tabs
......@@ -264,10 +264,13 @@ class ContentEventTab(viewlib.SubObjectsTab):
_('creating SEDAEvent (SEDAEvent seda_event SEDAContent %(linkto)s)')
class ContentHistoryTab(tabs.PrimaryTab):
class ContentHistoryTab(viewlib.SubObjectsTab):
"""Display custodial history information about an archive unit content."""
__regid__ = 'seda_content_history_tab'
__select__ = viewlib.SubObjectsTab.__select__ & is_instance('SEDAContent')
rtype_role_targets = [(rtype, role, None) for rtype, role in history_rtype_role]
rsection, display_ctrl = rtags_from_rtype_role_targets('SEDAContent', rtype_role_targets)
_('creating SEDACustodialHistoryItem (SEDACustodialHistoryItem seda_custodial_history_item '
'SEDAContent %(linkto)s)')
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