Skip to content

Commit

Permalink
Add metadata_fields to have proper translations
Browse files Browse the repository at this point in the history
  • Loading branch information
duchenean committed Nov 18, 2024
1 parent 57a2933 commit 6d70e7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
2.0.0b3 (unreleased)
--------------------

- Nothing changed yet.
- Include some metadata_fields in `PloneMeetingInfosViewlet` to have proper translations.
[aduchene]


2.0.0b2 (2024-10-16)
Expand Down
4 changes: 2 additions & 2 deletions src/imio/pm/wsclient/browser/templates/plonemeeting_infos.pt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<tal:showInfos condition="item/UID|nothing">
<td><a href="#" tal:attributes="href item/@id" tal:content="item/title" target="_blank">Item title</a></td>
<!-- XXX Creator full name can be implemented in plonemeeting.restapi to have author name instead of userid -->
<td tal:content="python: item['creators'][0]">Creator fullname</td>
<td tal:content="python: item['creators'][0]['title']">Creator fullname</td>
<td tal:content="item/extra_include_config/title">Meeting config title</td>
<td tal:content="item/review_state" i18n:domain="plone" i18n:translate="">Review state</td>
<td tal:content="item/review_state/title" i18n:domain="plone" i18n:translate="">Review state</td>
<td tal:content="item/category/title" i18n:domain="plone" i18n:translate="">Category title</td>
<td tal:content="python: view.displayMeetingDate(item['preferredMeeting']['title'])">Preferred meeting date</td>
<td tal:content="python: view.displayMeetingDate(item['extra_include_meeting'].get('title'))">Related meeting date</td>
Expand Down
2 changes: 2 additions & 0 deletions src/imio/pm/wsclient/browser/viewlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def get_item_info(self, item):
'UID': item['UID'],
'extra_include': 'meeting,pod_templates,annexes,config',
'extra_include_meeting_additional_values': '*',
'metadata_fields': 'review_state,creators,category,preferredMeeting',
'fullobjects': None,
}
)[0]
Expand All @@ -91,6 +92,7 @@ def getPloneMeetingLinkedInfos(self):
'externalIdentifier': self.context.UID(),
'extra_include': 'linked_items',
'extra_include_linked_items_mode': 'every_successors',
'metadata_fields': 'review_state,creators,category,preferredMeeting',
},
)
except Exception, exc:
Expand Down

0 comments on commit 6d70e7c

Please sign in to comment.