Changeset 102:27513c893ba9 in documentViewer


Ignore:
Timestamp:
May 10, 2010, 1:22:16 PM (14 years ago)
Author:
casties
Branch:
default
Message:

trying to fix text-only documents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r101 r102  
    547547        if textUrls and (len(textUrls) > 0):
    548548            textUrl = getTextFromNode(textUrls[0])
    549             docinfo['textURLPath'] = textUrl   
     549            docinfo['textURLPath'] = textUrl
     550            if not docinfo['imagePath']:
     551                # text-only, no page images
     552                docinfo = self.getNumPages(docinfo) #im moment einfach auf eins setzen, navigation ueber die thumbs geht natuerlich nicht   
    550553         
    551554        presentationUrls = dom.xpath("//texttool/presentation")
     
    560563            else:
    561564                presentationUrl = url + "/" + presentationPath
    562             docinfo = self.getNumPages(docinfo) #im moment einfach auf eins setzen, navigation ueber die thumbs geht natuerlich nicht   
     565               
    563566            docinfo = self.getBibinfoFromTextToolPresentation(presentationUrl, docinfo=docinfo, dom=dom)
    564567   
Note: See TracChangeset for help on using the changeset viewer.