version 1.53, 2005/12/05 14:17:59
|
version 1.55, 2006/02/13 16:41:49
|
Line 357 class VLP_subcollection(ECHO_collection)
|
Line 357 class VLP_subcollection(ECHO_collection)
|
|
|
#content of journals also displayed if not online |
#content of journals also displayed if not online |
|
|
if (type == "(Journal)"): |
if (type == "(JournalVolume)"): |
online ="" |
online ="" |
else: |
else: |
online ="AND online = 1" |
online ="AND online = 1" |
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 ('(Book)','(Collection)','(Journal)')") |
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": |