version 1.16, 2004/03/25 09:57:47
|
version 1.18, 2004/04/08 16:50:01
|
Line 157 class OSAS_StoreOnline(SimpleItem):
|
Line 157 class OSAS_StoreOnline(SimpleItem):
|
"""Test ob Eintrag ein Folder ist""" |
"""Test ob Eintrag ein Folder ist""" |
return isFullText(path,folder_name) |
return isFullText(path,folder_name) |
|
|
|
def isPresentation(self,path,folder_name): |
|
"""Test ob Eintrag ein Folder ist""" |
|
return isPresentation(path,folder_name) |
|
|
def date(self): |
def date(self): |
return strftime("%d.%m.%Y",localtime()) |
return strftime("%d.%m.%Y",localtime()) |
|
|
Line 165 class OSAS_StoreOnline(SimpleItem):
|
Line 169 class OSAS_StoreOnline(SimpleItem):
|
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_addFolder.zpt').__of__(self) |
pt=PageTemplateFile('Products/OSA_system/zpt/OSAS_addFolder.zpt').__of__(self) |
return pt() |
return pt() |
|
|
|
def showHelp(self,refType,genericTag): |
|
"""helptext""" |
|
for reference in self.ZopeFind(self.standardMD): |
|
if reference[1].title==refType: |
|
text=getattr(reference[1],'md_'+genericTag)[2] |
|
return text |
|
return "NO EXPLANATION" |
|
|
|
def showHelpTag(self,url,reftype,item): |
|
"""gen javascript for showhelp""" |
|
url2=url+'/showHelp?refType=%s&genericTag=%s'%(reftype,item) |
|
ret="""javascript:wd=window.open(\'%s\',\'Help\',\'width=300,height=250\');void(\'\');wd.focus();"""%url2 |
|
return ret |
|
|
def addFolder(self,path,folder_name,description,archive_creation_date,creator): |
def addFolder(self,path,folder_name,description,archive_creation_date,creator): |
"""add the folder to the filesystem and write the metadata files""" |
"""add the folder to the filesystem and write the metadata files""" |
Line 956 def hasMetafile(path):
|
Line 973 def hasMetafile(path):
|
return os.path.exists(path+"/index.meta") |
return os.path.exists(path+"/index.meta") |
#return path |
#return path |
|
|
|
|
|
|
def isdigilib2(path): |
def isdigilib2(path): |
"""check if folder is candidate for digilib without metadata""" |
"""check if folder is candidate for digilib without metadata""" |
try: |
try: |