Commit cc27971f authored by Matija Obreza's avatar Matija Obreza
Browse files

Display PDCI in explorer (fixes #57)

parent bca4edf1
...@@ -311,4 +311,12 @@ public interface Api1Constants { ...@@ -311,4 +311,12 @@ public interface Api1Constants {
*/ */
public static final String GEOREFMETH = "georefMeth"; public static final String GEOREFMETH = "georefMeth";
} }
public static interface Pdci {
/**
* PDCI Score
*/
public static final String SCORE = "score";
}
} }
...@@ -213,6 +213,7 @@ public class GenesysServiceImpl implements GenesysService, DatasetService { ...@@ -213,6 +213,7 @@ public class GenesysServiceImpl implements GenesysService, DatasetService {
columnList.add("institute." + Api1Constants.Institute.INSTCODE); columnList.add("institute." + Api1Constants.Institute.INSTCODE);
columnList.add("geo." + Api1Constants.Geo.LATITUDE_LONGITUDE); columnList.add("geo." + Api1Constants.Geo.LATITUDE_LONGITUDE);
columnList.add("coll." + Api1Constants.Collecting.COLLMISSID); columnList.add("coll." + Api1Constants.Collecting.COLLMISSID);
columnList.add("pdci." + Api1Constants.Pdci.SCORE);
availableDisplayColumns = Collections.unmodifiableList(columnList); availableDisplayColumns = Collections.unmodifiableList(columnList);
List<String> displayList = new ArrayList<String>(); List<String> displayList = new ArrayList<String>();
......
...@@ -381,6 +381,7 @@ accession.svalbard-data.depositDate=Deposit date ...@@ -381,6 +381,7 @@ accession.svalbard-data.depositDate=Deposit date
accession.svalbard-data.boxNumber=Box number accession.svalbard-data.boxNumber=Box number
accession.svalbard-data.quantity=Quantity accession.svalbard-data.quantity=Quantity
accession.remarks=Remarks accession.remarks=Remarks
accession.pdci.score=PDCI Score
accession.imageGallery=Accession images accession.imageGallery=Accession images
......
...@@ -183,6 +183,9 @@ ...@@ -183,6 +183,9 @@
/></a></p></td> /></a></p></td>
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:when test="${col eq 'pdci.score'}">
<td class="notimportant <c:if test='${i.count ge 2}'>hidden-xs</c:if> <c:if test='${i.count gt 2}'>hidden-sm</c:if>"><p><fmt:formatNumber value="${accession.pdciScore}"/></p></td>
</c:when>
<c:otherwise> <c:otherwise>
<c:set var="elVal" value="${accession}" /> <c:set var="elVal" value="${accession}" />
<c:forTokens items="${col}" delims="." var="item"> <c:forTokens items="${col}" delims="." var="item">
...@@ -706,6 +709,13 @@ ...@@ -706,6 +709,13 @@
'class': "notimportant <c:if test='${i.count ge 2}'>hidden-xs</c:if> <c:if test='${i.count gt 2}'>hidden-sm</c:if>" 'class': "notimportant <c:if test='${i.count ge 2}'>hidden-xs</c:if> <c:if test='${i.count gt 2}'>hidden-sm</c:if>"
}).appendTo(row))); }).appendTo(row)));
</c:when> </c:when>
<c:when test="${col eq 'pdci.score'}">
$("<span/>", {
text: ''+pagedData.content[i].pdciScore
}).appendTo($("<p></p>").appendTo($("<td/>", {
'class': "notimportant <c:if test='${i.count ge 2}'>hidden-xs</c:if> <c:if test='${i.count gt 2}'>hidden-sm</c:if>"
}).appendTo(row)));
</c:when>
<c:when test="${col eq 'geo.latitudeAndLongitude'}"> <c:when test="${col eq 'geo.latitudeAndLongitude'}">
var geoLatitude = ""; var geoLatitude = "";
var geoLongitude = ""; var geoLongitude = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment