version 1.17, 2004/04/05 21:54:42
|
version 1.19, 2004/04/14 21:26:23
|
Line 169 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 1171 def isScannedDocument(self,path):
|
Line 1184 def isScannedDocument(self,path):
|
try: |
try: |
dom = xml.dom.minidom.parseString(lines) |
dom = xml.dom.minidom.parseString(lines) |
content_type=getText(dom.getElementsByTagName("content-type")[0].childNodes) |
content_type=getText(dom.getElementsByTagName("content-type")[0].childNodes) |
if (content_type=="scanned-document") or (content_type=="scanned document"): |
if (content_type=="scanned-document") or (content_type=="scanned document") or (content_type=="fulltext document"): |
return 1 |
return 1 |
else: |
else: |
return 0 |
return 0 |