Changeset 580:0806cb9061c1 in documentViewer


Ignore:
Timestamp:
Oct 29, 2012, 10:57:30 AM (12 years ago)
Author:
casties
Branch:
default
Message:

fixed another bug when url starts with /mpiwg/online/

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r578 r580  
    555555            # url points to document dir or index.meta
    556556            metaDom = self.metadataService.getDomFromPathOrUrl(url)
    557             docUrl = url.replace('/index.meta', '')
    558557            if metaDom is None:
    559558                raise IOError("Unable to find index.meta for mode=texttool!")
     559           
     560            docUrl = url.replace('/index.meta', '')
     561            if url.startswith('/mpiwg/online/'):
     562                docUrl = url.replace('/mpiwg/online/', '', 1)
    560563
    561564        elif mode=="imagepath":
     
    649652            if docinfo.get('imagePath', None):
    650653                imgpath = docinfo['imagePath'].replace('/mpiwg/online/', '', 1)
     654                logging.debug("imgpath=%s"%imgpath)
    651655                docinfo['imageURL'] = "%s?fn=%s"%(self.digilibScalerUrl, imgpath)
    652656                docinfo = self.getDocinfoFromDigilib(docinfo, imgpath)
  • version.txt

    r578 r580  
    1 DocumentViewer 2.2.6
     1DocumentViewer 2.2.7
Note: See TracChangeset for help on using the changeset viewer.