<% 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 displayValue = model.displayValue; if(model.level==1 && !_this.cfrpartsview){ displayValue = displayValue+ ' (Volume '+ (parseInt(displayValue)-1936+1) +')' } if(_this.cfrpartsview){ switch(model.navigator){ case 'cfrtitle_i': displayValue = 'Title ' + displayValue; break; case 'cfrpart': displayValue = 'Part ' + displayValue; break; default: break; } } if(model.hasDocumentResults === true) { var previousfp = ""; var previoussection = ""; _.each(children, function(item){ if(item.nodeValue["firstpage"] === previousfp) { previousfp = item.nodeValue['firstpage']; item.nodeValue["firstpage"] = ""; } else { previousfp = item.nodeValue['firstpage']; } if(item.nodeValue["section"] === previoussection) { previoussection = item.nodeValue['section']; item.nodeValue["section"] = ""; } else { previoussection = item.nodeValue['section']; item.nodeValue["section"] = _this.uiprops.docresultsmapping[model.collectionCode.toLowerCase()][item.nodeValue["section"]]; } },_this); } 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 href = '/' + model.collectionCode.toLowerCase() + '/' + model.browsePathAlias ; var rand = model.level + Math.floor(Math.random() * 9999999);%>
<% if(model.hasOwnProperty("entireIssueDetails")) { %> <%=_this.snippet('entireissue', { _preloadData : model })%> <%} %> <% if((data.nodeValue.hasDocumentResults === true) && (children && children.length > 1) && !_this.dic) { %> <% if(_this.paginationenabledleaf === true) { %> <%= _this.snippet('pagination', { _preloadData : _preloadData,_this :_this}) %> <% } %> Sort " > <%} %> <% for(var i=0,l=children.length;i <%=_this.snippet('frleaf', { _preloadData : children[i] })%> <%} else {%> <%=_this.snippet('frnode', { _preloadData : children[i]})%> <%} %> <%} %>
<% } else { %> <%=_this.snippet('errornotification', {errorText: 'Error Occured. Please try again later ..'})%> <% } %>