Commit 0c8cc851 authored by Alexandre Boeglin's avatar Alexandre Boeglin

If title is not defined on the object, try to call getCompactTitle.

getCompactTitle will look for different methods to call, among which are
getReference and getId.
The idea is that if title is not defined, but reference is, it's better to
display the reference rather than nothing or the id to the user, for instance
in relation fields, listbox lines or the breadcrumb.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19839 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b4de995a
......@@ -40,6 +40,13 @@ class DublinCore:
'translatable' : 1,
'translation_domain' : 'erp5_content',
'default' : '',
'acquisition_base_category': (),
'acquisition_portal_type': (),
'acquisition_copy_value': 0,
'acquisition_mask_value': 1,
'acquisition_accessor_id': 'getTitle',
'acquisition_depends': None,
'alt_accessor_id': ('getCompactTitle',),
'mode' : 'w' },
{ 'id' : 'subject',
'description' : '',
......
......@@ -38,6 +38,13 @@ class SimpleItem:
'description' : '',
'type' : 'string',
'default' : '',
'acquisition_base_category': (),
'acquisition_portal_type': (),
'acquisition_copy_value': 0,
'acquisition_mask_value': 1,
'acquisition_accessor_id': 'getTitle',
'acquisition_depends': None,
'alt_accessor_id': ('getCompactTitle',),
'mode' : 'w',
'translatable': 1,
'translation_domain' : 'erp5_content',
......
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