Changeset 78:70ab234a18dc in documentViewer


Ignore:
Timestamp:
Mar 6, 2009, 3:36:38 PM (15 years ago)
Author:
dwinter
Branch:
default
Message:

bugs in filepath mode fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r75 r78  
    190190            else:
    191191                params[param] = str(val)
     192        if params["mode"] == "filepath": #wenn beim erst Aufruf filepath gesetzt wurde aendere das nun zu imagepath
     193                params["mode"] = "imagepath"
     194                params["url"] = getParentDir(params["url"])
    192195               
    193196        # quote values and assemble into query string
     
    258261       
    259262        for x in range(cut):
     263               
    260264                path=getParentDir(path)
     265       
    261266        infoUrl=self.digilibBaseUrl+"/dirInfo-xml.jsp?mo=dir&fn="+path
    262267   
     
    355360           
    356361        if dom is None:
    357             for x in range(cut+1):
     362            for x in range(cut):
    358363                path=getParentDir(path)
    359364            dom = self.getIndexMeta(path)
     
    375380        if docinfo is None:
    376381            docinfo = {}
    377            
     382       
    378383        if dom is None:
    379             for x in range(cut+1):
     384            for x in range(cut):
    380385                path=getParentDir(path)
    381386            dom = self.getIndexMeta(path)
     
    476481           docinfo=self.getDirinfoFromDigilib(imageDir,docinfo=docinfo)
    477482           docinfo['imagePath'] = imageDir
     483           
    478484           docinfo['imageURL'] = self.digilibBaseUrl+"/servlet/Scaler?fn="+imageDir
    479485           
     
    533539        docinfo['imagePath'] = path
    534540        docinfo=self.getDirinfoFromDigilib(path,docinfo=docinfo,cut=cut)
     541       
     542        for x in range(cut):       
     543                path=getParentDir(path)
     544        logging.error("PATH:"+path)
    535545        imageUrl=self.digilibBaseUrl+"/servlet/Scaler?fn="+path
    536546        docinfo['imageURL'] = imageUrl
     
    589599            if np % grpsize > 0:
    590600                pageinfo['numgroups'] += 1
    591         logging.debug("getPageInfo: %s"%repr(pageinfo))
     601
    592602        return pageinfo
    593603               
Note: See TracChangeset for help on using the changeset viewer.