Changeset 227:fd9aa1d0941a in documentViewer


Ignore:
Timestamp:
Oct 8, 2010, 2:02:24 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r226 r227  
    532532            except:
    533533                docinfo['lang']=''
    534             try:
    535                 docinfo['name']=getTextFromNode(dom.xpath("//%s"%bibmap['name'][0])[0])
    536             except: pass
    537            
     534
    538535        return docinfo
    539536   
     
    554551        #docinfo['numPages']=int(getTextFromNode(result[0]))
    555552       
    556         if len(name) > 0:
    557             try:
    558                 result =dom.xpath("//name")
    559                 docinfo['name']=getTextFromNode(result[0])
    560                 logging.debug("documentViewer docinfo[name] %s"%docinfo[name])
    561             except: pass 
     553        #result =dom.xpath("//name")
     554        docinfo['name']=getTextFromNode(dom.xpath("//name")[0])
     555        logging.debug("documentViewer docinfo[name] %s"%docinfo[name])
     556           
    562557                #logging.debug("documentViewer (getbibinfofromindexmeta) using mapping for %s"%bibtype)
    563558        return docinfo
     
    681676        try:
    682677            docinfo['year']=getTextFromNode(dom.xpath("//date")[0])
    683         except:
    684             pass
    685         try:
    686             docinfo['name']=getTextFromNode(dom.xpath("//name")[0])
    687678        except:
    688679            pass
Note: See TracChangeset for help on using the changeset viewer.