version 1.177, 2011/08/31 13:55:17
|
version 1.178, 2012/01/04 07:38:17
|
Line 778 class documentViewer(Folder):
|
Line 778 class documentViewer(Folder):
|
|
|
docinfo['textURL'] = textUrl |
docinfo['textURL'] = textUrl |
|
|
|
|
|
#TODO: hack-DW for annalen |
|
if (textUrl is not None) and (textUrl.startswith("/permanent/einstein/annalen")): |
|
textUrl=textUrl.replace("/permanent/einstein/annalen/","/diverse/de/") |
|
splitted=textUrl.split("/fulltext") |
|
textUrl=splitted[0]+".xml" |
|
textUrlkurz = string.split(textUrl, ".")[0] |
|
docinfo['textURLPathkurz'] = textUrlkurz |
|
docinfo['textURLPath'] = textUrl |
|
logging.debug("hack") |
|
logging.debug(textUrl) |
|
|
|
|
# new style text-url-path |
# new style text-url-path |
textUrls = dom.xpath("//texttool/text-url-path") |
textUrls = dom.xpath("//texttool/text-url-path") |
if textUrls and (len(textUrls) > 0): |
if textUrls and (len(textUrls) > 0): |