Diff for /ECHO_content/VLPExtension.py between versions 1.52 and 1.53

version 1.52, 2005/10/26 11:18:19 version 1.53, 2005/12/05 14:17:59
Line 347  class VLP_subcollection(ECHO_collection) Line 347  class VLP_subcollection(ECHO_collection)
   
         meta_type="VLP_subcollection"          meta_type="VLP_subcollection"
                   
           def getVLPSubcollectionToc(self,type):
               
               #different ordering depending on the type
               if(type == "(Collection)"):
                  sort= "shortreference"
               else:
                  sort = "startpages"
              
              #content of journals also displayed if not online
              
               if (type == "(Journal)"):
                  online =""
               else:
                  online ="AND online = 1"
               sort=self.collectionSort(type)
           
               item = [x for x in self.ZSQLSimpleSearch("""SELECT * FROM vl_literature 
                                    WHERE volumeid = '%s' """%self.getId()
                                    + """ %s AND not referenceType='%s' """%(online,type)
                                    + """ORDER BY """ + sort)]
           
               tocItem = [x for x in self.ZSQLSimpleSearch("""SELECT * FROM vl_literature 
                                    WHERE volumeid = '%s' """%self.getId()
                                    + """AND online = 1 AND referenceType='%s' """%type
                                    + """ORDER BY """ + sort)]
               
               
   
               return tocItem+item
               
         def checkForFrontMatter(self,item):          def checkForFrontMatter(self,item):
                 """Teste ob Frontmatter exists"""                  """Teste ob Frontmatter exists"""
                 if not item==self.getId():                  if not item==self.getId():

Removed from v.1.52  
changed lines
  Added in v.1.53


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>