<% if (typeof objectIdentifier === 'undefined') { %>
<% } %>
<% if (typeof groupedResults !== 'undefined') { %>
Metadata Quality Report
After running your metadata against our standard set of metadata, data, and congruency checks,
we have found the following potential issues.
Please assist us in improving the discoverability and reusability of your research data by addressing the issues below.
Quality suite:
<%
var types = _.keys(groupedByType);
_.each(types, function(type) {
var results = groupedByType[type];
var total = results.length;
var success = 0;
_.each(results, function(result) {
if (result.get("status") == "SUCCESS") {
success++;
}
});
var width = (success/total) * 100;
width = width.toFixed(0);
%>
<%=type%>: <%=width%>% complete
<% }); %>
<%
var total = checkCount;
if (groupedResults.BLUE) {
total = total - groupedResults.BLUE.length;
}
%>
<% if (groupedResults.GREEN) { %>
Passed <%=groupedResults.GREEN.length%> checks out of <%= total %> (informational checks not included).
Warning for <%=groupedResults.ORANGE.length%> check<% if (groupedResults.ORANGE.length != 1) {print('s')}%>. <% if (groupedResults.ORANGE.length > 0) {print('Please review these warnings.')}%>