@@ -82,7 +82,7 @@ <h4>Details</h4>
8282 </ p >
8383 {% endif %}
8484 < p >
85- < b > Cancer Type: </ b > {{ cancer_type }}
85+ < b > Cancer Type(s) : </ b > {{ cancer_type }}
8686 </ p >
8787 {% if species != "" %}
8888 < p >
@@ -94,21 +94,89 @@ <h4>Details</h4>
9494 < b > Supporting Data: </ b > {{ supporting_data }}
9595 </ p >
9696 {% endif %}
97- {% if collections != "" %}
98- < p >
99- < b > Collections: </ b >
97+ {% if collections != "" %}
98+ < p class ="collex-divider "> </ p >
99+ < p >
100+ < b > Collections</ b >
101+ {% with col_count=collections|length %}
102+ {% if col_count > 5 %}
103+ < p >
104+ < a class ="show-more show-sib " data-toggle-target =".ar-collex-set "> < i class ="fa-solid fa-plus-circle "> </ i > show more</ a >
105+ < a class ="show-less show-sib is-hidden " data-toggle-target =".ar-collex-set "> < i class ="fa-solid fa-minus-circle "> </ i > show less</ a >
106+ </ p >
107+ {% endif %}
108+ < ul class ="ar-collex-set ">
100109 {% for col in collections %}
101- < a href ="{% url 'collection_details' col %} "> {{ col }}</ a >
110+ < li class ="ar-collex{% if forloop.counter > 5 %} extra-values is-hidden{% endif %} "> < a href ="{% url 'collection_details' col.collection_id %} "> {{ col.collection_name }}</ a > </ li >
111+ {% if forloop.counter == 6 %}
112+ < span class ="show-more-count "> ... {{ col_count|add:-5 }} more collections</ span >
113+ {% endif %}
102114 {% endfor %}
103- </ p >
104- {% endif %}
105- < p style ="margin-left: 20px; margin-right: 20px; margin-top: 25px; margin-bottom: 25px; border-bottom: 1px solid black; "> </ p >
106- {% for doi in dois %}
107- < p > < i class ="fa fa-solid fa-globe "> </ i > < a href ="https://doi.org/{{ doi }} " target ="_blank " rel ="nofollow noreferrer "> {{ doi }}</ a > </ p >
108- {% endfor %}
115+ </ ul >
116+ {% endwith %}
117+ </ p >
118+ {% endif %}
119+ {% if analysis_results != "" %}
120+ < p class ="collex-divider "> </ p >
121+ < p >
122+ < b > Analysis Results</ b >
123+ {% with col_count=analysis_results|length %}
124+ {% if col_count > 5 %}
125+ < p >
126+ < a class ="show-more show-sib " data-toggle-target =".ar-collex-set "> < i class ="fa-solid fa-plus-circle "> </ i > show more</ a >
127+ < a class ="show-less show-sib is-hidden " data-toggle-target =".ar-collex-set "> < i class ="fa-solid fa-minus-circle "> </ i > show less</ a >
128+ </ p >
129+ {% endif %}
130+ < ul class ="ar-collex-set ">
131+ {% for col in analysis_results %}
132+ < li class ="ar-collex{% if forloop.counter > 5 %} extra-values is-hidden{% endif %} "> < a href ="{% url 'collection_details' col.collection_id %} "> {{ col.collection_id }}</ a > </ li >
133+ {% if forloop.counter == 6 %}
134+ < span class ="show-more-count "> ... {{ col_count|add:-5 }} more analysis results</ span >
135+ {% endif %}
136+ {% endfor %}
137+ </ ul >
138+ {% endwith %}
139+ </ p >
140+ {% endif %}
141+ < p class ="collex-divider "> </ p >
142+ < p > < b > DOIs</ b > </ p >
143+ {% if collection_type == "Analysis Result" %}
144+ < p >
145+ < i class ="fa-solid fa-globe "> </ i > {{ collection_id }} < a href ="https://doi.org/{{ doi }} " target ="_blank " rel ="nofollow noreferrer "> {{ doi }}</ a >
146+ </ p >
147+ < p >
148+ < span class ="doi-section-title "> Collections analyzed:</ span >
149+ < ul class ="doi-list fa-ul ">
150+ {% for col in collections %}
151+ < li > < span class ="fa-li "> < i class ="fa-solid fa-globe "> </ i > </ span > {{ col.collection_name }}
152+ {% for doi in col.doi %} < a href ="https://doi.org/{{ doi }} " target ="_blank " rel ="nofollow noreferrer "> {{ doi }}</ a > {% endfor %}
153+ </ li >
154+ {% endfor %}
155+ </ ul > </ p >
156+ </ p >
157+ {% endif %}
158+ {% if collection_type == "Collection" %}
159+ < p >
160+ < span class ="doi-section-title "> {{ collection_name }} original data:</ span >
161+ < ul class ="doi-list fa-ul ">
162+ {% for entry in doi %}
163+ < li > < span class ="fa-li "> < i class ="fa-solid fa-globe "> </ i > </ span > < a href ="https://doi.org/{{ entry }} " target ="_blank " rel ="nofollow noreferrer "> {{ entry }}</ a > </ li >
164+ {% endfor %}
165+ </ ul >
166+ </ p >
167+ {% endif %}
168+ {% if analysis_results != "" %}
169+ < p >
170+ < span class ="doi-section-title "> Analysis Results:</ span >
171+ < ul class ="doi-list fa-ul ">
172+ {% for ar in analysis_results %}
173+ < li > < span class ="fa-li "> < i class ="fa-solid fa-globe "> </ i > </ span > {{ ar.collection_id }} < a href ="https://doi.org/{{ ar.doi }} " target ="_blank " rel ="nofollow noreferrer "> {{ ar.doi }}</ a > </ li >
174+ {% endfor %}
175+ </ ul > </ p >
176+ {% endif %}
109177 < p >
110- < button type ="button " role ="button " class ="btn btn-small btn-primary citations-button for-collection " data-bs-toggle ="modal " data-bs-target ="#citations-modal " data-toggle ="modal " data-target ="#citations-modal " aria-expanded ="false " data-citations =""> View Citations
111- </ button >
178+ < button type ="button " role ="button " class ="btn btn-small btn-primary citations-button for-collection " data-bs-toggle ="modal " data-bs-target ="#citations-modal " data-toggle ="modal " data-target ="#citations-modal " aria-expanded ="false " data-citations =""> View Citations
179+ </ button >
112180 </ p >
113181 </ div >
114182 </ div >
0 commit comments