version 1.176, 2011/07/29 10:33:06
|
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): |
Line 919 class documentViewer(Folder):
|
Line 932 class documentViewer(Folder):
|
pageinfo ['highlightElementPos'] = self.REQUEST.get('highlightElementPos','') |
pageinfo ['highlightElementPos'] = self.REQUEST.get('highlightElementPos','') |
pageinfo ['highlightElement'] = self.REQUEST.get('highlightElement','') |
pageinfo ['highlightElement'] = self.REQUEST.get('highlightElement','') |
|
|
|
pageinfo ['xpointer'] = self.REQUEST.get('xpointer','') |
|
|
pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') |
pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') |
pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10') |
pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10') |