Mercurial > hg > documentViewer
comparison documentViewer.py @ 191:cffaec9bc5ad
*** empty log message ***
author | abukhman |
---|---|
date | Tue, 05 Oct 2010 11:22:46 +0200 |
parents | 5780092e4989 |
children | 1737b7eb7945 |
comparison
equal
deleted
inserted
replaced
190:c92e6b923913 | 191:cffaec9bc5ad |
---|---|
175 return self.template.fulltextclient.getSearch(**args) | 175 return self.template.fulltextclient.getSearch(**args) |
176 | 176 |
177 def getNumPages(self, docinfo): | 177 def getNumPages(self, docinfo): |
178 """get numpages""" | 178 """get numpages""" |
179 return self.template.fulltextclient.getNumPages(docinfo) | 179 return self.template.fulltextclient.getNumPages(docinfo) |
180 | 180 |
181 def getNumTextPages(self, docinfo): | |
182 """get numpages text""" | |
183 return self.template.fulltextclient.getNumTextPages(docinfo) | |
184 | |
181 def getTranslate(self, **args): | 185 def getTranslate(self, **args): |
182 """get translate""" | 186 """get translate""" |
183 return self.template.fulltextclient.getTranslate(**args) | 187 return self.template.fulltextclient.getTranslate(**args) |
184 | 188 |
185 def getLemma(self, **args): | 189 def getLemma(self, **args): |
609 if textUrls and (len(textUrls) > 0): | 613 if textUrls and (len(textUrls) > 0): |
610 textUrl = getTextFromNode(textUrls[0]) | 614 textUrl = getTextFromNode(textUrls[0]) |
611 docinfo['textURLPath'] = textUrl | 615 docinfo['textURLPath'] = textUrl |
612 if not docinfo['imagePath']: | 616 if not docinfo['imagePath']: |
613 # text-only, no page images | 617 # text-only, no page images |
614 docinfo = self.getNumPages(docinfo) | 618 docinfo = self.getNumTextPages(docinfo) |
615 | 619 |
616 presentationUrls = dom.xpath("//texttool/presentation") | 620 presentationUrls = dom.xpath("//texttool/presentation") |
617 docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom) # get info von bib tag | 621 docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom) # get info von bib tag |
618 | 622 |
619 if presentationUrls and (len(presentationUrls) > 0): # ueberschreibe diese durch presentation informationen | 623 if presentationUrls and (len(presentationUrls) > 0): # ueberschreibe diese durch presentation informationen |