Changeset 452:8019b5360508 in documentViewer
- Timestamp:
- Jan 4, 2012, 7:38:17 AM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r449 r452 778 778 779 779 docinfo['textURL'] = textUrl 780 780 781 782 #TODO: hack-DW for annalen 783 if (textUrl is not None) and (textUrl.startswith("/permanent/einstein/annalen")): 784 textUrl=textUrl.replace("/permanent/einstein/annalen/","/diverse/de/") 785 splitted=textUrl.split("/fulltext") 786 textUrl=splitted[0]+".xml" 787 textUrlkurz = string.split(textUrl, ".")[0] 788 docinfo['textURLPathkurz'] = textUrlkurz 789 docinfo['textURLPath'] = textUrl 790 logging.debug("hack") 791 logging.debug(textUrl) 792 793 781 794 # new style text-url-path 782 795 textUrls = dom.xpath("//texttool/text-url-path")
Note: See TracChangeset
for help on using the changeset viewer.