comparison MetaDataFolder.py @ 18:611b6df70840

niceification
author casties
date Wed, 03 Aug 2011 21:05:04 +0200
parents ba617e755c56
children 9a1e75e708e1
comparison
equal deleted inserted replaced
17:ba617e755c56 18:611b6df70840
188 """returns formatted contents of access tag""" 188 """returns formatted contents of access tag"""
189 return self.getXmlPathFormatted('resource/meta/access-conditions/attribution', template, path=path, dom=dom, data=data, all=all) 189 return self.getXmlPathFormatted('resource/meta/access-conditions/attribution', template, path=path, dom=dom, data=data, all=all)
190 190
191 def getCopyrightData(self, path=None, dom=None, recursive=1, all=True): 191 def getCopyrightData(self, path=None, dom=None, recursive=1, all=True):
192 """returns contents of copyright tag as dict""" 192 """returns contents of copyright tag as dict"""
193 # information is two tags deep - recursive=1
193 return self.getXmlPathData('resource/meta/access-conditions/copyright', path=path, dom=dom, recursive=recursive, all=all) 194 return self.getXmlPathData('resource/meta/access-conditions/copyright', path=path, dom=dom, recursive=recursive, all=all)
194 195
195 def getCopyrightFormatted(self, template, path=None, dom=None, data=None, all=True): 196 def getCopyrightFormatted(self, template, path=None, dom=None, data=None, recursive=1, all=True):
196 """returns formatted contents of access tag""" 197 """returns formatted contents of access tag"""
197 return self.getXmlPathFormatted('resource/meta/access-conditions/copyright', template, path=path, dom=dom, data=data, all=all) 198 # information is two tags deep - recursive=1
199 return self.getXmlPathFormatted('resource/meta/access-conditions/copyright', template, path=path, dom=dom, data=data, recursive=recursive, all=all)
198 200
199 def getBibData(self, path=None, dom=None): 201 def getBibData(self, path=None, dom=None):
200 """returns contents of bib tag as dict""" 202 """returns contents of bib tag as dict"""
201 return self.resource.meta.bib.getData(path=path, dom=dom) 203 return self.resource.meta.bib.getData(path=path, dom=dom)
202 204