version 1.24, 2004/07/13 14:39:13
|
version 1.26, 2004/07/19 17:31:02
|
Line 606 class ZSQLExtendFolder(Persistent, Impli
|
Line 606 class ZSQLExtendFolder(Persistent, Impli
|
limit="1" |
limit="1" |
newRangeStart=int(self.REQUEST.SESSION[storename]['rangeStart'])+int(limit) |
newRangeStart=int(self.REQUEST.SESSION[storename]['rangeStart'])+int(limit) |
except: |
except: |
limit=0 |
limit=1 |
newRangeStart=0 |
newRangeStart=0 |
|
|
if newRangeStart>self.REQUEST.SESSION[storename]['count']: |
if newRangeStart>=self.REQUEST.SESSION[storename]['count']: |
#newRangeStart=self.REQUEST.SESSION[storename]['count']-1 |
#newRangeStart=self.REQUEST.SESSION[storename]['count']-1 |
return "" |
return "" |
|
|
Line 637 class ZSQLExtendFolder(Persistent, Impli
|
Line 637 class ZSQLExtendFolder(Persistent, Impli
|
if query[0]=="_" : query[0]="-" |
if query[0]=="_" : query[0]="-" |
|
|
if query.split("=")[0].lower()=="-skip": |
if query.split("=")[0].lower()=="-skip": |
print "d", newRangeStart |
|
skipFound=1 |
skipFound=1 |
query="-skip=%i"%newRangeStart |
query="-skip=%i"%newRangeStart |
newquery.append(query) |
newquery.append(query) |
Line 892 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 892 class ZSQLBibliography(Folder,ZSQLExtend
|
bibdata['data']=referenceTypeF[1] |
bibdata['data']=referenceTypeF[1] |
self.fields=bibdata[referenceType] |
self.fields=bibdata[referenceType] |
for field in fieldlist: |
for field in fieldlist: |
|
if referenceTypeF[1].getValue(field)[0]==None: |
|
retdata[field]=field |
|
else: |
retdata[field]=referenceTypeF[1].getValue(field)[0] |
retdata[field]=referenceTypeF[1].getValue(field)[0] |
|
|
return retdata,fieldlist |
return retdata,fieldlist |
Line 922 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 925 class ZSQLBibliography(Folder,ZSQLExtend
|
else: |
else: |
return "" |
return "" |
|
|
|
def getMetaDataXML2(self): |
|
"""crate index meta""" |
|
|
|
fn=os.path.splitext(self.REQUEST['fn'])[0]+"." |
|
self.REQUEST['fn']=fn |
|
|
|
pt=PageTemplateFile('Products/ZSQLExtend/zpt/record2.xml').__of__(self) |
|
pt.content_type="text/xml" |
|
return pt() |
|
|
def getMetaDataXML(self): |
def getMetaDataXML(self): |
"""crate index meta""" |
"""crate index meta""" |
pt=PageTemplateFile('Products/ZSQLExtend/zpt/record.xml').__of__(self) |
pt=PageTemplateFile('Products/ZSQLExtend/zpt/record.xml').__of__(self) |
Line 940 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 953 class ZSQLBibliography(Folder,ZSQLExtend
|
|
|
return ret+"\n</index>" |
return ret+"\n</index>" |
|
|
|
|
manage_addZSQLBibliographyForm=DTMLFile('ZSQLBibliographyAdd', globals()) |
manage_addZSQLBibliographyForm=DTMLFile('ZSQLBibliographyAdd', globals()) |
|
|
def manage_addZSQLBibliography(self, id, tableName,label,description,title='', |
def manage_addZSQLBibliography(self, id, tableName,label,description,title='', |