var Extended = function ( pathCache ) { /******************************* * config *******************************/ this.config = { defaultSortOrder: "C=N;O=A", customHeader: "h5ai.header.html", customFooter: "h5ai.footer.html" }; /******************************* * init *******************************/ this.init = function () { try { document.title = decodeURI( document.domain + document.location.pathname ); } catch ( err ) { document.title = document.domain + document.location.pathname; }; this.initBreadcrumb(); this.initExtendedView(); this.customize(); this.initCounts(); }; /******************************* * breadcrumb *******************************/ this.initBreadcrumb = function () { var $ul = $( "body > nav ul" ); var pathname = "/"; var path = pathCache.getPathForFolder( pathname ); $ul.append( path.updateCrumbHtml() ); var pathnameParts = document.location.pathname.split( "/" ); for ( idx in pathnameParts ) { var part = pathnameParts[idx]; if ( part !== "" ) { pathname += part + "/"; var path = pathCache.getPathForFolder( pathname ); $ul.append( path.updateCrumbHtml() ); }; }; }; /******************************* * extended view *******************************/ this.initExtendedView = function () { var $ul = $( "