Commit f4a35a0e authored by Bartek Górny's avatar Bartek Górny

contributors = relation+freehand (I hope my understanding of compatibility...

contributors = relation+freehand (I hope my understanding of compatibility with DublinCore is correct)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9673 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fc712eb
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Type.Document.BaseCategory</string>
<string>BaseCategory</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>acquisition_portal_type</string> </key>
<value> <string>python: []</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>contributor</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>contributor</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Base Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>contributor</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>BTrees.Length</string>
<string>Length</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
<string>BTrees.OOBTree</string>
<string>OOBTree</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
<string>BTrees.OOBTree</string>
<string>OOBTree</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Type.Document.BaseCategory</string>
<string>BaseCategory</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>acquisition_portal_type</string> </key>
<value> <string>python: []</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>contributor_related</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>contributor_related</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Base Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>contributor_related</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>BTrees.Length</string>
<string>Length</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
<string>BTrees.OOBTree</string>
<string>OOBTree</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
<string>BTrees.OOBTree</string>
<string>OOBTree</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
...@@ -80,6 +80,9 @@ ...@@ -80,6 +80,9 @@
<string>my_description</string> <string>my_description</string>
<string>my_keywords</string> <string>my_keywords</string>
<string>my_subject</string> <string>my_subject</string>
<string>my_contributor_name_list</string>
<string>my_contributor_related_title_list</string>
<string>my_contributor_list</string>
</list> </list>
</value> </value>
</item> </item>
......
123 127
\ No newline at end of file \ No newline at end of file
classification classification
contributor
contributor_related
predecessor predecessor
publication_section publication_section
similar similar
......
...@@ -249,6 +249,24 @@ class DMSFile(XMLObject,File): ...@@ -249,6 +249,24 @@ class DMSFile(XMLObject,File):
ref=self.getReference() ref=self.getReference()
return [o for o in di.keys() if o.getReference()!=ref] # every object has its own reference in SearchableText return [o for o in di.keys() if o.getReference()!=ref] # every object has its own reference in SearchableText
security.declareProtected(Permissions.View,'getContributors')
def getContributorList(self):
#'''
#override
#'''
return (self.getContributorRelatedTitleList() or [])+(self.getContributorNameList() or [])
getContributorsList=getContributorList
getContributorTitleList=getContributorList
security.declarePrivate('setContributorList')
def setContributorList(self,*args,**kwargs):
'''
just in case
'''
pass
setContributorsList=setContributorList
# BG copied from File in case # BG copied from File in case
index_html = CMFFile.index_html index_html = CMFFile.index_html
PUT = CMFFile.PUT PUT = CMFFile.PUT
......
...@@ -31,10 +31,23 @@ class DMSFile: ...@@ -31,10 +31,23 @@ class DMSFile:
""" """
_properties = ( _properties = (
{ 'id' : 'contributor_related_title',
'description' : 'Contributors linked by relation',
'type' : 'string',
'acquisition_base_category' : ('contributor_related',),
'acquisition_portal_type' : ('Person','Organisation'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'mode' : 'r' },
{ 'id' : 'contributor_name',
'description' : 'contributors entered by hand',
'type' : 'lines',
'mode' : ''},
) )
_categories = ('destination','similar','predecessor','successor','source_project','publication_section','classification', _categories = ('destination','similar','predecessor','successor','source_project','publication_section','classification',
'function','group','site') 'contributor_related','function','group','site')
# vim: shiftwidth=2 # vim: shiftwidth=2
......
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