Changeset 599:3b79ae4a23ca in documentViewer
- Timestamp:
- Nov 19, 2012, 4:15:13 PM (11 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r594 r599 536 536 docUrl = getParentPath(url) 537 537 metaDom = self.metadataService.getDomFromPathOrUrl(docUrl) 538 docinfo['imagePath'] = url.replace('/mpiwg/online /', '', 1)538 docinfo['imagePath'] = url.replace('/mpiwg/online', '', 1) 539 539 540 540 elif mode=="filepath": … … 614 614 if mode != 'texttool': 615 615 # override image path from texttool with url parameter TODO: how about mode=auto? 616 docinfo['imagePath'] = url.replace('/mpiwg/online /', '', 1)616 docinfo['imagePath'] = url.replace('/mpiwg/online', '', 1) 617 617 618 618 # check numPages … … 620 620 # number of images from digilib 621 621 if docinfo.get('imagePath', None): 622 imgpath = docinfo['imagePath'].replace('/mpiwg/online /', '', 1)622 imgpath = docinfo['imagePath'].replace('/mpiwg/online', '', 1) 623 623 logging.debug("imgpath=%s"%imgpath) 624 624 docinfo['imageURL'] = "%s?fn=%s"%(self.digilibScalerUrl, imgpath) … … 639 639 docinfo['numPages'] = docinfo['numTextPages'] 640 640 641 # normalize path 642 if 'imagePath' in docinfo and not docinfo['imagePath'].startswith('/'): 643 docinfo['imagePath'] = '/' + docinfo['imagePath'] 644 641 645 logging.debug("documentViewer (getdocinfo) docinfo: keys=%s"%docinfo.keys()) 642 #logging.debug("documentViewer (getdocinfo) docinfo: %s"%docinfo)643 646 # store in session 644 647 self.REQUEST.SESSION['docinfo'] = docinfo -
zpt/viewer/layer_image_annotator.zpt
r598 r599 13 13 tal:define="global annServerUrl string:http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager; 14 14 global annTokenUrl string:$viewerUrl/template/token/getLoginToken; 15 annUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s?pn=%s'%(docinfo[' documentPath'],pageinfo['pn']);15 annUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s?pn=%s'%(docinfo['imagePath'],pageinfo['pn']); 16 16 resUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s'%(docinfo['documentPath']); 17 17 global annUser python:here.getAuthenticatedUser(anon='anonymous');
Note: See TracChangeset
for help on using the changeset viewer.