Dear Gitlab users, due to maintenance reasons, Gitlab will not be available on Thursday 30.09.2021 from 5:00 pm to approximately 5:30 pm.

Commit 332ac497 authored by felix.herrmann's avatar felix.herrmann
Browse files

Merge branch '412-some-datasets-cannot-be-uploaded-to-dhrep' into 'master'

Resolve "Some datasets cannot be uploaded to dhrep"

Closes #412

See merge request !386
parents e79ab736 168a8e87
......@@ -864,6 +864,10 @@ class DataSet(models.Model):
def get_dsa(self):
return DataSubmissionAgreement.objects.get(dataset=self)
def get_escaped_description(self):
description = self.description().replace("\n", "")
return description
def get_creators(self):
return self.dataset_creator.all().order_by("name")
......
......@@ -8,7 +8,7 @@
dariahstorage:{{storage_id}}
a dariah:Collection ;
dc:creator "{{dataset.creators_str}}" ;
dc:description "{{dataset.description}}" ;
dc:description "{{dataset.get_escaped_description}}" ;
dc:format "text/vnd.dariah.dhrep.collection+turtle" ;
dc:rights "{{dataset.license.get_license_title}}" ;
dc:title "{{dataset.title}}" ;
......
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