changeset 468:dc7c48912110 elementtree

attribution and copyright works mostly now
author casties
date Tue, 02 Aug 2011 18:29:15 +0200
parents 8b75d55582e8
children 15394486ab75
files documentViewer.py
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Tue Aug 02 12:35:05 2011 +0200
+++ b/documentViewer.py	Tue Aug 02 18:29:15 2011 +0200
@@ -464,7 +464,7 @@
         # process index.meta contents
         if metaDom is not None:
             # document directory name and path
-            logging.debug("RESOURCE: %s"%repr(self.metadataService.resource.getData(dom=metaDom,recursive=1)))
+            logging.debug("RESOURCE: %s"%repr(self.metadataService.resource.meta.getData(dom=metaDom, all=True, recursive=2)))
             resource = self.metadataService.getResourceData(dom=metaDom)
             if resource:
                 docinfo = self.getDocinfoFromResource(docinfo, resource)
@@ -565,9 +565,15 @@
         textUrl = texttool.get('text-url-path', None)
         if textUrl:
             docinfo['textURLPath'] = textUrl
-            #TODO: ugly:
-            #textUrlkurz = string.split(textUrl, ".")[0]
-            #docinfo['textURLPathkurz'] = textUrlkurz
+            
+        # page flow
+        docinfo['pageFlow'] = texttool.get('page-flow', 'ltr')
+            
+        # odd pages are left
+        docinfo['oddPage'] = texttool.get('odd-scan-orientation', 'left')
+            
+        # number of title page
+        docinfo['titlePage'] = texttool.get('title-scan-no', 0)
             
         # old presentation stuff
         presentation = texttool.get('presentation', None)
@@ -577,6 +583,7 @@
             else:
                 docinfo['presentationUrl'] = os.path.join(docPath, presentation)
             
+        
         return docinfo
 
     def getDocinfoFromBib(self, docinfo, bib):