Changeset 78:70ab234a18dc in documentViewer
- Timestamp:
- Mar 6, 2009, 3:36:38 PM (15 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r75 r78 190 190 else: 191 191 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"]) 192 195 193 196 # quote values and assemble into query string … … 258 261 259 262 for x in range(cut): 263 260 264 path=getParentDir(path) 265 261 266 infoUrl=self.digilibBaseUrl+"/dirInfo-xml.jsp?mo=dir&fn="+path 262 267 … … 355 360 356 361 if dom is None: 357 for x in range(cut +1):362 for x in range(cut): 358 363 path=getParentDir(path) 359 364 dom = self.getIndexMeta(path) … … 375 380 if docinfo is None: 376 381 docinfo = {} 377 382 378 383 if dom is None: 379 for x in range(cut +1):384 for x in range(cut): 380 385 path=getParentDir(path) 381 386 dom = self.getIndexMeta(path) … … 476 481 docinfo=self.getDirinfoFromDigilib(imageDir,docinfo=docinfo) 477 482 docinfo['imagePath'] = imageDir 483 478 484 docinfo['imageURL'] = self.digilibBaseUrl+"/servlet/Scaler?fn="+imageDir 479 485 … … 533 539 docinfo['imagePath'] = path 534 540 docinfo=self.getDirinfoFromDigilib(path,docinfo=docinfo,cut=cut) 541 542 for x in range(cut): 543 path=getParentDir(path) 544 logging.error("PATH:"+path) 535 545 imageUrl=self.digilibBaseUrl+"/servlet/Scaler?fn="+path 536 546 docinfo['imageURL'] = imageUrl … … 589 599 if np % grpsize > 0: 590 600 pageinfo['numgroups'] += 1 591 logging.debug("getPageInfo: %s"%repr(pageinfo)) 601 592 602 return pageinfo 593 603
Note: See TracChangeset
for help on using the changeset viewer.