Mercurial > hg > documentViewer
changeset 466:1641be8dc6b5 elementtree
attribution works now
author | casties |
---|---|
date | Mon, 01 Aug 2011 19:30:38 +0200 |
parents | 224aad394350 |
children | 8b75d55582e8 |
files | documentViewer.py |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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