Changes

no edit summary
Line 21: Line 21:  
'''Resource.author'''
 
'''Resource.author'''
   −
A list of authors working on the corresponding resource. List items are dictionaries with the following keys:
+
A dictionary of authors working on the corresponding resource. Keys are Sugar Network ''User'' guids, or, if particular author is not registered in the Sugar Network, full user names. Values are dictionaries with the following keys:
 
  −
* ''guid''<br>Author's guid in the Sugar Network; might be omitted if a particular author is not registered in the Sugar Network;
      
* ''name''<br>Full author's name;
 
* ''name''<br>Full author's name;
   
* ''role''<br>An integer which is a bit-wise ORed value of the following constants:
 
* ''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);
+
** ''0x1'', 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.
+
** ''0x10000'', 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.
    
<div id="resource-status"></div>
 
<div id="resource-status"></div>