diff --git a/datalad_catalog/catalog/templates/dataset-template.html b/datalad_catalog/catalog/templates/dataset-template.html
index d9f53c6..8928340 100644
--- a/datalad_catalog/catalog/templates/dataset-template.html
+++ b/datalad_catalog/catalog/templates/dataset-template.html
@@ -461,7 +461,7 @@
{{fund.name}}(fund name not s
-
+
@@ -486,8 +486,7 @@ {{fund.name}}(fund name not s
-
-
+
run-record
@@ -497,8 +496,11 @@ {{fund.name}}(fund name not s
{{record.dataset_version}}
-
- {{record.description}}
+
+ Run command message:
+
+
+ {{record.description.replace('[DATALAD RUNCMD] ', '')}}
@@ -523,14 +525,13 @@ {{fund.name}}(fund name not s
{{record.author.name}}
- {{record.datetime}}
+ {{record.datetime.replace('T', ' ')}}
-
-
+
diff --git a/datalad_catalog/extractors/catalog_core.py b/datalad_catalog/extractors/catalog_core.py
index 85d1163..e5abd6b 100644
--- a/datalad_catalog/extractors/catalog_core.py
+++ b/datalad_catalog/extractors/catalog_core.py
@@ -201,11 +201,15 @@ def ri2url(ri):
f["hostname"],
":" if f["port"] else "",
f["port"],
- f["path"]
- if op.isabs(f["path"])
- else "/{}".format(f["path"])
- if f["path"].startswith("~")
- else "/~/{}".format(f["path"]),
+ (
+ f["path"]
+ if op.isabs(f["path"])
+ else (
+ "/{}".format(f["path"])
+ if f["path"].startswith("~")
+ else "/~/{}".format(f["path"])
+ )
+ ),
)
elif isinstance(ri, dsn.PathRI):
# this has no chance of being resolved outside this machine
diff --git a/datalad_catalog/extractors/catalog_runprov.py b/datalad_catalog/extractors/catalog_runprov.py
index 90f8504..22d5cbe 100644
--- a/datalad_catalog/extractors/catalog_runprov.py
+++ b/datalad_catalog/extractors/catalog_runprov.py
@@ -54,14 +54,20 @@ def get_file_id(rec):
rec["key"]
if "key" in rec
else "SHA1-s{}--{}".format(
- rec["bytesize"]
- if "bytesize" in rec
- else 0
- if rec["type"] == "symlink"
- else os.stat(rec["path"]).st_size,
- rec["gitshasum"]
- if "gitshasum" in rec
- else Digester(digests=["sha1"])(rec["path"])["sha1"],
+ (
+ rec["bytesize"]
+ if "bytesize" in rec
+ else (
+ 0
+ if rec["type"] == "symlink"
+ else os.stat(rec["path"]).st_size
+ )
+ ),
+ (
+ rec["gitshasum"]
+ if "gitshasum" in rec
+ else Digester(digests=["sha1"])(rec["path"])["sha1"]
+ ),
)
)
return "datalad:{}".format(id_)