Diff for /ECHO_content/VLPExtension.py between versions 1.54 and 1.56

version 1.54, 2006/01/20 15:12:57 version 1.56, 2006/07/14 14:05:34
Line 369  class VLP_subcollection(ECHO_collection) Line 369  class VLP_subcollection(ECHO_collection)
                                  + """ORDER BY """ + sort)]                                   + """ORDER BY """ + sort)]
                   
             tocItem = [x for x in self.ZSQLSimpleSearch("""SELECT * FROM vl_literature               tocItem = [x for x in self.ZSQLSimpleSearch("""SELECT * FROM vl_literature 
                                  WHERE volumeid = '%s' """%self.getId()                                   WHERE reference = '%s' """%self.getId()
                                  + """AND online = 1 AND referenceType='%s' """%type                                   + """AND online = 1 AND referenceType='%s' """%type
                                  + """ORDER BY """ + sort)]                                   + """ORDER BY """ + sort)]
                           
Line 426  class VLP_collection(ECHO_collection): Line 426  class VLP_collection(ECHO_collection):
   
     def generateSubCollections(self,errorsTXT=""):      def generateSubCollections(self,errorsTXT=""):
             """erzeuge subcollectionen"""              """erzeuge subcollectionen"""
             founds=self.ZSQLSimpleSearch("select * from vl_literature where referencetype in ('Edited Book'),'(Book)','(Collection)','(JournalVolume)')")              founds=self.ZSQLSimpleSearch("select * from vl_literature where referencetype in ('(Edited Book)','(Book)','(Collection)','(JournalVolume)')")
                           
             self.REQUEST.RESPONSE.write("<h2>Create Subcollections</h2>\n")              self.REQUEST.RESPONSE.write("<h2>Create Subcollections</h2>\n")
             for found in founds:              for found in founds:
   
                     try:                      try:
                             foundCol=self.ZopeFind(self,obj_ids=[found.reference])                              foundCol=self.ZopeFind(self,obj_ids=[found.reference])
                             if foundCol:                              if foundCol:
Line 475  class VLP_collection(ECHO_collection): Line 476  class VLP_collection(ECHO_collection):
         files=os.listdir(self.vlp_basis)          files=os.listdir(self.vlp_basis)
   
         errorsTXT+="<h3>New Ressources</h3>"          errorsTXT+="<h3>New Ressources</h3>"
   
         for fileName in files:          for fileName in files:
                           
             if fileName[0:3]=="lit":              if fileName[0:3]=="lit":

Removed from v.1.54  
changed lines
  Added in v.1.56


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