+ #print "all_auths = "
+ #print all_authorities
+
+ # include all sub-authorities of the PI
+ # if PI on ple, include all sub-auths ple.upmc, ple.inria and so on...
+ pi_subauthorities = set()
+ for authority in all_authorities:
+ authority_hrn = authority['authority_hrn']
+ for my_authority in pi_authorities:
+ if authority_hrn.startswith(my_authority) and authority_hrn not in pi_subauthorities:
+ pi_subauthorities.add(authority_hrn)
+
+ #print "pi_authorities =", pi_authorities
+ #print "pi_subauthorities =", pi_subauthorities