Changeset 579:fc861a6cef17 in documentViewer
- Timestamp:
- Oct 26, 2012, 10:53:43 AM (12 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MpiwgXmlTextServer.py
r577 r579 213 213 214 214 # TODO: this should not be necessary when the backend is fixed 215 textParams['normalization'] = normMode215 #textParams['normalization'] = normMode 216 216 217 217 if not mode: … … 274 274 if pagediv is not None: 275 275 # add textmode and normMode classes 276 pagediv.set('class', 'text %s %s'%(textmode, normMode))276 #pagediv.set('class', 'text %s %s'%(textmode, normMode)) 277 277 self._processWTags(textmode, normMode, pagediv) 278 278 #self._processPbTag(pagediv, pageinfo) … … 343 343 return serialize(pagediv) 344 344 345 logging.error("getTextPage: error in text mode %s or text!"%(textmode))345 logging.error("getTextPage: error in text mode %s or in text!"%(textmode)) 346 346 return None 347 347 … … 358 358 wtag.remove(wtag.find("span[@class='nodictionary norm']")) 359 359 # delete non-matching children of a-tag and suppress remaining tag name 360 atag = wtag.find(" a[@class='dictionary']")360 atag = wtag.find("*[@class='dictionary']") 361 361 if normMode == 'orig': 362 362 atag.remove(atag.find("span[@class='reg']")) … … 374 374 else: 375 375 # delete a-tag 376 wtag.remove(wtag.find(" a[@class='dictionary']"))376 wtag.remove(wtag.find("*[@class='dictionary']")) 377 377 # delete non-matching children and suppress remaining tag name 378 378 if normMode == 'orig': -
zpt/viewer_index.zpt
r578 r579 103 103 </tal:block> 104 104 105 <tal:block tal:define="ctxs docinfo/presentationContext | nothing" >105 <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs"> 106 106 <h2>Presentation context</h2> 107 107 <ul>
Note: See TracChangeset
for help on using the changeset viewer.