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": [ 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.
", ],