Commit 4b1f4183 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Use identifier[@typeLabel='Main'] to get document ID

The configuration in import-process-cli uses the value of identifier[@typeLabel='Main'] as the document ID. This commit aligns the naming of the exported media files and thumbnails with import-process-cli.
parent 80008817
......@@ -88,7 +88,7 @@ class FoxmlReader:
def get_document_id(self):
return _get_element_text(
self.metadata_datastream_element,
"foxml:xmlContent/ebucore:ebuCoreMain/ebucore:coreMetadata/ebucore:identifier[@typeLabel='Original']/ns2:identifier")
"foxml:xmlContent/ebucore:ebuCoreMain/ebucore:coreMetadata/ebucore:identifier[@typeLabel='Main']/ns2:identifier")
def get_locator(self):
return _get_element_text(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment