Use dc_title, AuthorityRecord.name is gone in recent csets
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 Jan 2017 18:03:14 +0100
changeset 2302 9ead08e8c6fd
parent 2301 15734eda777a
child 2304 af46a867519d
Use dc_title, AuthorityRecord.name is gone in recent csets
entities/profile_generation.py
--- a/entities/profile_generation.py	Wed Jan 11 21:29:38 2017 +0100
+++ b/entities/profile_generation.py	Tue Jan 17 18:03:14 2017 +0100
@@ -1260,7 +1260,7 @@
         return None
 
     def agency_name(self, agency):
-        return agency.agency.name if agency and agency.agency else None
+        return agency.agency.dc_title() if agency and agency.agency else None
 
     def agency_id(self, agency):
         return text_type(agency.agency.eid) if agency and agency.agency else None