--- documentViewer/MpdlXmlTextServer.py 2010/09/24 13:48:03 1.41 +++ documentViewer/MpdlXmlTextServer.py 2010/10/05 10:53:05 1.50 @@ -122,13 +122,25 @@ class MpdlXmlTextServer(SimpleItem): """get list of pages from fulltext and put in docinfo""" if 'numPages' in docinfo: # already there - return docinfo - + return docinfo xquery = '//pb' text = self.getServerData("xquery.xql","document=%s&xquery=%s"%(docinfo['textURLPath'],xquery)) - #text = self.template.fulltextclient.eval("/mpdl/interface/xquery.xql", "document=%s&xquery=%s"%(docinfo['textURLPath'],xquery)) docinfo['numPages'] = text.count("