--- OSAS/OSA_system/OSAS_archiver.py 2005/05/04 14:06:31 1.12 +++ OSAS/OSA_system/OSAS_archiver.py 2006/09/25 13:48:39 1.13 @@ -78,10 +78,12 @@ class OSAS_metadataOrganizer(SimpleItem, bibDataSets={'Book':[('author','opt'),('year','opt'),('title','opt'),('series editor','opt'),('series title','opt'),('series volume','opt'),('number of pages','opt'),('city','opt'),('publisher','opt'),('edition','opt'),('number of volumes','opt'),('translator','opt'),('ISBN ISSN','opt')], 'Journal Article':[('author','opt'),('year','opt'),('title','opt'),('journal','opt'),('volume','opt'),('issue','opt'),('pages','opt'),('alternate journal','opt'),('call number','opt')], - 'Manuscript':[('author','opt'),('year','opt'),('title','opt'),('location','opt'),('signature','opt'),('pages','opt'),('editorial remarks','opt'),('description','opt'),('keywords','opt')]} + 'Manuscript':[('author','opt'),('year','opt'),('title','opt'),('location','opt'),('signature','opt'),('pages','opt'),('editorial remarks','opt'),('description','opt'),('keywords','opt')], + 'Journal Volume':[('title','opt'),('editor','opt'),('year','opt'),('volume','opt'),('number of pages','opt'),('city','opt'),('publisher','opt'),('ISBN ISSN','opt')] + } - referenceTypes=['Book','Journal Article','Manuscript'] + referenceTypes=['Book','Journal Article','Manuscript','Journal Volume'] def __init__(self,id,title): """init""" @@ -134,7 +136,6 @@ class OSAS_metadataOrganizer(SimpleItem, def writeAcquisitionMetadata(self,date,path,media_type,producer="mpiwg",description=""): """Schreibe Acquisiondata in index.meta""" - #schreibe in index.meta subnodes={} subnodes['media-type']=media_type @@ -144,7 +145,7 @@ class OSAS_metadataOrganizer(SimpleItem, subnodes['date']=date subnodes['description']=description - changeNodesInIndexMeta(path,"acquisition",subnodes) + changeNodesInIndexMeta(path,"acquisition",subnodes,parent="meta") #print "HI" subnodes={} @@ -164,10 +165,9 @@ class OSAS_metadataOrganizer(SimpleItem, def writeDocumentMetadata(self,referenceType): - """write document metadata""" form=self.REQUEST.form -#schreibe in index.meta + #schreibe in index.meta self.bibDataSet=self.bibDataSets[form['referenceType']] self.bibdata_type=form['referenceType'] @@ -175,18 +175,16 @@ class OSAS_metadataOrganizer(SimpleItem, subnodes['device']=form['device'] subnodes['image-type']=form['image-type'] subnodes['production-comment']=form['production-comment'] - changeNodesInIndexMeta(self.REQUEST.SESSION['path'],"image-acquisition",subnodes) + changeNodesInIndexMeta(self.REQUEST.SESSION['path'],"image-acquisition",subnodes,parent="meta") subnodes={} subnodes['dpi']=form['dpi'] - - - changeNodesInIndexMeta(self.REQUEST.SESSION['path'],"img",subnodes) - + changeNodesInIndexMeta(self.REQUEST.SESSION['path'],"img",subnodes,parent="meta") pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','inputBiblioMetadata.zpt')).__of__(self) return pt() + def writeBiblioMetadata(self,bibdata_type,RESPONSE=None): """Write all""" #to do write metadata