% if(_preloadData && _preloadData.childNodes ) { var baseurl = window.location.protocol + '//' + window.location.hostname + '/app'; var data = _preloadData; var children = data.childNodes; var model=data.nodeValue; var children=data.childNodes; var toggleiconclass = children.length > 0 ? ' fa-minus-circle':' fa-plus-circle'; var collapse = children.length > 0 ? 'collapse in':'collapse'; var sort = children.length > 1 ? 'none':'none'; var plusminusvisible = 'block'; var paneldisabled = 'false'; var href = '/' + model.collectionCode.toLowerCase() + '/'; var rand = model.level + Math.floor(Math.random() * 9999); var addThisTitle = model.title; console.log(model); if(model.hasOwnProperty('selectedYearFrom') && model.selectedYearFrom.length > 0){ href = href + model.selectedYearFrom + '/' ; } if(model.hasOwnProperty('searchPath') && model.searchPath.length > 0){ href = href + model.browsePathAlias ; } if (model.nodetype !== 'node') { plusminusvisible="none"; paneldisabled="true"; } var trstyle; var tdstyle; if(_this.accessId) { trstyle = (_this.accessId == model.granuleid) ?'trstyle' : '' ; tdstyle = (_this.accessId == model.granuleid) ?'tdstyle' : '' ; } %>
|
<%if(model.ancestors && model.ancestors == 'root'){%> Title <%if(model.titlenumber != null){%> <%- model.titlenumber %> <% }%> <% } %> <%if(model.ancestors !== 'root' && model.heading && model.section !== 'FRONTMATTER' && model.section !== 'TOC'){%> <%- model.heading %> <% } %> <%if((model.rootNode != true) && (model.level != '0') && model.section !== 'FRONTMATTER' && model.section !== 'TOC'){%> - <% } %> <%- model.title %> <%if((model.nodetype == 'node') && (model.rootNode != true) && (model.level != '1')){%> <%if(model.leafnumberfrom == model.leafnumberto){%> (Sections <%- model.leafnumberfrom %> <%} else { %> (Sections <%- model.leafnumberfrom %> - <%- model.leafnumberto %>) <% }%> <% }%> <%if((model.level == '1') && (model.nodetype == 'node') && (model.rootNode != true)){%> (Sections <%- model.leafnumberfrom %> - <%- model.leafnumberto %>) <% }%> |
<%if(model.nodetype){%>
<%if(model.hasOwnProperty('xmlfile')){%>
XML <%}%>
<%if(model.hasOwnProperty('pdffile')){%>
PDF <%}%>
<%if(model.hasOwnProperty('htmlfile')){%>
Text <%}%>
<%if(model.hasOwnProperty('other1file')){%> <% var lastdot =
model.other1file.lastIndexOf("."); var other1file =
model.other1file.substring(lastdot+1).toUpperCase(); %>
<%- other1file
%>
<%}%> <%if(model.hasOwnProperty('other2file')){%> <% var
lastdot = model.other2file.lastIndexOf("."); var other2file =
model.other2file.substring(lastdot+1).toUpperCase(); %>
<%- other2file
%>
<%}%>
<%if(model.rootNode != true) {%>
Details
Share
<%}%>
<% } %>
|
|
<%if(model.ancestors && model.ancestors
== 'root'){%>
Title - <%if(model.titlenumber != null){%> <%- model.titlenumber %> <% }%> <% } %> <%if(model.ancestors !== 'root' && model.heading){%> <%- model.heading %> - <% } %> <%- model.title %> <%if((model.nodetype == 'node') && (model.rootNode != true) && (model.level != '1')){%> <%if(model.leafnumberfrom == model.leafnumberto){%>(Sections <%- model.leafnumberfrom %> <%} else { %>(Sections <%- model.leafnumberfrom %> - <%- model.leafnumberto %>) <% }%> <% }%> <%if((model.level == '1') && (model.nodetype == 'node') && (model.rootNode != true)){%> (Sections <%- model.leafnumberfrom %> - <%- model.leafnumberto %>) <% }%> <%if(model.nodetype){%> <% if(model.hasOwnProperty('xmlfile') || model.hasOwnProperty('pdffile') || model.hasOwnProperty('htmlfile') || model.hasOwnProperty('other1file') || model.hasOwnProperty('other2file') || model.rootNode != true) { %> |