Mercurial > hg > documentViewer
comparison documentViewer.py @ 65:c048559460a3
fix problems with full text paths starting with /mpiwg/online
| author | casties |
|---|---|
| date | Fri, 29 Jun 2007 17:44:40 +0200 |
| parents | 4a17b755bfc7 |
| children | b8457fc33446 |
comparison
equal
deleted
inserted
replaced
| 64:d928e4820b93 | 65:c048559460a3 |
|---|---|
| 423 textUrls=dom.xpath("//texttool/text") | 423 textUrls=dom.xpath("//texttool/text") |
| 424 if textUrls and (len(textUrls)>0): | 424 if textUrls and (len(textUrls)>0): |
| 425 textUrl=getTextFromNode(textUrls[0]) | 425 textUrl=getTextFromNode(textUrls[0]) |
| 426 if urlparse.urlparse(textUrl)[0]=="": #keine url | 426 if urlparse.urlparse(textUrl)[0]=="": #keine url |
| 427 textUrl=os.path.join(archivePath,textUrl) | 427 textUrl=os.path.join(archivePath,textUrl) |
| 428 | 428 # fix URLs starting with /mpiwg/online |
| 429 if textUrl.startswith("/mpiwg/online"): | |
| 430 textUrl = textUrl.replace("/mpiwg/online",'',1) | |
| 431 | |
| 429 docinfo['textURL'] = textUrl | 432 docinfo['textURL'] = textUrl |
| 430 | 433 |
| 431 presentationUrls=dom.xpath("//texttool/presentation") | 434 presentationUrls=dom.xpath("//texttool/presentation") |
| 432 docinfo = self.getBibinfoFromIndexMeta(url,docinfo=docinfo,dom=dom) # get info von bib tag | 435 docinfo = self.getBibinfoFromIndexMeta(url,docinfo=docinfo,dom=dom) # get info von bib tag |
| 433 | 436 |
