Changeset 578:024b75162437 in documentViewer for documentViewer.py


Ignore:
Timestamp:
Oct 19, 2012, 4:51:47 PM (12 years ago)
Author:
casties
Branch:
default
Message:

displays context data on index page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r577 r578  
    631631            dri = self.metadataService.getDRI(dom=metaDom, type='escidoc')
    632632            if dri:
    633                 logging.debug("getDRI: dri=%s"%repr(dri))
    634633                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
    635640
    636641        # image path
Note: See TracChangeset for help on using the changeset viewer.