<% if ( typeof type !== "undefined" && type !== null && type == "Metadata" ) { %> <% var indentFolder = nodeLevel * 40; %> <% } else { %> <% var indentFile = (nodeLevel + 1) * 40; %> <% } %> <% if(uploadStatus != "l" && uploadStatus != "p"){ %>
<% } else { %>
<% } %> <% if (typeof title != "undefined" && title && title.length) { %> <%= title %> <% } else if ( typeof fileName != "undefined" && fileName) { %> <%= fileName %> <% } else if(type == "Metadata"){ %> Untitled dataset <% } else { %> <%= id %> <% } %>
<% if ( typeof sizeStr != "undefined" && sizeStr ) { %> <%= sizeStr %> <% } else {%> <%= size %> <% } %> <% if (type && type != "Metadata") { %> <%= type %> <% } else { %> <% } %> <% if( MetacatUI.appModel.get("allowAccessPolicyChanges") && (type && type != "Metadata") ){ %> <% } else if( MetacatUI.appModel.get("allowAccessPolicyChanges") ){ %> <% } %> <% if( uploadStatus == "p" ){ %>
<% } else if( (!uploadStatus || uploadStatus == "c" || uploadStatus == "q") && type != "Metadata" && numAttributes == 0 ) { %> <% } else if( type != "Metadata" && numAttributes > 0 && hasInvalidAttribute ) { %> <% } else if( type != "Metadata" && numAttributes > 0 && !hasInvalidAttribute && entityIsValid ) { %> <% } else if( type != "Metadata" && !entityIsValid ) { %> <% } else if( uploadStatus == "c" ) { %> <% } else if( uploadStatus == "e" ) { %> <% } else if( uploadStatus == "l" && type != "Metadata"){ %> <% } %> <% if ( typeof formatType !== "undefined" && formatType !== null && formatType.toLowerCase() === "metadata" ) { %> <% } else { %>
<% if( hasInvalidAttribute || !entityIsValid ){ %> <% } else if( (!uploadStatus || uploadStatus == "c" || uploadStatus == "q") && type != "Metadata" && numAttributes == 0 ){ %> <% } else { %> <% } %>
<% } %>