; |Ac@sdkZdkTdkZdkZddddddgZdd gZd Zd Z d Z d Z dZ dZ dZdZdZdZdS(N(s*sOSAS_metaDataFilesOSAS_dirs OSAS_filesOSAS_imageFoldersOSAS_dir_archivesOSAS_file_archivesTheVolumeSettingsFoldersTheFindByContentFoldercCsCd}x2|D]*}|i|ijo||i}q q W|SdS(sgibt text aus nodelistsN(srcsnodelistsnodesnodeTypes TEXT_NODEsdata(snodelistsnodesrc((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pysgetText sc Cs g}tiii|}y t|iddi}Wn d}nXy t|iddi}Wn d}nXy t|iddi}Wn d}nXy t|iddi} Wn d} nXy t|iddi}Wn d}nX|d jod |d }n.|d jod |d }nd |d }|d|d|d}|d| d}yt|iddidd}|iido |d|idid}n |d}|t|i}WnnX|SdS(s'get index.meta and translate it to HTMLsnameisNOT_DEFINED!!!screatorsarchive-creation-dates descriptions content-typessscanned documents

Document: s

sfolders

Folder: s

created by: s at: s

s

Description

s

smetasbibstypes

Info (s)

s

Info

N(shtmlsxmlsdomsminidoms parseStringsxmlInfosgetTextsgetElementsByTagNames childNodessnamescreators creation_dates descriptionstypesbibs attributesshas_keysvaluesgetBib( spathsxmlInfosnamesdomsbibscreators creation_dateshtmlstypes description((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pysgetMetaInfoFromXMLsN               c CsXg} tii|d o|i|Sn&tid|dd}|i}t i i i |}y t|iddi}Wn d}nXy t|iddi}Wn d}nXy t|iddi}Wn d}nXy t|id di} Wn d} nXy t|id di}Wn d }nX|d jod |d} n.|djod|d} nd |d} | d|d|d} | d| d} yt|iddidd} | iido | d| idid} n | d} | t| i} WnnX| SdS(s'get index.meta and translate it to HTMLs /index.metascat srsnameisNOT_DEFINED!!!screatorsarchive-creation-dates descriptions content-typessscanned documents

Document: s

sfolders

Folder: s

created by: s at: s

s

Description

s

smetasbibstypes

Info (s)

s

Info

N(shtmlsosspathsexistssselfsgetMetaInfoFromIndexMetaspopensfsreadslinessxmlsdomsminidoms parseStringsgetTextsgetElementsByTagNames childNodessnamescreators creation_dates descriptionstypesbibs attributesshas_keysvaluesgetBib( sselfspathsnamesfstypesdomsliness creation_datescreatorshtmlsbibs description((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pys getMetaFileHsV                cCsfd}xQ|D]I}|i|ijo0|dt|idt|id}q q W|dSdS(s# translate bibliographical entries sss
s : s
N( srcsnodelistsnodesnodeTypes ELEMENT_NODEsstrsnodeNamesgetTexts childNodes(snodelistsnodesrc((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pysgetBibs4cCsh}ytiiitii|dd}xY|idD]H}t |iddi }t |iddi }||| cCs&t|tjo |gSn|SdS(shEinzelfeld in Liste umwandeln @param fields: String oder Array @return: gibt liste zurueck N(stypesfieldss StringType(sfields((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pystoLists cCstdtSdS(sgives formatted local dates%d.%m.%YN(sstrftimes localtime(((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pys localDates(sos.pathsosstypessxml.dom.minidomsxmlszLOGsOSASObjectTypessOSASExcludedFilessgetTextsgetMetaInfoFromXMLs getMetaFilesgetBibsgetPropertyOfDirssdirHasPropertys isImageFolderscheckOSASFileTypestoLists localDate(sxmlsOSASObjectTypesscheckOSASFileTypesOSASExcludedFiless localDatesgetBibsgetTexts isImageFoldersgetMetaInfoFromXMLsgetPropertyOfDirssdirHasPropertyszLOGsosstoLists getMetaFile((s8/usr/local/testzope/Products/OSA_system2/OSAS_helpers.pys?s      5 9