Mercurial > hg > documentViewer
comparison documentViewer.py @ 578:024b75162437
displays context data on index page
author | casties |
---|---|
date | Fri, 19 Oct 2012 18:51:47 +0200 |
parents | 9251719154a3 |
children | 0806cb9061c1 |
comparison
equal
deleted
inserted
replaced
577:9251719154a3 | 578:024b75162437 |
---|---|
628 docinfo['copyright'] = copyright | 628 docinfo['copyright'] = copyright |
629 | 629 |
630 # DRI (permanent ID) | 630 # DRI (permanent ID) |
631 dri = self.metadataService.getDRI(dom=metaDom, type='escidoc') | 631 dri = self.metadataService.getDRI(dom=metaDom, type='escidoc') |
632 if dri: | 632 if dri: |
633 logging.debug("getDRI: dri=%s"%repr(dri)) | |
634 docinfo['DRI'] = dri | 633 docinfo['DRI'] = dri |
634 | |
635 # (presentation) context | |
636 ctx = self.metadataService.getContextData(dom=metaDom, all=True) | |
637 if ctx: | |
638 logging.debug("getcontext: ctx=%s"%repr(ctx)) | |
639 docinfo['presentationContext'] = ctx | |
635 | 640 |
636 # image path | 641 # image path |
637 if mode != 'texttool': | 642 if mode != 'texttool': |
638 # override image path from texttool with url parameter TODO: how about mode=auto? | 643 # override image path from texttool with url parameter TODO: how about mode=auto? |
639 docinfo['imagePath'] = url.replace('/mpiwg/online/', '', 1) | 644 docinfo['imagePath'] = url.replace('/mpiwg/online/', '', 1) |