def _collection_rights_to_search_dict(rights):
 doc = {}
 if (rights.status == rights_manager.ACTIVITY_STATUS_PUBLICIZED):
  doc['is'] = 'featured'
 return doc

def _collection_rights_to_search_dict ( rights ) : doc = { } if ( rights . status == rights_manager . ACTIVITY_STATUS_PUBLICIZED ) : doc [ 'is' ] = 'featured' return doc
returns a search dict with information about the collection rights .