comparison documentViewer.py @ 133:40730cfbcb8e

fixed problem with getnumpages and **args
author casties
date Thu, 17 Jun 2010 20:34:36 +0200
parents 39167e96e582
children 6a33aa624ba4
comparison
equal deleted inserted replaced
132:39167e96e582 133:40730cfbcb8e
170 170
171 def getSearch(self, **args): 171 def getSearch(self, **args):
172 """get search""" 172 """get search"""
173 return self.template.fulltextclient.getSearch(**args) 173 return self.template.fulltextclient.getSearch(**args)
174 174
175 def getNumPages(self, **args): 175 def getNumPages(self, docinfo):
176 """get numpages""" 176 """get numpages"""
177 return self.template.fulltextclient.getNumPages(**args) 177 return self.template.fulltextclient.getNumPages(docinfo)
178 178
179 def getTranslate(self, **args): 179 def getTranslate(self, **args):
180 """get translate""" 180 """get translate"""
181 return self.template.fulltextclient.getTranslate(**args) 181 return self.template.fulltextclient.getTranslate(**args)
182 182
585 if textUrls and (len(textUrls) > 0): 585 if textUrls and (len(textUrls) > 0):
586 textUrl = getTextFromNode(textUrls[0]) 586 textUrl = getTextFromNode(textUrls[0])
587 docinfo['textURLPath'] = textUrl 587 docinfo['textURLPath'] = textUrl
588 if not docinfo['imagePath']: 588 if not docinfo['imagePath']:
589 # text-only, no page images 589 # text-only, no page images
590 docinfo = self.getNumPages(docinfo) #im moment einfach auf eins setzen, navigation ueber die thumbs geht natuerlich nicht 590 docinfo = self.getNumPages(docinfo)
591 591
592 presentationUrls = dom.xpath("//texttool/presentation") 592 presentationUrls = dom.xpath("//texttool/presentation")
593 docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom) # get info von bib tag 593 docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom) # get info von bib tag
594 594
595 if presentationUrls and (len(presentationUrls) > 0): # ueberschreibe diese durch presentation informationen 595 if presentationUrls and (len(presentationUrls) > 0): # ueberschreibe diese durch presentation informationen