version 1.225, 2011/02/14 14:41:12
|
version 1.226, 2011/02/15 11:12:39
|
Line 210 class MpdlXmlTextServer(SimpleItem):
|
Line 210 class MpdlXmlTextServer(SimpleItem):
|
docinfo['pageNumberOrig']= getTextFromNode(pagedivs[0]) |
docinfo['pageNumberOrig']= getTextFromNode(pagedivs[0]) |
logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrig'])) |
logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrig'])) |
|
|
|
#original Pages Norm |
|
pagedivs = dom.xpath("//div[@class='pageNumberOrigNorm']") |
|
if pagedivs == dom.xpath("//div[@class='pageNumberOrigNorm']"): |
|
if len(pagedivs)>0: |
|
docinfo['pageNumberOrigNorm']= getTextFromNode(pagedivs[0]) |
|
logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrigNorm'])) |
|
|
|
|
#figureEntries |
#figureEntries |
pagedivs = dom.xpath("//div[@class='countFigureEntries']") |
pagedivs = dom.xpath("//div[@class='countFigureEntries']") |
if pagedivs == dom.xpath("//div[@class='countFigureEntries']"): |
if pagedivs == dom.xpath("//div[@class='countFigureEntries']"): |
Line 288 class MpdlXmlTextServer(SimpleItem):
|
Line 296 class MpdlXmlTextServer(SimpleItem):
|
docinfo['countPlaces'] = 0 |
docinfo['countPlaces'] = 0 |
docinfo['countTocEntries'] = 0 |
docinfo['countTocEntries'] = 0 |
docinfo['numPages'] = 0 |
docinfo['numPages'] = 0 |
|
docinfo['pageNumberOrigNorm'] = 0 |
#return docinfo |
#return docinfo |
|
|
# plain text mode |
# plain text mode |