Changeset 452:8019b5360508 in documentViewer


Ignore:
Timestamp:
Jan 4, 2012, 7:38:17 AM (12 years ago)
Author:
dwinter
Branch:
default
Message:

hack for annalen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r449 r452  
    778778           
    779779            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           
    781794        # new style text-url-path
    782795        textUrls = dom.xpath("//texttool/text-url-path")
Note: See TracChangeset for help on using the changeset viewer.