Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
bd0c14b3606a
Commit
af06401b
authored
Jun 10, 2016
by
Yann Voté
Browse files
[ui] Have a dedicated tab for a content related objects
parent
9890e9a6b196
Changes
5
Hide whitespace changes
Inline
Side-by-side
i18n/en.po
View file @
bd0c14b3
...
...
@@ -1062,20 +1062,12 @@ msgstr ""
msgid "SEDAIsPartOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_part_of.object"
msgid "SEDAIsPartOf"
msgstr ""
msgid "SEDAIsPartOf_plural"
msgstr ""
msgid "SEDAIsVersionOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_version_of.object"
msgid "SEDAIsVersionOf"
msgstr ""
msgid "SEDAIsVersionOf_plural"
msgstr ""
...
...
@@ -1291,10 +1283,6 @@ msgstr ""
msgid "SEDAReferences"
msgstr ""
msgctxt "inlined:SEDAContent.seda_references.object"
msgid "SEDAReferences"
msgstr ""
msgid "SEDAReferences_plural"
msgstr ""
...
...
@@ -1329,10 +1317,6 @@ msgstr ""
msgid "SEDAReplaces"
msgstr ""
msgctxt "inlined:SEDAContent.seda_replaces.object"
msgid "SEDAReplaces"
msgstr ""
msgid "SEDAReplaces_plural"
msgstr ""
...
...
@@ -1406,10 +1390,6 @@ msgstr ""
msgid "SEDARequires"
msgstr ""
msgctxt "inlined:SEDAContent.seda_requires.object"
msgid "SEDARequires"
msgstr ""
msgid "SEDARequires_plural"
msgstr ""
...
...
@@ -2970,14 +2950,6 @@ msgstr ""
msgid "add a SEDAIsPartOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_part_of.object"
msgid "add a SEDAIsPartOf"
msgstr ""
msgid "add a SEDAIsVersionOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_version_of.object"
msgid "add a SEDAIsVersionOf"
msgstr ""
...
...
@@ -3130,10 +3102,6 @@ msgstr ""
msgid "add a SEDAReferences"
msgstr ""
msgctxt "inlined:SEDAContent.seda_references.object"
msgid "add a SEDAReferences"
msgstr ""
msgid "add a SEDARegisteredDate"
msgstr ""
...
...
@@ -3153,10 +3121,6 @@ msgstr ""
msgid "add a SEDAReplaces"
msgstr ""
msgctxt "inlined:SEDAContent.seda_replaces.object"
msgid "add a SEDAReplaces"
msgstr ""
msgid "add a SEDARepositoryArchiveUnitPID"
msgstr ""
...
...
@@ -3221,10 +3185,6 @@ msgstr ""
msgid "add a SEDARequires"
msgstr ""
msgctxt "inlined:SEDAContent.seda_requires.object"
msgid "add a SEDARequires"
msgstr ""
msgid "add a SEDAReuseRule"
msgstr ""
...
...
@@ -4123,6 +4083,17 @@ msgstr ""
msgid "creating SEDAEvent (SEDAEvent seda_event SEDAContent %(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDAIsPartOf (SEDAIsPartOf seda_is_part_of SEDAContent %(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDAIsVersionOf (SEDAIsVersionOf seda_is_version_of SEDAContent "
"%(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDAJuridictional (SEDAJuridictional seda_juridictional SEDAContent "
...
...
@@ -4152,6 +4123,22 @@ msgid ""
"%(linto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDAReferences (SEDAReferences seda_references SEDAContent "
"%(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDAReplaces (SEDAReplaces seda_replaces SEDAContent %(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDARequires (SEDARequires seda_requires SEDAContent %(linkto)s)"
msgstr ""
#, python-format
msgid ""
"creating SEDAReuseRule (SEDAReuseRule seda_reuse_rule "
...
...
@@ -5078,6 +5065,9 @@ msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
msgid "seda_content_object"
msgstr ""
msgid "seda_content_relation_tab"
msgstr ""
msgid "seda_content_service_tab"
msgstr ""
...
...
i18n/fr.po
View file @
bd0c14b3
...
...
@@ -1065,20 +1065,12 @@ msgstr ""
msgid "SEDAIsPartOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_part_of.object"
msgid "SEDAIsPartOf"
msgstr ""
msgid "SEDAIsPartOf_plural"
msgstr ""
msgid "SEDAIsVersionOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_version_of.object"
msgid "SEDAIsVersionOf"
msgstr ""
msgid "SEDAIsVersionOf_plural"
msgstr ""
...
...
@@ -1294,10 +1286,6 @@ msgstr ""
msgid "SEDAReferences"
msgstr ""
msgctxt "inlined:SEDAContent.seda_references.object"
msgid "SEDAReferences"
msgstr ""
msgid "SEDAReferences_plural"
msgstr ""
...
...
@@ -1332,10 +1320,6 @@ msgstr ""
msgid "SEDAReplaces"
msgstr ""
msgctxt "inlined:SEDAContent.seda_replaces.object"
msgid "SEDAReplaces"
msgstr ""
msgid "SEDAReplaces_plural"
msgstr ""
...
...
@@ -1409,10 +1393,6 @@ msgstr ""
msgid "SEDARequires"
msgstr ""
msgctxt "inlined:SEDAContent.seda_requires.object"
msgid "SEDARequires"
msgstr ""
msgid "SEDARequires_plural"
msgstr ""
...
...
@@ -2761,7 +2741,7 @@ msgid "add a SEDAArchiveUnit"
msgstr "ajouter une unité d'archives"
msgid "add a SEDAArchiveUnitRefId"
msgstr ""
msgstr "
ajouter une référence à une unité d'archives interne
"
msgctxt ""
"inlined:SEDAAltArchiveUnitArchiveUnitRefId.seda_archive_unit_ref_id_from."
...
...
@@ -2973,14 +2953,6 @@ msgstr ""
msgid "add a SEDAIsPartOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_part_of.object"
msgid "add a SEDAIsPartOf"
msgstr ""
msgid "add a SEDAIsVersionOf"
msgstr ""
msgctxt "inlined:SEDAContent.seda_is_version_of.object"
msgid "add a SEDAIsVersionOf"
msgstr ""
...
...
@@ -3133,10 +3105,6 @@ msgstr ""
msgid "add a SEDAReferences"
msgstr ""
msgctxt "inlined:SEDAContent.seda_references.object"
msgid "add a SEDAReferences"
msgstr ""
msgid "add a SEDARegisteredDate"
msgstr ""
...
...
@@ -3156,12 +3124,8 @@ msgstr ""
msgid "add a SEDAReplaces"
msgstr ""
msgctxt "inlined:SEDAContent.seda_replaces.object"
msgid "add a SEDAReplaces"
msgstr ""
msgid "add a SEDARepositoryArchiveUnitPID"
msgstr ""
msgstr "
ajouter une référence à une unité d'archives déjà archivée
"
msgctxt ""
"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_repository_archive_unit_pid."
...
...
@@ -3194,7 +3158,7 @@ msgid "add a SEDARepositoryArchiveUnitPID"
msgstr ""
msgid "add a SEDARepositoryObjectPID"
msgstr ""
msgstr "
ajouter une référence à un un objet déjà archivé
"
msgctxt ""
"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_repository_object_pid.object"
...
...
@@ -3224,10 +3188,6 @@ msgstr ""
msgid "add a SEDARequires"
msgstr ""
msgctxt "inlined:SEDAContent.seda_requires.object"
msgid "add a SEDARequires"
msgstr ""
msgid "add a SEDAReuseRule"
msgstr ""
...
...
@@ -4132,6 +4092,17 @@ msgstr "création d'une règle de diffusion pour l'unité d'archives %(linkto)s"
msgid "creating SEDAEvent (SEDAEvent seda_event SEDAContent %(linkto)s)"
msgstr "création d'un évènement"
#, python-format
msgid ""
"creating SEDAIsPartOf (SEDAIsPartOf seda_is_part_of SEDAContent %(linkto)s)"
msgstr "création d'un contenant pour linkto)s"
#, python-format
msgid ""
"creating SEDAIsVersionOf (SEDAIsVersionOf seda_is_version_of SEDAContent "
"%(linkto)s)"
msgstr "création d'une version de %(linkto)s"
#, python-format
msgid ""
"creating SEDAJuridictional (SEDAJuridictional seda_juridictional SEDAContent "
...
...
@@ -4161,6 +4132,25 @@ msgid ""
"%(linto)s)"
msgstr "création d'un destinataire pour information"
#, python-format
msgid ""
"creating SEDAReferences (SEDAReferences seda_references SEDAContent "
"%(linkto)s)"
msgstr ""
"Création d'une référence vers un autre objet pour le contenu %(linkto)s"
#, python-format
msgid ""
"creating SEDAReplaces (SEDAReplaces seda_replaces SEDAContent %(linkto)s)"
msgstr ""
"création d'une référence vers un objet remplacé par le contenu %(linkto)s"
#, python-format
msgid ""
"creating SEDARequires (SEDARequires seda_requires SEDAContent %(linkto)s)"
msgstr ""
"création d'une référence vers un object requis par le contenue %(linkto)s"
#, python-format
msgid ""
"creating SEDAReuseRule (SEDAReuseRule seda_reuse_rule "
...
...
@@ -5090,6 +5080,9 @@ msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
msgid "seda_content_object"
msgstr ""
msgid "seda_content_relation_tab"
msgstr "objets liés"
msgid "seda_content_service_tab"
msgstr "services"
...
...
@@ -5844,7 +5837,7 @@ msgid "seda_is_part_of"
msgstr ""
msgid "seda_is_part_of_object"
msgstr ""
msgstr "
object contenant
"
msgctxt "SEDAContent"
msgid "seda_is_part_of_object"
...
...
@@ -5858,7 +5851,7 @@ msgid "seda_is_version_of"
msgstr ""
msgid "seda_is_version_of_object"
msgstr ""
msgstr "
autre version
"
msgctxt "SEDAContent"
msgid "seda_is_version_of_object"
...
...
@@ -6339,7 +6332,7 @@ msgid "seda_references"
msgstr ""
msgid "seda_references_object"
msgstr ""
msgstr "
objet référencé
"
msgctxt "SEDAContent"
msgid "seda_references_object"
...
...
@@ -6427,7 +6420,7 @@ msgid "seda_replaces"
msgstr ""
msgid "seda_replaces_object"
msgstr ""
msgstr "
objet remplacé
"
msgctxt "SEDAContent"
msgid "seda_replaces_object"
...
...
@@ -6515,7 +6508,7 @@ msgid "seda_requires"
msgstr ""
msgid "seda_requires_object"
msgstr ""
msgstr "
objet requis
"
msgctxt "SEDAContent"
msgid "seda_requires_object"
...
...
views/content.py
View file @
bd0c14b3
...
...
@@ -94,6 +94,14 @@ keyword_rtype_role = [
(
'seda_keyword'
,
'object'
),
]
relation_rtype_role
=
[
(
'seda_is_version_of'
,
'object'
),
(
'seda_replaces'
,
'object'
),
(
'seda_requires'
,
'object'
),
(
'seda_is_part_of'
,
'object'
),
(
'seda_references'
,
'object'
),
]
event_rtype_role
=
[
(
'seda_event'
,
'object'
),
]
...
...
@@ -133,6 +141,7 @@ class ContentTabbedPrimaryView(tabs.TabbedPrimaryView):
_
(
'seda_content_agent_tab'
),
_
(
'seda_content_coverage_tab'
),
_
(
'seda_content_keyword_tab'
),
_
(
'seda_content_relation_tab'
),
_
(
'seda_content_event_tab'
),
_
(
'seda_content_history_tab'
),
]
...
...
@@ -226,6 +235,21 @@ class ContentKeywordTab(viewlib.SubObjectsTab):
_
(
'creating SEDAKeyword (SEDAKeyword seda_keyword SEDAContent %(linkto)s)'
)
class
ContentRelationTab
(
viewlib
.
SubObjectsTab
):
"""Display relation information about an archive unit content."""
__regid__
=
'seda_content_relation_tab'
__select__
=
viewlib
.
SubObjectsTab
.
__select__
&
is_instance
(
'SEDAContent'
)
rtype_role_targets
=
[(
rtype
,
role
,
None
)
for
rtype
,
role
in
relation_rtype_role
]
_
(
'creating SEDAIsVersionOf (SEDAIsVersionOf seda_is_version_of SEDAContent %(linkto)s)'
)
_
(
'creating SEDAReplaces (SEDAReplaces seda_replaces SEDAContent %(linkto)s)'
)
_
(
'creating SEDARequires (SEDARequires seda_requires SEDAContent %(linkto)s)'
)
_
(
'creating SEDAIsPartOf (SEDAIsPartOf seda_is_part_of SEDAContent %(linkto)s)'
)
_
(
'creating SEDAReferences (SEDAReferences seda_references SEDAContent %(linkto)s)'
)
class
ContentEventTab
(
viewlib
.
SubObjectsTab
):
"""Display events about an archive unit content."""
...
...
views/uicfg.py
View file @
bd0c14b3
...
...
@@ -781,15 +781,15 @@ afs.tag_subject_of(('*', 'seda_event_type_to', '*'), 'main', 'attributes')
afs
.
tag_subject_of
((
'*'
,
'seda_event_detail'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_object_of
((
'*'
,
'seda_event_detail'
,
'*'
),
'main'
,
'inlined'
)
afs
.
tag_subject_of
((
'*'
,
'seda_is_version_of'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_object_of
((
'*'
,
'seda_is_version_of'
,
'*'
),
'main'
,
'
inlined
'
)
afs
.
tag_object_of
((
'*'
,
'seda_is_version_of'
,
'*'
),
'main'
,
'
hidden
'
)
afs
.
tag_subject_of
((
'*'
,
'seda_replaces'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_object_of
((
'*'
,
'seda_replaces'
,
'*'
),
'main'
,
'
inlined
'
)
afs
.
tag_object_of
((
'*'
,
'seda_replaces'
,
'*'
),
'main'
,
'
hidden
'
)
afs
.
tag_subject_of
((
'*'
,
'seda_requires'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_object_of
((
'*'
,
'seda_requires'
,
'*'
),
'main'
,
'
inlined
'
)
afs
.
tag_object_of
((
'*'
,
'seda_requires'
,
'*'
),
'main'
,
'
hidden
'
)
afs
.
tag_subject_of
((
'*'
,
'seda_is_part_of'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_object_of
((
'*'
,
'seda_is_part_of'
,
'*'
),
'main'
,
'
inlined
'
)
afs
.
tag_object_of
((
'*'
,
'seda_is_part_of'
,
'*'
),
'main'
,
'
hidden
'
)
afs
.
tag_subject_of
((
'*'
,
'seda_references'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_object_of
((
'*'
,
'seda_references'
,
'*'
),
'main'
,
'
inlined
'
)
afs
.
tag_object_of
((
'*'
,
'seda_references'
,
'*'
),
'main'
,
'
hidden
'
)
afs
.
tag_object_of
((
'*'
,
'seda_alt_references_archive_unit_ref_id'
,
'*'
),
'main'
,
'hidden'
)
afs
.
tag_subject_of
((
'*'
,
'seda_alt_references_archive_unit_ref_id'
,
'*'
),
'main'
,
'inlined'
)
afs
.
tag_subject_of
((
'*'
,
'seda_repository_archive_unit_pid'
,
'*'
),
'main'
,
'hidden'
)
...
...
@@ -987,6 +987,16 @@ 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_is_version_of'
,
'*'
),
'hidden'
)
pvs
.
tag_object_of
((
'*'
,
'seda_is_version_of'
,
'*'
),
'hidden'
)
pvs
.
tag_subject_of
((
'*'
,
'seda_replaces'
,
'*'
),
'hidden'
)
pvs
.
tag_object_of
((
'*'
,
'seda_replaces'
,
'*'
),
'hidden'
)
pvs
.
tag_subject_of
((
'*'
,
'seda_requires'
,
'*'
),
'hidden'
)
pvs
.
tag_object_of
((
'*'
,
'seda_requires'
,
'*'
),
'hidden'
)
pvs
.
tag_subject_of
((
'*'
,
'seda_is_part_of'
,
'*'
),
'hidden'
)
pvs
.
tag_object_of
((
'*'
,
'seda_is_part_of'
,
'*'
),
'hidden'
)
pvs
.
tag_subject_of
((
'*'
,
'seda_references'
,
'*'
),
'hidden'
)
pvs
.
tag_object_of
((
'*'
,
'seda_references'
,
'*'
),
'hidden'
)
pvs
.
tag_subject_of
((
'*'
,
'seda_relationship'
,
'*'
),
'hidden'
)
pvs
.
tag_object_of
((
'*'
,
'seda_relationship'
,
'*'
),
'hidden'
)
pvs
.
tag_subject_of
((
'*'
,
'seda_width'
,
'*'
),
'hidden'
)
...
...
xsd2uicfg.py
View file @
bd0c14b3
...
...
@@ -44,7 +44,7 @@ RTYPES_IN_TAB = set((
'seda_content'
,
))
for
element_name
in
(
'CodeListVersions'
,
'FormatIdentification'
,
'FileInfo'
,
'PhysicalDimensions'
,
'Gps'
):
'Gps'
,
'RelatedObjectReference'
):
for
rtype
,
role
,
path
in
XSDM_MAPPING
.
iter_rtype_role
(
element_name
):
RTYPES_IN_TAB
.
add
(
rtype
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment