Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions biosimdb_interface/schema/invenio.py
Original file line number Diff line number Diff line change
@@ -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"},
Expand All @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions biosimdb_interface/schema/webform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://www.mdanalysis.org/" target="_blank" class="text-reset"> MDAnalysis</a>, please ensure your files are compatible.',
'This form uses the <a href="https://biosim-schema.readthedocs.io/en/latest/index.html" target="_blank" class="text-reset"> biosim-schema</a> to define and group BioSim metadata. Missing terms or units? Please considering raising an issue or contributing to the schema.',
'This form uses the <a href="https://biosim-schema.readthedocs.io/" target="_blank" class="text-reset"> biosim-schema</a> to define and group biosim metadata. Missing terms or units? Please considering raising an <a href="https://github.com/CCPBioSim/biosim-schema/issues" target="_blank" class="text-reset"> issue</a> 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: <ol> <li> Download the simulation metadata as a json file and share alongside simulation files. </li> <li> 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. </li> </ol>",
],
Expand Down
Loading