Commit 0370e5b2 authored by Yann Voté's avatar Yann Voté
Browse files

[ui] display GPS information for content in dedicated tab

parent f05455602004
......@@ -1016,14 +1016,6 @@ msgstr ""
msgid "SEDAGpsAltitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude.object"
msgid "SEDAGpsAltitude"
msgstr ""
msgid "SEDAGpsAltitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude_ref.object"
msgid "SEDAGpsAltitudeRef"
msgstr ""
......@@ -1036,24 +1028,12 @@ msgstr ""
msgid "SEDAGpsDateStamp"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_date_stamp.object"
msgid "SEDAGpsDateStamp"
msgstr ""
msgid "SEDAGpsDateStamp_plural"
msgstr ""
msgid "SEDAGpsLatitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude.object"
msgid "SEDAGpsLatitude"
msgstr ""
msgid "SEDAGpsLatitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude_ref.object"
msgid "SEDAGpsLatitudeRef"
msgstr ""
......@@ -1066,14 +1046,6 @@ msgstr ""
msgid "SEDAGpsLongitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude.object"
msgid "SEDAGpsLongitude"
msgstr ""
msgid "SEDAGpsLongitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude_ref.object"
msgid "SEDAGpsLongitudeRef"
msgstr ""
......@@ -1086,10 +1058,6 @@ msgstr ""
msgid "SEDAGpsVersionID"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_version_id.object"
msgid "SEDAGpsVersionID"
msgstr ""
msgid "SEDAGpsVersionID_plural"
msgstr ""
......@@ -3008,56 +2976,24 @@ msgstr ""
msgid "add a SEDAGpsAltitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude.object"
msgid "add a SEDAGpsAltitude"
msgstr ""
msgid "add a SEDAGpsAltitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude_ref.object"
msgid "add a SEDAGpsAltitudeRef"
msgstr ""
msgid "add a SEDAGpsDateStamp"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_date_stamp.object"
msgid "add a SEDAGpsDateStamp"
msgstr ""
msgid "add a SEDAGpsLatitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude.object"
msgid "add a SEDAGpsLatitude"
msgstr ""
msgid "add a SEDAGpsLatitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude_ref.object"
msgid "add a SEDAGpsLatitudeRef"
msgstr ""
msgid "add a SEDAGpsLongitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude.object"
msgid "add a SEDAGpsLongitude"
msgstr ""
msgid "add a SEDAGpsLongitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude_ref.object"
msgid "add a SEDAGpsLongitudeRef"
msgstr ""
msgid "add a SEDAGpsVersionID"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_version_id.object"
msgid "add a SEDAGpsVersionID"
msgstr ""
......@@ -5171,6 +5107,9 @@ msgstr ""
msgid "seda_content_event_tab"
msgstr ""
msgid "seda_content_gps_tab"
msgstr ""
msgid "seda_content_history_tab"
msgstr ""
......
......@@ -1019,14 +1019,6 @@ msgstr ""
msgid "SEDAGpsAltitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude.object"
msgid "SEDAGpsAltitude"
msgstr ""
msgid "SEDAGpsAltitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude_ref.object"
msgid "SEDAGpsAltitudeRef"
msgstr ""
......@@ -1039,24 +1031,12 @@ msgstr ""
msgid "SEDAGpsDateStamp"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_date_stamp.object"
msgid "SEDAGpsDateStamp"
msgstr ""
msgid "SEDAGpsDateStamp_plural"
msgstr ""
msgid "SEDAGpsLatitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude.object"
msgid "SEDAGpsLatitude"
msgstr ""
msgid "SEDAGpsLatitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude_ref.object"
msgid "SEDAGpsLatitudeRef"
msgstr ""
......@@ -1069,14 +1049,6 @@ msgstr ""
msgid "SEDAGpsLongitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude.object"
msgid "SEDAGpsLongitude"
msgstr ""
msgid "SEDAGpsLongitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude_ref.object"
msgid "SEDAGpsLongitudeRef"
msgstr ""
......@@ -1089,10 +1061,6 @@ msgstr ""
msgid "SEDAGpsVersionID"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_version_id.object"
msgid "SEDAGpsVersionID"
msgstr ""
msgid "SEDAGpsVersionID_plural"
msgstr ""
......@@ -3011,59 +2979,27 @@ msgstr ""
msgid "add a SEDAGpsAltitude"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude.object"
msgid "add a SEDAGpsAltitude"
msgstr ""
msgid "add a SEDAGpsAltitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_altitude_ref.object"
msgid "add a SEDAGpsAltitudeRef"
msgstr ""
msgid "add a SEDAGpsDateStamp"
msgstr "ajouter un horodatage GPS"
msgctxt "inlined:SEDAContent.seda_gps_date_stamp.object"
msgid "add a SEDAGpsDateStamp"
msgstr ""
msgid "add a SEDAGpsLatitude"
msgstr "ajouter une latitude"
msgctxt "inlined:SEDAContent.seda_gps_latitude.object"
msgid "add a SEDAGpsLatitude"
msgstr ""
msgid "add a SEDAGpsLatitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_latitude_ref.object"
msgid "add a SEDAGpsLatitudeRef"
msgstr ""
msgid "add a SEDAGpsLongitude"
msgstr "ajouter une longitude"
msgctxt "inlined:SEDAContent.seda_gps_longitude.object"
msgid "add a SEDAGpsLongitude"
msgstr ""
msgid "add a SEDAGpsLongitudeRef"
msgstr ""
msgctxt "inlined:SEDAContent.seda_gps_longitude_ref.object"
msgid "add a SEDAGpsLongitudeRef"
msgstr ""
msgid "add a SEDAGpsVersionID"
msgstr "ajouter un identifiant de version GPS"
msgctxt "inlined:SEDAContent.seda_gps_version_id.object"
msgid "add a SEDAGpsVersionID"
msgstr ""
msgid "add a SEDAHeight"
msgstr ""
......@@ -5183,6 +5119,9 @@ msgstr "dates"
msgid "seda_content_event_tab"
msgstr "évènements"
msgid "seda_content_gps_tab"
msgstr "coordonnées GPS"
msgid "seda_content_history_tab"
msgstr "historique de conservation"
......
......@@ -38,7 +38,6 @@ description_rtype_role = [
('seda_description_language_from', 'object'),
('seda_status', 'object'),
('seda_version', 'object'),
('seda_gps', 'object'),
]
identification_rtype_role = [
......@@ -80,6 +79,17 @@ date_rtype_role = [
('seda_end_date', 'object'),
]
gps_rtype_role = [
('seda_gps_version_id', 'object'),
('seda_gps_altitude', 'object'),
('seda_gps_altitude_ref', 'object'),
('seda_gps_latitude', 'object'),
('seda_gps_latitude_ref', 'object'),
('seda_gps_longitude', 'object'),
('seda_gps_longitude_ref', 'object'),
('seda_gps_date_stamp', 'object'),
]
keyword_rtype_role = [
('seda_keyword', 'object'),
]
......@@ -118,6 +128,7 @@ class ContentTabbedPrimaryView(tabs.TabbedPrimaryView):
_('seda_content_advanced_description_tab'),
_('seda_content_identification_tab'),
_('seda_content_date_tab'),
_('seda_content_gps_tab'),
_('seda_content_service_tab'),
_('seda_content_agent_tab'),
_('seda_content_coverage_tab'),
......@@ -161,6 +172,15 @@ class ContentDateTab(tabs.PrimaryTab):
rsection, display_ctrl = rtags_from_rtype_role_targets('SEDAContent', rtype_role_targets)
class ContentGpsTab(tabs.PrimaryTab):
"""Display GPS information about an archive unit content."""
__regid__ = 'seda_content_gps_tab'
rtype_role_targets = [(rtype, role, None) for rtype, role in gps_rtype_role]
rsection, display_ctrl = rtags_from_rtype_role_targets('SEDAContent', rtype_role_targets)
class ContentServiceTab(tabs.PrimaryTab):
"""Display service information about an archive unit content."""
......
......@@ -762,21 +762,21 @@ afs.tag_object_of(('*', 'seda_end_date', '*'), 'main', 'inlined')
afs.tag_subject_of(('*', 'seda_event', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_event', '*'), 'main', 'inlined')
afs.tag_subject_of(('*', 'seda_gps_version_id', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_version_id', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_version_id', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_altitude', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_altitude', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_altitude', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_altitude_ref', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_altitude_ref', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_altitude_ref', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_latitude', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_latitude', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_latitude', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_latitude_ref', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_latitude_ref', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_latitude_ref', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_longitude', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_longitude', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_longitude', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_longitude_ref', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_gps_date_stamp', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_gps_date_stamp', '*'), 'main', 'inlined')
afs.tag_object_of(('*', 'seda_gps_date_stamp', '*'), 'main', 'hidden')
afs.tag_subject_of(('*', 'seda_event_identifier', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'seda_event_identifier', '*'), 'main', 'inlined')
afs.tag_subject_of(('*', 'seda_event_type_from', '*'), 'main', 'hidden')
......@@ -974,6 +974,22 @@ pvs.tag_subject_of(('*', 'seda_archive_unit', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_archive_unit', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_data_object_reference', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_version_id', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_version_id', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_altitude', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_altitude', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_altitude_ref', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_altitude_ref', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_latitude', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_latitude', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_latitude_ref', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_latitude_ref', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_longitude', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_longitude', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_gps_date_stamp', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_gps_date_stamp', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_relationship', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_relationship', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_width', '*'), 'hidden')
......
......@@ -42,7 +42,8 @@ RTYPES_IN_TAB = set((
'seda_need_authorization',
'seda_data_object_reference',
))
for element_name in ('CodeListVersions', 'FormatIdentification', 'FileInfo', 'PhysicalDimensions'):
for element_name in ('CodeListVersions', 'FormatIdentification', 'FileInfo', 'PhysicalDimensions',
'Gps'):
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