@@ -165,28 +165,6 @@ <h1>
165165{# </ div > #}
166166
167167 < div class ="model-detail ">
168- <!-- Renders contributors as ORCID url-->
169- < h2 id ="contributors " class ="underline left-align section-heading "> Contributors</ h2 >
170- < ul >
171- {% for contributor in instance.contributors %}
172- < li >
173- {{ contributor.profile.get_display_name_hyperlink }}
174- < i class ="external-link fas fa-external-link-alt "> </ i >
175- </ li >
176- {% endfor %}
177- </ ul >
178-
179- {% if instance.class_name == "scoreset" %}
180- < h2 id ="data-usage " class ="underline left-align section-heading ">
181- Data usage policy
182- </ h2 >
183- {% if instance.data_usage_policy|length %}
184- < p > {{ instance.data_usage_policy }}</ p >
185- {% else %}
186- < p > Not specified.</ p >
187- {% endif %}
188- {% endif %}
189-
190168 <!-- Renders markdown abstract text -->
191169 {% if instance.class_name != "experimentset" %}
192170 < h2 id ="title " class ="underline left-align section-heading "> Title</ h2 >
@@ -218,6 +196,73 @@ <h2 id="method" class="underline left-align section-heading">Method</h2>
218196 < p > {{ instance.md_method|safe}}</ p >
219197 {% endif %}
220198
199+ <!-- Renders PubMed references -->
200+ < h2 id ="references " class ="underline left-align section-heading "> References</ h2 >
201+ {% if instance.pubmed_ids.count %}
202+ < ol >
203+ {% for pm in instance.pubmed_ids.all %}
204+ < li > {{ pm.reference_html|safe }} PMID:
205+ < a target ="_blank " href ="{{pm.url}} "> {{pm.identifier}}</ a >
206+ < i class ="external-link fas fa-external-link-alt "> </ i >
207+ </ li >
208+ {% endfor %}
209+ </ ol >
210+ {% if instance.class_name == 'scoreset' %}
211+ {% parent_references instance as parent_refs %}
212+ {% if parent_refs|length %}
213+ < p class ="pl-4 "> References from
214+ < a href ="{% url 'dataset:experiment_detail' instance.parent.urn %} "> {{instance.parent}}</ a > :
215+ </ p >
216+ < ol start ="{{instance.pubmed_ids.count|add:1}} ">
217+ {% for pm in parent_refs %}
218+ < li > {{ pm.reference_html|safe }} PMID:
219+ < a target ="_blank " href ="{{pm.url}} "> {{pm.identifier}}</ a >
220+ < i class ="external-link fas fa-external-link-alt "> </ i >
221+ </ li >
222+ {% endfor %}
223+ </ ol >
224+ {% endif %}
225+ {% endif %}
226+ {% else %}
227+ < p > No associated publications.</ p >
228+ {% endif %}
229+
230+ <!-- Renders contributors as ORCID url-->
231+ < h2 id ="contributors " class ="underline left-align section-heading "> Contributors</ h2 >
232+ < ul >
233+ {% for contributor in instance.administrators %}
234+ < li >
235+ {{ contributor.profile.get_display_name_hyperlink }}
236+ < i class ="external-link fas fa-external-link-alt "> </ i >
237+ </ li >
238+ {% endfor %}
239+
240+ {% for contributor in instance.editors %}
241+ < li >
242+ {{ contributor.profile.get_display_name_hyperlink }}
243+ < i class ="external-link fas fa-external-link-alt "> </ i >
244+ </ li >
245+ {% endfor %}
246+
247+ {% for contributor in instance.viewers %}
248+ < li >
249+ {{ contributor.profile.get_display_name_hyperlink }}
250+ < i class ="external-link fas fa-external-link-alt "> </ i >
251+ </ li >
252+ {% endfor %}
253+ </ ul >
254+
255+ {% if instance.class_name == "scoreset" %}
256+ < h2 id ="data-usage " class ="underline left-align section-heading ">
257+ Data usage policy
258+ </ h2 >
259+ {% if instance.data_usage_policy|length %}
260+ < p > {{ instance.data_usage_policy }}</ p >
261+ {% else %}
262+ < p > Not specified.</ p >
263+ {% endif %}
264+ {% endif %}
265+
221266 <!-- Renders Keywords -->
222267 < h2 id ="method " class ="underline left-align section-heading "> Keywords</ h2 >
223268 {% if not keywords %}
@@ -269,37 +314,6 @@ <h2 id="metadata" class="underline left-align section-heading">
269314 < p > < strong > SRA:</ strong > No associated SRAs </ p >
270315 {% endif %}
271316 {% endif %}
272-
273- <!-- Renders PubMed references -->
274- < h2 id ="references " class ="underline left-align section-heading "> References</ h2 >
275- {% if instance.pubmed_ids.count %}
276- < ol >
277- {% for pm in instance.pubmed_ids.all %}
278- < li > {{ pm.reference_html|safe }} PMID:
279- < a target ="_blank " href ="{{pm.url}} "> {{pm.identifier}}</ a >
280- < i class ="external-link fas fa-external-link-alt "> </ i >
281- </ li >
282- {% endfor %}
283- </ ol >
284- {% if instance.class_name == 'scoreset' %}
285- {% parent_references instance as parent_refs %}
286- {% if parent_refs|length %}
287- < p class ="pl-4 "> References from
288- < a href ="{% url 'dataset:experiment_detail' instance.parent.urn %} "> {{instance.parent}}</ a > :
289- </ p >
290- < ol start ="{{instance.pubmed_ids.count|add:1}} ">
291- {% for pm in parent_refs %}
292- < li > {{ pm.reference_html|safe }} PMID:
293- < a target ="_blank " href ="{{pm.url}} "> {{pm.identifier}}</ a >
294- < i class ="external-link fas fa-external-link-alt "> </ i >
295- </ li >
296- {% endfor %}
297- </ ol >
298- {% endif %}
299- {% endif %}
300- {% else %}
301- < p > No associated publications.</ p >
302- {% endif %}
303317 {% endif %}
304318
305319 {% block child_list %}
0 commit comments