Mercurial > hg > documentViewer
comparison documentViewer.py @ 564:31f562fa7214
first version of MpiwgXmlTextServer.
author | casties |
---|---|
date | Mon, 08 Oct 2012 20:36:00 +0200 |
parents | 60f5a636bc57 |
children | 1b483194901c |
comparison
equal
deleted
inserted
replaced
563:8f2dab2d2d2a | 564:31f562fa7214 |
---|---|
584 texttool = self.metadataService.getTexttoolData(dom=metaDom, recursive=1, all=True) | 584 texttool = self.metadataService.getTexttoolData(dom=metaDom, recursive=1, all=True) |
585 if texttool: | 585 if texttool: |
586 docinfo = self.getDocinfoFromTexttool(docinfo, texttool) | 586 docinfo = self.getDocinfoFromTexttool(docinfo, texttool) |
587 # document info (including toc) from full text | 587 # document info (including toc) from full text |
588 if docinfo.get('textURLPath', None): | 588 if docinfo.get('textURLPath', None): |
589 docinfo = self.getTextInfo(mode=tocMode, docinfo=docinfo) | 589 docinfo = self.getTextInfo(mode='pages', docinfo=docinfo) |
590 | 590 |
591 # bib info | 591 # bib info |
592 bib = self.metadataService.getBibData(dom=metaDom) | 592 bib = self.metadataService.getBibData(dom=metaDom) |
593 if bib: | 593 if bib: |
594 # save extended version as 'bibx' TODO: ugly | 594 # save extended version as 'bibx' TODO: ugly |
721 textRepo = textUrlAtts['repository'] | 721 textRepo = textUrlAtts['repository'] |
722 # use matching repository | 722 # use matching repository |
723 if self.getRepositoryType() == textRepo: | 723 if self.getRepositoryType() == textRepo: |
724 docinfo['textURLPath'] = textUrl | 724 docinfo['textURLPath'] = textUrl |
725 docinfo['textURLRepository'] = textRepo | 725 docinfo['textURLRepository'] = textRepo |
726 break | |
726 | 727 |
727 else: | 728 else: |
728 # no repo attribute - use always | 729 # no repo attribute - use always |
729 docinfo['textURLPath'] = textUrl | 730 docinfo['textURLPath'] = textUrl |
730 | 731 |