Changeset 632:4a75a760def2 in documentViewer


Ignore:
Timestamp:
Jul 2, 2015, 8:29:50 AM (9 years ago)
Author:
Dirk Wintergruen <dwinter@…>
Branch:
default
Message:

dictionary handling added

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MpiwgXmlTextServer.py

    r613 r632  
    304304            textParams['outputFormat'] = 'html'
    305305       
     306       
     307     
    306308        try:
    307309            # fetch the page
     310           
     311           
     312           
     313           
    308314            pagexml = self.getServerData("query/GetPage",urllib.urlencode(textParams))
    309315            dom = ET.fromstring(pagexml)
     
    372378                # delete non-matching children of a-tag and suppress remaining tag name
    373379                atag = wtag.find("*[@class='dictionary']")
     380               
     381                if atag is None: #nicht gefunden weil noch andere Eintraege im class tag
     382                    for w in wtag.findall("a"): 
     383                        val = w.attrib.get("class","")
     384                        if val.startswith("dictionary"):
     385                                atag=w
     386                                break
     387               
     388               
     389               
     390               
     391               
    374392                if normMode == 'orig':
    375393                    atag.remove(atag.find("span[@class='reg']"))
     
    387405            else:
    388406                # delete a-tag
    389                 wtag.remove(wtag.find("*[@class='dictionary']"))
     407               
     408
     409                wt =  wtag.find("*[@class='dictionary']") 
     410               
     411                if wt is None: #nicht gefunden weil noch andere Eintraege im class tag vorhanden sind
     412                    for w in wtag.findall("a"): 
     413                        val = w.attrib.get("class","")
     414                        if val.startswith("dictionary"):
     415                                wt=w
     416                                break
     417               
     418               
     419               
     420                 
     421                wtag.remove(wt)
    390422                # delete non-matching children and suppress remaining tag name
    391423                if normMode == 'orig':
  • css/docuviewer.css

    r629 r632  
    44 * Robert Casties 2012.
    55 */
     6 
     7 
     8 .iliese {
     9 background-color: lime;
     10 }
     11 
     12 
     13 
    614body {
    715    background-color: #ebebeb;
Note: See TracChangeset for help on using the changeset viewer.