Changeset 227:fd9aa1d0941a in documentViewer
- Timestamp:
- Oct 8, 2010, 2:02:24 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r226 r227 532 532 except: 533 533 docinfo['lang']='' 534 try: 535 docinfo['name']=getTextFromNode(dom.xpath("//%s"%bibmap['name'][0])[0]) 536 except: pass 537 534 538 535 return docinfo 539 536 … … 554 551 #docinfo['numPages']=int(getTextFromNode(result[0])) 555 552 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 562 557 #logging.debug("documentViewer (getbibinfofromindexmeta) using mapping for %s"%bibtype) 563 558 return docinfo … … 681 676 try: 682 677 docinfo['year']=getTextFromNode(dom.xpath("//date")[0]) 683 except:684 pass685 try:686 docinfo['name']=getTextFromNode(dom.xpath("//name")[0])687 678 except: 688 679 pass
Note: See TracChangeset
for help on using the changeset viewer.