Skip to content
Snippets Groups Projects
Commit 0e897b99 authored by cramakri's avatar cramakri
Browse files

MINOR: Cosmetic fixes to the dashboard -- show strain names if there are not too many of them

SVN: 24017
parent de8040d6
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
<!-- <script type="text/javascript" src="openbis-request-cache.js"></script> --> <!-- <script type="text/javascript" src="openbis-request-cache.js"></script> -->
<script> <script>
//basynthec = new openbis_basynthec('https://basynthec.ethz.ch/openbis/openbis', 'https://basynthec.ethz.ch/datastore_server'); basynthec = new openbis_basynthec('https://basynthec.ethz.ch/openbis/openbis', 'https://basynthec.ethz.ch/datastore_server');
basynthec = new openbis_basynthec('http://localhost:8888/openbis/openbis', 'http://localhost:8889/datastore_server'); //basynthec = new openbis_basynthec('http://localhost:8888/openbis/openbis', 'http://localhost:8889/datastore_server');
// The elements for each of the views // The elements for each of the views
var vis, od600View, metabolomicsView, transcriptomicsView, proteomicsView; var vis, od600View, metabolomicsView, transcriptomicsView, proteomicsView;
...@@ -194,7 +194,11 @@ function updateView(aView, type) ...@@ -194,7 +194,11 @@ function updateView(aView, type)
.selectAll("td") .selectAll("td")
.data(function (d) { .data(function (d) {
var dateString = timeformat(new Date(d.registrationDetails.registrationDate)); var dateString = timeformat(new Date(d.registrationDetails.registrationDate));
var strainString = "" + d.properties["STRAIN_NAMES"].split(",").length + " strain(s)"; var strainNames = d.properties["STRAIN_NAMES"].split(",");
var strainString =
(strainNames.length < 3) ?
strainNames.join(" ") :
"" + strainNames.length + " strain(s)";
return [dateString, d.registrationDetails.userEmail, strainString] return [dateString, d.registrationDetails.userEmail, strainString]
}) })
.enter() .enter()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment