Changeset 430:d6a2125a4b09 in documentViewer
- Timestamp:
- Feb 14, 2011, 2:41:13 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r427 r430 231 231 """get page""" 232 232 return self.template.fulltextclient.getTextPage(**args) 233 233 234 def getText(self, **args): 235 """get page text""" 236 return self.template.fulltextclient.getText(**args) 237 238 def getXML(self, **args): 239 """get page xml""" 240 return self.template.fulltextclient.getXML(**args) 241 242 def getDictionary(self, **args): 243 """get page dictionary""" 244 return self.template.fulltextclient.getDictionary(**args) 245 234 246 def getQuery(self, **args): 235 247 """get query in search""" … … 337 349 page = self.getTextPage(docinfo=docinfo, pageinfo=pageinfo) 338 350 pageinfo['textPage'] = page 339 pt = getattr(self.template, 'viewer_main') 351 tt = getattr(self, 'template') 352 pt = getattr(tt, 'viewer_main') 340 353 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=self.generateMarks(mk)) 341 354 … … 629 642 except: 630 643 docinfo['lang']='' 631 644 try: 645 docinfo['city']=getTextFromNode(dom.xpath("//bib/city")[0]) 646 except: 647 docinfo['city']='' 648 try: 649 docinfo['number_of_pages']=getTextFromNode(dom.xpath("//bib/number_of_pages")[0]) 650 except: 651 docinfo['number_of_pages']='' 652 try: 653 docinfo['series_volume']=getTextFromNode(dom.xpath("//bib/series_volume")[0]) 654 except: 655 docinfo['series_volume']='' 656 try: 657 docinfo['number_of_volumes']=getTextFromNode(dom.xpath("//bib/number_of_volumes")[0]) 658 except: 659 docinfo['number_of_volumes']='' 660 try: 661 docinfo['translator']=getTextFromNode(dom.xpath("//bib/translator")[0]) 662 except: 663 docinfo['translator']='' 664 try: 665 docinfo['edition']=getTextFromNode(dom.xpath("//bib/edition")[0]) 666 except: 667 docinfo['edition']='' 668 try: 669 docinfo['series_author']=getTextFromNode(dom.xpath("//bib/series_author")[0]) 670 except: 671 docinfo['series_author']='' 672 try: 673 docinfo['publisher']=getTextFromNode(dom.xpath("//bib/publisher")[0]) 674 except: 675 docinfo['publisher']='' 676 try: 677 docinfo['series_title']=getTextFromNode(dom.xpath("//bib/series_title")[0]) 678 except: 679 docinfo['series_title']='' 680 try: 681 docinfo['isbn_issn']=getTextFromNode(dom.xpath("//bib/isbn_issn")[0]) 682 except: 683 docinfo['isbn_issn']='' 632 684 return docinfo 633 685
Note: See TracChangeset
for help on using the changeset viewer.