Commit e010fb16 authored by olaf michaelis's avatar olaf michaelis
Browse files

Fix broken replaced uri string

parent edda6f34
......@@ -35,7 +35,7 @@ class sanitizer():
h = self.hash_string(
re.search(r'(?<=\/shared\/).*?(?=\/)', self.filename).group(0)
)
return 'https://' + h
return 'https://' + h + '.rdmo'
def replace_uri(self, rxmatch, line):
if bool(re.search(rxmatch, line)) is True:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<rdmo xmlns:dc="http://purl.org/dc/elements/1.1/">
<condition dc:uri="https://73692d464507440440ca40d73d8a91b57f5abd5f/conditions/versioning">
<uri_prefix>https://73692d464507440440ca40d73d8a91b57f5abd5f</uri_prefix>
<condition dc:uri="https://40a23bbff2ca45daa3b2e6a2bbc02a44a362396d.rdmo/conditions/versioning">
<uri_prefix>https://40a23bbff2ca45daa3b2e6a2bbc02a44a362396d.rdmo</uri_prefix>
<key>versioning</key>
<dc:comment>Werden verschiedene Versionen des Datensatzes erzeugt?</dc:comment>
<source dc:uri="https://rdmorganiser.github.io/terms/domain/project/dataset/versioning_yesno"/>
......@@ -9,8 +9,8 @@
<target_text>1</target_text>
<target_option/>
</condition>
<condition dc:uri="https://73692d464507440440ca40d73d8a91b57f5abd5f/conditions/additional_rdm_policy">
<uri_prefix>https://73692d464507440440ca40d73d8a91b57f5abd5f</uri_prefix>
<condition dc:uri="https://40a23bbff2ca45daa3b2e6a2bbc02a44a362396d.rdmo/conditions/additional_rdm_policy">
<uri_prefix>https://40a23bbff2ca45daa3b2e6a2bbc02a44a362396d.rdmo</uri_prefix>
<key>additional_rdm_policy</key>
<dc:comment>There are additional data management requirements.</dc:comment>
<source dc:uri="https://rdmorganiser.github.io/terms/domain/project/additional_rdm_policy/yesno"/>
......
Supports Markdown
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