Mercurial > hg > documentViewer
comparison documentViewer.py @ 466:1641be8dc6b5 elementtree
attribution works now
author | casties |
---|---|
date | Mon, 01 Aug 2011 19:30:38 +0200 |
parents | 224aad394350 |
children | 8b75d55582e8 |
comparison
equal
deleted
inserted
replaced
465:224aad394350 | 466:1641be8dc6b5 |
---|---|
484 # auth info | 484 # auth info |
485 access = self.metadataService.getAccessData(dom=metaDom) | 485 access = self.metadataService.getAccessData(dom=metaDom) |
486 if access: | 486 if access: |
487 docinfo = self.getDocinfoFromAccess(docinfo, access) | 487 docinfo = self.getDocinfoFromAccess(docinfo, access) |
488 | 488 |
489 # attribution info | |
490 attribution = self.metadataService.getAttributionData(dom=metaDom) | |
491 if attribution: | |
492 logging.debug("getDocinfo: attribution=%s"%repr(attribution)) | |
493 docinfo['attribution'] = attribution | |
494 #docinfo = self.getDocinfoFromAccess(docinfo, access) | |
495 | |
496 # copyright info | |
497 copyright = self.metadataService.getCopyrightData(dom=metaDom) | |
498 if copyright: | |
499 logging.debug("getDocinfo: copyright=%s"%repr(copyright)) | |
500 docinfo['copyright'] = copyright | |
501 #docinfo = self.getDocinfoFromAccess(docinfo, access) | |
502 | |
489 # image path | 503 # image path |
490 if mode != 'texttool': | 504 if mode != 'texttool': |
491 # override image path from texttool | 505 # override image path from texttool |
492 docinfo['imagePath'] = url.replace('/mpiwg/online/', '', 1) | 506 docinfo['imagePath'] = url.replace('/mpiwg/online/', '', 1) |
493 | 507 |