From b3c212fb20b7d32d82112bdaa69184f2c305ced4 Mon Sep 17 00:00:00 2001 From: Jas Kalayan Date: Wed, 5 Aug 2026 10:50:26 +0100 Subject: [PATCH 1/2] add publication date as date of submission --- biosimdb_interface/schema/invenio.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/biosimdb_interface/schema/invenio.py b/biosimdb_interface/schema/invenio.py index 4774c92..b0d7971 100644 --- a/biosimdb_interface/schema/invenio.py +++ b/biosimdb_interface/schema/invenio.py @@ -1,3 +1,10 @@ +#!/usr/bin/env python + +from datetime import datetime +from zoneinfo import ZoneInfo + +today = datetime.now(ZoneInfo("Europe/London")).date() + INVENIO_FORM_EMPTY = { "access": {"files": "public", "record": "public"}, "files": {"enabled": "true"}, @@ -24,11 +31,11 @@ "identifier": "", # add publication DOI here } ], - "publication_date": "", # YYYY-MM-DD + "publication_date": today.isoformat(), # YYYY-MM-DD "publisher": "PSDI", "resource_type": { # "id": "dataset" - "id": "model" # for testing in staging + "id": "model" }, "rights": [{"id": "cc-by-4.0"}], "subjects": [ From ebc76de620b2a004bc8276ce46dae5374dda72fa Mon Sep 17 00:00:00 2001 From: Jas Kalayan Date: Wed, 5 Aug 2026 10:58:23 +0100 Subject: [PATCH 2/2] fix typos --- biosimdb_interface/schema/webform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biosimdb_interface/schema/webform.py b/biosimdb_interface/schema/webform.py index 186dac0..4e7a383 100644 --- a/biosimdb_interface/schema/webform.py +++ b/biosimdb_interface/schema/webform.py @@ -51,10 +51,10 @@ def get_simulation_metadata(): "guidance": { "label": "Please Note:", "options": [ - "To extract simulation metadata, please upload a topology and corresponding trajectory file/s. Optionally, upload a aiida archive file containing the simulation provenance to extract further information about the simulation protocol.", + "To extract simulation metadata, please upload a topology and corresponding trajectory file/s. Optionally, upload an aiida archive file containing the simulation provenance, to extract further information about the simulation protocol.", "Multiple trajectory files can be uploaded with a single associated topology file, both file types are required.", 'Various simulation file formats are accepted and read using MDAnalysis, please ensure your files are compatible.', - 'This form uses the biosim-schema to define and group BioSim metadata. Missing terms or units? Please considering raising an issue or contributing to the schema.', + 'This form uses the biosim-schema to define and group biosim metadata. Missing terms or units? Please considering raising an issue or contributing to the schema.', 'Automatically add metadata associated with each entry using the "Extract metadata" button. Please fill in any missing metadata fields manually where applicable, click on each field name for further information about data field requirements.', "Two options are available for your extracted simulation metadata:
  1. Download the simulation metadata as a json file and share alongside simulation files.
  2. Submit your simulation files and metadata in one step to BioSimDB, you will be directed to a login page and asked to authorize this application. Please continue and complete the data submission process in BioSimDB.
", ],