From 4c23d62f60c87f070092d2f6489184427e4b8bda Mon Sep 17 00:00:00 2001 From: mashehu Date: Wed, 31 Jul 2024 16:36:59 +0200 Subject: [PATCH] CreativeWorkStatus -> creativeWorkStatus --- rocrate/rocrate.py | 10 +++++----- rocrate/templates/preview_template.html.j2 | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rocrate/rocrate.py b/rocrate/rocrate.py index daed143..052474c 100644 --- a/rocrate/rocrate.py +++ b/rocrate/rocrate.py @@ -263,12 +263,12 @@ def image(self, value): self.root_dataset['image'] = value @property - def CreativeWorkStatus(self): - return self.root_dataset.get('CreativeWorkStatus') + def creativeWorkStatus(self): + return self.root_dataset.get('creativeWorkStatus') - @CreativeWorkStatus.setter - def CreativeWorkStatus(self, value): - self.root_dataset['CreativeWorkStatus'] = value + @creativeWorkStatus.setter + def creativeWorkStatus(self, value): + self.root_dataset['creativeWorkStatus'] = value @property def mainEntity(self): diff --git a/rocrate/templates/preview_template.html.j2 b/rocrate/templates/preview_template.html.j2 index abaa436..bbe78d1 100644 --- a/rocrate/templates/preview_template.html.j2 +++ b/rocrate/templates/preview_template.html.j2 @@ -162,9 +162,9 @@
{{ crate.datePublished }}
{%endif %} - {% if crate.CreativeWorkStatus %} -
CreativeWorkStatus
-
{{ crate.CreativeWorkStatus }}
+ {% if crate.creativeWorkStatus %} +
creativeWorkStatus
+
{{ crate.creativeWorkStatus }}
{%endif %}