--- documentViewer/MpdlXmlTextServer.py 2011/08/05 13:31:27 1.238.2.9 +++ documentViewer/MpdlXmlTextServer.py 2011/08/05 17:04:20 1.238.2.10 @@ -257,6 +257,10 @@ class MpdlXmlTextServer(SimpleItem): # WTF: s1 = int(s)/30+1 docinfo['numTocEntries'] = getInt(div.text) + # numPlaces + elif dc == 'countPlaces': + docinfo['numPlaces'] = getInt(div.text) + # numTextPages elif dc == 'countPages': np = getInt(div.text) @@ -302,6 +306,7 @@ class MpdlXmlTextServer(SimpleItem): textmode = "textPollux" elif not mode: # default is text + mode = "text" textmode = "text" else: textmode = mode @@ -340,7 +345,7 @@ class MpdlXmlTextServer(SimpleItem): return serialize(pagediv) # text-with-links mode - elif mode == "text_dict": + elif mode == "dict": if pagediv is not None: # check all a-tags links = pagediv.findall(".//a")