-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Research interests ingested and shown on people pages - Data sharing policy date shown on site pages
- Loading branch information
1 parent
b22e586
commit dd58f83
Showing
8 changed files
with
135 additions
and
7 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/edrnsite.content/src/edrnsite/content/migrations/0031_cdeexplorerobject_stewardship.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.9 on 2023-09-01 14:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edrnsitecontent', '0030_alter_referencesetsnippet_reference_set_code_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='cdeexplorerobject', | ||
name='stewardship', | ||
field=models.TextField(blank=True, help_text="Who's responsible for this object"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/eke.knowledge/src/eke/knowledge/migrations/0009_site_datasharingpolicy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.9 on 2023-09-05 19:35 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ekeknowledge', '0008_site_publications'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='site', | ||
name='dataSharingPolicy', | ||
field=models.CharField(blank=True, help_text='When was the data sharing policy made', max_length=30), | ||
), | ||
] |
29 changes: 29 additions & 0 deletions
29
src/eke.knowledge/src/eke/knowledge/migrations/0010_interest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.1.9 on 2023-09-06 15:11 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import modelcluster.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ekeknowledge', '0009_site_datasharingpolicy'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Interest', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('sort_order', models.IntegerField(blank=True, editable=False, null=True)), | ||
('name', models.CharField(default='Name', help_text='Name of the interest', max_length=500)), | ||
('value', models.TextField(default='Description', help_text='Summary of the interest')), | ||
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='interests', to='ekeknowledge.person')), | ||
], | ||
options={ | ||
'ordering': ['sort_order'], | ||
'abstract': False, | ||
}, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
src/eke.knowledge/src/eke/knowledge/migrations/0011_rename_value_interest_description.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.9 on 2023-09-06 15:58 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ekeknowledge', '0010_interest'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='interest', | ||
old_name='value', | ||
new_name='description', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ <h3>Open Protocols</h3> | |
<small>This person has no open protocols at the present moment.</small> | ||
{% endif %} | ||
|
||
<h3>Closed Protocols</h3> | ||
<h3 class='mt-3'>Closed Protocols</h3> | ||
{% if closed %} | ||
<table class='table'> | ||
<thead><tr><th>Protocol Name</th><th>Biomarkers</th><th>Datasets</th></tr></thead> | ||
|
@@ -42,7 +42,7 @@ <h3>Closed Protocols</h3> | |
<small>This person has no closed protocols at the present moment.</small> | ||
{% endif %} | ||
|
||
<h3>Publications</h3> | ||
<h3 class='mt-3'>Publications</h3> | ||
{% if publications %} | ||
<table class='table'> | ||
<thead><tr><th>Publication Name</th><th>PubMed ID</th><th>Journal</th></tr></thead> | ||
|
@@ -60,6 +60,18 @@ <h3>Publications</h3> | |
<small>No publications found at the present moment.</small> | ||
{% endif %} | ||
|
||
<h3 class='mt-3'>Interests</h3> | ||
{% if page.interests %} | ||
<dl> | ||
{% for interest in page.interests.all %} | ||
<dt>{{interest.name}}</dt> | ||
<dd>{{interest.description}}</dd> | ||
{% endfor %} | ||
</dl> | ||
{% else %} | ||
<small>No interests found at the present moment.</small> | ||
{% endif %} | ||
|
||
<small> | ||
To update protocols, publications, biomarkers, or science data, please contact the | ||
<a href='mailto:[email protected]'>Informatics Center</a>. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters