Mercurial > hg > documentViewer
diff 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 |
line wrap: on
line diff
--- a/documentViewer.py Thu Oct 18 17:53:09 2012 +0200 +++ b/documentViewer.py Fri Oct 19 18:51:47 2012 +0200 @@ -630,9 +630,14 @@ # DRI (permanent ID) dri = self.metadataService.getDRI(dom=metaDom, type='escidoc') if dri: - logging.debug("getDRI: dri=%s"%repr(dri)) docinfo['DRI'] = dri + # (presentation) context + ctx = self.metadataService.getContextData(dom=metaDom, all=True) + if ctx: + logging.debug("getcontext: ctx=%s"%repr(ctx)) + docinfo['presentationContext'] = ctx + # image path if mode != 'texttool': # override image path from texttool with url parameter TODO: how about mode=auto?