- elif (type == "sa") or (type == "ma"):
- if (type == "sa"):
- other_rec = table.resolve("ma", record.get_name())
- elif (type == "ma"):
- other_rec = table.resolve("sa", record.get_name())
-
+ elif (type in ['authority', 'sa', 'ma']):
+ other_rec = table.resolve(type, record.get_name())
+