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

[ui] Move physical dimensions of a physical data object to their own tab

parent 2868b0e02676
......@@ -1014,10 +1014,6 @@ msgstr ""
msgid "SEDADepth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_depth.object"
msgid "SEDADepth"
msgstr ""
msgid "SEDADepth_plural"
msgstr ""
......@@ -1044,10 +1040,6 @@ msgstr ""
msgid "SEDADiameter"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_diameter.object"
msgid "SEDADiameter"
msgstr ""
msgid "SEDADiameter_plural"
msgstr ""
......@@ -1258,10 +1250,6 @@ msgstr ""
msgid "SEDAHeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_height.object"
msgid "SEDAHeight"
msgstr ""
msgid "SEDAHeight_plural"
msgstr ""
......@@ -1354,10 +1342,6 @@ msgstr ""
msgid "SEDALength"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_length.object"
msgid "SEDALength"
msgstr ""
msgid "SEDALength_plural"
msgstr ""
......@@ -1423,10 +1407,6 @@ msgstr ""
msgid "SEDANumberOfPage"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_number_of_page.object"
msgid "SEDANumberOfPage"
msgstr ""
msgid "SEDANumberOfPage_plural"
msgstr ""
......@@ -1860,10 +1840,6 @@ msgstr ""
msgid "SEDAShape"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_shape.object"
msgid "SEDAShape"
msgstr ""
msgid "SEDAShape_plural"
msgstr ""
......@@ -2018,10 +1994,6 @@ msgstr ""
msgid "SEDAThickness"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_thickness.object"
msgid "SEDAThickness"
msgstr ""
msgid "SEDAThickness_plural"
msgstr ""
......@@ -2104,20 +2076,12 @@ msgstr ""
msgid "SEDAWeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_weight.object"
msgid "SEDAWeight"
msgstr ""
msgid "SEDAWeight_plural"
msgstr ""
msgid "SEDAWidth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_width.object"
msgid "SEDAWidth"
msgstr ""
msgid "SEDAWidth_plural"
msgstr ""
......@@ -3501,10 +3465,6 @@ msgstr ""
msgid "add a SEDADepth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_depth.object"
msgid "add a SEDADepth"
msgstr ""
msgid "add a SEDADescription"
msgstr ""
......@@ -3522,10 +3482,6 @@ msgstr ""
msgid "add a SEDADiameter"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_diameter.object"
msgid "add a SEDADiameter"
msgstr ""
msgid "add a SEDADisseminationRule"
msgstr ""
......@@ -3667,10 +3623,6 @@ msgstr ""
msgid "add a SEDAHeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_height.object"
msgid "add a SEDAHeight"
msgstr ""
msgid "add a SEDAIsPartOf"
msgstr ""
......@@ -3733,10 +3685,6 @@ msgstr ""
msgid "add a SEDALength"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_length.object"
msgid "add a SEDALength"
msgstr ""
msgid "add a SEDAManagement"
msgstr ""
......@@ -3781,10 +3729,6 @@ msgstr ""
msgid "add a SEDANumberOfPage"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_number_of_page.object"
msgid "add a SEDANumberOfPage"
msgstr ""
msgid "add a SEDAOriginatingAgency"
msgstr ""
......@@ -4122,10 +4066,6 @@ msgstr ""
msgid "add a SEDAShape"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_shape.object"
msgid "add a SEDAShape"
msgstr ""
msgid "add a SEDASignature"
msgstr ""
......@@ -4241,10 +4181,6 @@ msgstr ""
msgid "add a SEDAThickness"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_thickness.object"
msgid "add a SEDAThickness"
msgstr ""
msgid "add a SEDATitle"
msgstr ""
......@@ -4303,14 +4239,6 @@ msgstr ""
msgid "add a SEDAWeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_weight.object"
msgid "add a SEDAWeight"
msgstr ""
msgid "add a SEDAWidth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_width.object"
msgid "add a SEDAWidth"
msgstr ""
......@@ -7216,6 +7144,9 @@ msgctxt "SEDAContent"
msgid "seda_originating_system_id_object"
msgstr ""
msgid "seda_pdo_dimensions"
msgstr ""
msgid "seda_physical_data_object"
msgstr ""
......
......@@ -1017,10 +1017,6 @@ msgstr ""
msgid "SEDADepth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_depth.object"
msgid "SEDADepth"
msgstr ""
msgid "SEDADepth_plural"
msgstr ""
......@@ -1047,10 +1043,6 @@ msgstr ""
msgid "SEDADiameter"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_diameter.object"
msgid "SEDADiameter"
msgstr ""
msgid "SEDADiameter_plural"
msgstr ""
......@@ -1261,10 +1253,6 @@ msgstr ""
msgid "SEDAHeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_height.object"
msgid "SEDAHeight"
msgstr ""
msgid "SEDAHeight_plural"
msgstr ""
......@@ -1357,10 +1345,6 @@ msgstr ""
msgid "SEDALength"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_length.object"
msgid "SEDALength"
msgstr ""
msgid "SEDALength_plural"
msgstr ""
......@@ -1426,10 +1410,6 @@ msgstr ""
msgid "SEDANumberOfPage"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_number_of_page.object"
msgid "SEDANumberOfPage"
msgstr ""
msgid "SEDANumberOfPage_plural"
msgstr ""
......@@ -1465,7 +1445,7 @@ msgid "SEDAOriginatingSystemId_plural"
msgstr ""
msgid "SEDAPhysicalDataObject"
msgstr ""
msgstr "objet-données physique"
msgid "SEDAPhysicalDataObject_plural"
msgstr "objets-données physiques"
......@@ -1863,10 +1843,6 @@ msgstr ""
msgid "SEDAShape"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_shape.object"
msgid "SEDAShape"
msgstr ""
msgid "SEDAShape_plural"
msgstr ""
......@@ -2021,10 +1997,6 @@ msgstr ""
msgid "SEDAThickness"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_thickness.object"
msgid "SEDAThickness"
msgstr ""
msgid "SEDAThickness_plural"
msgstr ""
......@@ -2107,20 +2079,12 @@ msgstr ""
msgid "SEDAWeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_weight.object"
msgid "SEDAWeight"
msgstr ""
msgid "SEDAWeight_plural"
msgstr ""
msgid "SEDAWidth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_width.object"
msgid "SEDAWidth"
msgstr ""
msgid "SEDAWidth_plural"
msgstr ""
......@@ -3504,10 +3468,6 @@ msgstr ""
msgid "add a SEDADepth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_depth.object"
msgid "add a SEDADepth"
msgstr ""
msgid "add a SEDADescription"
msgstr ""
......@@ -3525,10 +3485,6 @@ msgstr ""
msgid "add a SEDADiameter"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_diameter.object"
msgid "add a SEDADiameter"
msgstr ""
msgid "add a SEDADisseminationRule"
msgstr ""
......@@ -3670,10 +3626,6 @@ msgstr ""
msgid "add a SEDAHeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_height.object"
msgid "add a SEDAHeight"
msgstr ""
msgid "add a SEDAIsPartOf"
msgstr ""
......@@ -3736,10 +3688,6 @@ msgstr ""
msgid "add a SEDALength"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_length.object"
msgid "add a SEDALength"
msgstr ""
msgid "add a SEDAManagement"
msgstr ""
......@@ -3784,10 +3732,6 @@ msgstr ""
msgid "add a SEDANumberOfPage"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_number_of_page.object"
msgid "add a SEDANumberOfPage"
msgstr ""
msgid "add a SEDAOriginatingAgency"
msgstr ""
......@@ -4125,10 +4069,6 @@ msgstr ""
msgid "add a SEDAShape"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_shape.object"
msgid "add a SEDAShape"
msgstr ""
msgid "add a SEDASignature"
msgstr ""
......@@ -4244,10 +4184,6 @@ msgstr ""
msgid "add a SEDAThickness"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_thickness.object"
msgid "add a SEDAThickness"
msgstr ""
msgid "add a SEDATitle"
msgstr ""
......@@ -4306,14 +4242,6 @@ msgstr ""
msgid "add a SEDAWeight"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_weight.object"
msgid "add a SEDAWeight"
msgstr ""
msgid "add a SEDAWidth"
msgstr ""
msgctxt "inlined:SEDAPhysicalDataObject.seda_width.object"
msgid "add a SEDAWidth"
msgstr ""
......@@ -6298,7 +6226,7 @@ msgid "seda_depth"
msgstr ""
msgid "seda_depth_object"
msgstr ""
msgstr "profondeur"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_depth_object"
......@@ -6368,7 +6296,7 @@ msgid "seda_diameter"
msgstr ""
msgid "seda_diameter_object"
msgstr ""
msgstr "diamètre"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_diameter_object"
......@@ -6813,7 +6741,7 @@ msgid "seda_height"
msgstr ""
msgid "seda_height_object"
msgstr ""
msgstr "hauteur"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_height_object"
......@@ -7013,7 +6941,7 @@ msgid "seda_length"
msgstr ""
msgid "seda_length_object"
msgstr ""
msgstr "longueur"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_length_object"
......@@ -7157,7 +7085,7 @@ msgid "seda_number_of_page"
msgstr ""
msgid "seda_number_of_page_object"
msgstr ""
msgstr "nombre de pages"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_number_of_page_object"
......@@ -7219,6 +7147,9 @@ msgctxt "SEDAContent"
msgid "seda_originating_system_id_object"
msgstr ""
msgid "seda_pdo_dimensions"
msgstr "dimensions"
msgid "seda_physical_data_object"
msgstr ""
......@@ -7817,7 +7748,7 @@ msgid "seda_shape"
msgstr ""
msgid "seda_shape_object"
msgstr ""
msgstr "forme"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_shape_object"
......@@ -8101,7 +8032,7 @@ msgid "seda_thickness"
msgstr ""
msgid "seda_thickness_object"
msgstr ""
msgstr "épaisseur"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_thickness_object"
......@@ -8206,7 +8137,7 @@ msgid "seda_type_relationship_object"
msgstr ""
msgid "seda_unit"
msgstr ""
msgstr "unité"
msgctxt "SEDADepth"
msgid "seda_unit"
......@@ -8297,7 +8228,7 @@ msgid "seda_weight"
msgstr ""
msgid "seda_weight_object"
msgstr ""
msgstr "poids"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_weight_object"
......@@ -8325,7 +8256,7 @@ msgid "seda_width"
msgstr ""
msgid "seda_width_object"
msgstr ""
msgstr "largeur"
msgctxt "SEDAPhysicalDataObject"
msgid "seda_width_object"
......
......@@ -174,10 +174,19 @@ class PhysicalDataObjectTabbedPrimaryView(tabs.TabbedPrimaryView):
__select__ = tabs.TabbedPrimaryView.__select__ & is_instance('SEDAPhysicalDataObject')
tabs = [
'main_tab',
_('seda_pdo_dimensions'),
_('seda_do_relations'),
]
class PhysicalDataObjectDimensionsTab(tabs.PrimaryTab):
"""Display physical dimensions of a physical data object"""
__regid__ = 'seda_pdo_dimensions'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDAPhysicalDataObject')
rsection, display_ctrl = rtags_from_xsd_element('SEDAPhysicalDataObject', 'PhysicalDimensions')
class DataObjectRelationssTab(tabs.PrimaryTab):
"""Display relations of a binary or physical data object"""
__regid__ = 'seda_do_relations'
......
......@@ -909,23 +909,23 @@ afs.tag_object_of(('*', 'seda_data_object_version_from', '*'), 'main', 'inlined'
afs.tag_object_of(('*', 'seda_data_object_version_to', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_data_object_version_to', '*'), 'main', 'attributes')
afs.tag_subject_of(('*', 'seda_width', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_width', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_width', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_height', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_height', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_height', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_depth', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_depth', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_depth', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_shape', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_shape', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_shape', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_diameter', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_diameter', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_diameter', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_length', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_length', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_length', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_thickness', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_thickness', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_thickness', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_weight', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_weight', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_weight', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_number_of_page', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_number_of_page', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_number_of_page', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_unit', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_unit', '*'), 'main', 'attributes')
afs.tag_object_of(('*', 'seda_type_relationship', '*'), 'main', 'hidden')
......@@ -1027,6 +1027,24 @@ pvs.tag_subject_of(('*', 'seda_physical_data_object', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_physical_data_object', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_relationship', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_relationship', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_width', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_width', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_height', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_height', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_depth', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_depth', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_shape', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_shape', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_diameter', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_diameter', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_length', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_length', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_thickness', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_thickness', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_weight', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_weight', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_number_of_page', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_number_of_page', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_creating_application_name', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_creating_application_name', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_creating_application_version', '*'), 'hidden')
......
......@@ -33,7 +33,7 @@ RTYPES_IN_TAB = set((
'seda_physical_data_object',
'seda_relationship',
))
for element_name in ('CodeListVersions', 'FormatIdentification', 'FileInfo'):
for element_name in ('CodeListVersions', 'FormatIdentification', 'FileInfo', 'PhysicalDimensions'):
for rtype, role, path in XSDM_MAPPING.iter_rtype_role(element_name):
RTYPES_IN_TAB.add(rtype)
......
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