# HG changeset patch # User casties # Date 1312219838 -7200 # Node ID 1641be8dc6b51f03986c6775ee1231ee090a8cf0 # Parent 224aad3943503c855923f937bb341ff8cedba3a4 attribution works now diff -r 224aad394350 -r 1641be8dc6b5 documentViewer.py --- a/documentViewer.py Fri Jul 29 20:36:04 2011 +0200 +++ b/documentViewer.py Mon Aug 01 19:30:38 2011 +0200 @@ -486,6 +486,20 @@ if access: docinfo = self.getDocinfoFromAccess(docinfo, access) + # attribution info + attribution = self.metadataService.getAttributionData(dom=metaDom) + if attribution: + logging.debug("getDocinfo: attribution=%s"%repr(attribution)) + docinfo['attribution'] = attribution + #docinfo = self.getDocinfoFromAccess(docinfo, access) + + # copyright info + copyright = self.metadataService.getCopyrightData(dom=metaDom) + if copyright: + logging.debug("getDocinfo: copyright=%s"%repr(copyright)) + docinfo['copyright'] = copyright + #docinfo = self.getDocinfoFromAccess(docinfo, access) + # image path if mode != 'texttool': # override image path from texttool