7069: Narrated Web Site media pages do not include multiple references

svn: r23146
This commit is contained in:
Doug Blank 2013-09-17 00:00:44 +00:00
parent cfa5386bfb
commit 5cbcfbbc56

View File

@ -7466,7 +7466,8 @@ class NavWebReport(Report):
self._add_media(media_handle, Citation, citation_handle) self._add_media(media_handle, Citation, citation_handle)
def _add_media(self, media_handle, bkref_class, bkref_handle): def _add_media(self, media_handle, bkref_class, bkref_handle):
if self.obj_dict[MediaObject].get(media_handle): media_refs = self.bkref_dict[MediaObject].get(media_handle)
if media_refs and (bkref_class, bkref_handle) in media_refs:
return return
media = self.database.get_object_from_handle(media_handle) media = self.database.get_object_from_handle(media_handle)
media_name = "Media" media_name = "Media"