Changes

no edit summary
Line 6: Line 6:  
|}
 
|}
   −
'''Resource.authority'''
+
'''Resource.author'''
   −
A dictionary of ''User'' guids and integers with roles information. Role value is a bit-wise ORed value of the following constants:
+
A list of authors working on the corresponding resource. List items are dictionaries with the following keys:
   −
* {{Code|1}}<br>corresponding user is the original author of the object; if it is not set, user is only a maintainer, e.g., an uploader of a book which has its original authors; if it is set, user name (not guid) will be automatically added to the {{Code|author}} property in addition to directly set authors.
+
* ''guid''<br>Author's guid in the Sugar Network; might be omitted if particular author is not registered in the Sugar Network;
 +
 
 +
* ''name''<br>Full author's name;
 +
 
 +
* ''role''<br>An integer which is a bit-wise ORed value of the following constants:
 +
** ''1'', author is registered in the Sugar Network (and ''guid'' key is set);
 +
** ''2'', author is the original author of the corresponding resource; if it is not set, user is only a maintainer, e.g., an uploader of a book which has its original authors.
    
'''Resource.layers'''
 
'''Resource.layers'''