Changeset 79:df6952ac93e9 in documentViewer


Ignore:
Timestamp:
Mar 9, 2009, 8:37:19 AM (15 years ago)
Author:
dwinter
Branch:
default
Tags:
Root_integrate_imageArchive
Message:

bug in getDocInforFromImagePath, relative lage der index.meta zu path war falsch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r78 r79  
    385385                path=getParentDir(path)
    386386            dom = self.getIndexMeta(path)
    387            
     387       
     388        logging.debug("documentViewer (getbibinfofromindexmeta cutted) path: %s"%(path))
    388389        # put in all raw bib fields as dict "bib"
    389390        bib = dom.xpath("//bib/*")
     
    540541        docinfo=self.getDirinfoFromDigilib(path,docinfo=docinfo,cut=cut)
    541542       
     543        pathorig=path
    542544        for x in range(cut):       
    543545                path=getParentDir(path)
     
    546548        docinfo['imageURL'] = imageUrl
    547549       
    548         docinfo = self.getBibinfoFromIndexMeta(path,docinfo=docinfo,cut=cut)
    549         docinfo = self.getAuthinfoFromIndexMeta(path,docinfo=docinfo,cut=cut)
     550        #path ist the path to the images it assumes that the index.meta file is one level higher.
     551        docinfo = self.getBibinfoFromIndexMeta(pathorig,docinfo=docinfo,cut=cut+1)
     552        docinfo = self.getAuthinfoFromIndexMeta(pathorig,docinfo=docinfo,cut=cut+1)
    550553        return docinfo
    551554   
Note: See TracChangeset for help on using the changeset viewer.