name = get_leaf(hrn)
if authority.startswith("plc"):
- urn = "+".join(['',authority.replace('.',':'),type,name])
+ if type == None:
+ urn = "+".join(['',authority.replace('.',':'),name])
+ else:
+ urn = "+".join(['',authority.replace('.',':'),type,name])
+
else:
urn = "+".join(['',authority,type,name])