version 1.44, 2004/10/22 13:32:24
|
version 1.46, 2004/10/28 14:16:00
|
Line 62 class ZSQLExtendFolder(Folder,Persistent
|
Line 62 class ZSQLExtendFolder(Folder,Persistent
|
for oneclass in classes: |
for oneclass in classes: |
ret[oneclass]=len(self.ZSQLSimpleSearch(statement + " where ("+wherePart+") and "+ relStatement%oneclass)) |
ret[oneclass]=len(self.ZSQLSimpleSearch(statement + " where ("+wherePart+") and "+ relStatement%oneclass)) |
|
|
return (ret,allRecords) |
. return (ret,allRecords) |
|
|
def content_html(self): |
def content_html(self): |
"""template fuer content""" |
"""template fuer content""" |
Line 71 class ZSQLExtendFolder(Folder,Persistent
|
Line 71 class ZSQLExtendFolder(Folder,Persistent
|
obj=getattr(self,"ZSQLBibliography_template") |
obj=getattr(self,"ZSQLBibliography_template") |
return obj() |
return obj() |
except: |
except: |
pt=PageTemplateFile('Products/ZSQLExtend/zpt/ZSQLBibliography_template_standard.zpt',content_type='text/htm').__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','ZSQLBibliography_template_standard.zpt'),content_type='text/html').__of__(self) |
pt.content_type="text/html" |
pt.content_type="text/html" |
|
|
return pt() |
return pt() |
Line 104 class ZSQLExtendFolder(Folder,Persistent
|
Line 104 class ZSQLExtendFolder(Folder,Persistent
|
|
|
def changeZSQLExtendForm(self): |
def changeZSQLExtendForm(self): |
"""change folder config""" |
"""change folder config""" |
pt=PageTemplateFile('Products/ZSQLExtend/zpt/changeZSQLExtendForm.zpt').__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','changeZSQLExtendForm.zpt')).__of__(self) |
return pt() |
return pt() |
|
|
|
|
Line 534 class ZSQLExtendFolder(Folder,Persistent
|
Line 534 class ZSQLExtendFolder(Folder,Persistent
|
"""analysieren den QueryString""" |
"""analysieren den QueryString""" |
#print "NO",nostore |
#print "NO",nostore |
lop="AND" # standardsuche mit and |
lop="AND" # standardsuche mit and |
max="ALL" #standard alle auswählen |
max="ALL" #standard alle auswaehlen |
maxstr="" |
maxstr="" |
whereList=[] |
whereList=[] |
sort="" |
sort="" |
op="bw" |
op="bw" |
opfields={} |
opfields={} |
lopfields={} #Verknüpfung bei mehrfachauswahl von einem feld |
lopfields={} #Verknuepfung bei mehrfachauswahl von einem feld |
sortfields={} #order of sortfields |
sortfields={} #order of sortfields |
sortAllFields=None |
sortAllFields=None |
skip="" |
skip="" |
Line 863 class ZSQLExtendFolder(Folder,Persistent
|
Line 863 class ZSQLExtendFolder(Folder,Persistent
|
newquery.append(query) |
newquery.append(query) |
|
|
newquerystring=string.join(newquery,"&") |
newquerystring=string.join(newquery,"&") |
|
return "<a href='%s'>%s</a>"%(self.REQUEST['URL']+"?"+newquerystring,html) |
|
|
return "<a href='%s'>%s</a>"%(self.actualPath()+"?"+newquerystring,html) |
|
|
|
|
|
def prevLink(self,html,storename="foundCount"): |
def prevLink(self,html,storename="foundCount"): |
Line 890 class ZSQLExtendFolder(Folder,Persistent
|
Line 890 class ZSQLExtendFolder(Folder,Persistent
|
|
|
if self.REQUEST['QUERY_STRING']=="": |
if self.REQUEST['QUERY_STRING']=="": |
qs=self.REQUEST.SESSION['query'] |
qs=self.REQUEST.SESSION['query'] |
#qs=re.sub(r'_','-',qs) #aendern für query |
#qs=re.sub(r'_','-',qs) #aendern fuer query |
queries=string.split(qs,",") |
queries=string.split(qs,",") |
|
|
|
|
Line 921 class ZSQLExtendFolder(Folder,Persistent
|
Line 921 class ZSQLExtendFolder(Folder,Persistent
|
|
|
newquerystring=string.join(newquery,"&") |
newquerystring=string.join(newquery,"&") |
|
|
return "<a href='%s'>%s</a>"%(self.actualPath()+"?"+newquerystring,html) |
return "<a href='%s'>%s</a>"%(self.REQUEST['URL']+"?"+newquerystring,html) |
|
|
|
|
|
|
Line 1046 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 1046 class ZSQLBibliography(Folder,ZSQLExtend
|
|
|
def changeZSQLBibliographyForm(self): |
def changeZSQLBibliographyForm(self): |
"""change folder config""" |
"""change folder config""" |
pt=PageTemplateFile('Products/ZSQLExtend/zpt/changeZSQLBibliographyForm.zpt').__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','changeZSQLBibliographyForm.zpt')).__of__(self) |
return pt() |
return pt() |
|
|
|
|
Line 1057 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 1057 class ZSQLBibliography(Folder,ZSQLExtend
|
obj=getattr(self,"ZSQLBibliography_template") |
obj=getattr(self,"ZSQLBibliography_template") |
return obj() |
return obj() |
except: |
except: |
pt=PageTemplateFile('Products/ZSQLExtend/zpt/ZSQLBibliography_template_standard.zpt').__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','ZSQLBibliography_template_standard.zpt')).__of__(self) |
pt.content_type="text/html" |
pt.content_type="text/html" |
return pt() |
return pt() |
|
|
Line 1150 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 1150 class ZSQLBibliography(Folder,ZSQLExtend
|
fn=os.path.splitext(self.REQUEST['fn'])[0]+"." |
fn=os.path.splitext(self.REQUEST['fn'])[0]+"." |
self.REQUEST['fn']=fn |
self.REQUEST['fn']=fn |
|
|
pt=PageTemplateFile('Products/ZSQLExtend/zpt/record2.xml').__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','record2.xml')).__of__(self) |
pt.content_type="text/xml" |
pt.content_type="text/xml" |
return pt() |
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(os.path.join(package_home(globals()),'zpt','record.xml').__of__(self) |
pt.content_type="text/xml" |
pt.content_type="text/xml" |
return pt() |
return pt() |
|
|