added missing elements to metadata xml
@@ -672,7 +672,7 @@ class RefTimeseriesFileMetaData(AbstractFileMetaData):
logical file type instance"""
container_to_add_to = super(RefTimeseriesFileMetaData, self).add_to_xml_container(container)
- # TODO: abstract also needs to be added
+
# create the abstract element
NAMESPACES = CoreMetaData.NAMESPACES
if self.abstract:
@@ -683,6 +683,16 @@ class RefTimeseriesFileMetaData(AbstractFileMetaData):
dcterms_abstract = etree.SubElement(dc_des_rdf_Desciption,
'{%s}abstract' % NAMESPACES['dcterms'])
dcterms_abstract.text = self.abstract
+ if self.file_version:
+ hsterms_file_version = etree.SubElement(container_to_add_to,
+ '{%s}fileVersion' % NAMESPACES['hsterms'])
+ hsterms_file_version.text = self.file_version
+
+ if self.symbol:
+ hsterms_symbol = etree.SubElement(container_to_add_to,
+ '{%s}symbol' % NAMESPACES['hsterms'])
+ hsterms_symbol.text = self.symbol
+
for series in self.time_series_list:
series.add_to_xml_container(container_to_add_to)
