All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.standardsregistry.min.js Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
(function(d,p){var m=new p.RestClient();var u;var g;var i;var h=3;var f;var l=0;function e(v){if(v.name){d("#attribute-selection").fancytree({source:{url:p.getContextUrl()+"/getTreeData?package="+v.name},click:function(x,y){if(y.targetType==="title"||y.targetType==="icon"){switch(y.node.data.type){case"package":d("#package-doc-container").scrollTo("#package-"+y.node.key);break;case"entity":d("#package-doc-container").scrollTo("#entity-"+y.node.key);break;case"attribute":var w=y.node.parent;while(w.extraClasses!="entity"){w=w.parent}d("#package-doc-container").scrollTo("#attribute-"+w.key+y.node.key);break;default:throw"Unknown type"}}}})}}function b(x,v){v.empty();for(var w=0;wh){d("#package-search-results-pager").show();d("#package-search-results-pager").pager({nrItems:C.total,nrItemsPerPage:h,page:l+1,onPageChange:function(D){l=D.page-1;d("form[name=search-form]").submit()}})}else{d("#package-search-results-pager").hide()}}d(document).on("click","#search-clear-button",function(){d("#package-search").val("");d("form[name=search-form]").submit()});function A(C){u=C;d("#standards-registry-details").load(p.getContextUrl()+"/details?package="+C,function(){d.get(p.getContextUrl()+"/getPackage?package="+C,function(D){e(D)});d("#standards-registry-search").removeClass("show").addClass("hidden");d("#standards-registry-details").removeClass("hidden").addClass("show")})}d(document).on("click",".details-btn",function(){var C=d(this).closest(".package").data("id");A(C);return false});d(document).on("click","#search-results-back-btn",function(){d("#standards-registry-search").removeClass("hidden").addClass("show");d("#standards-registry-details").removeClass("show").addClass("hidden")});d(document).on("click",".dataexplorer-btn",function(){var C=d(this).parent().siblings("select.entity-select-dropdown").val();if(C){window.location.href="/menu/main/dataexplorer?entity="+C}});d(document).on("click","#reset",function(){r()});d(document).on("click","#a4-horizontal",function(){a()});d(document).on("click","#a4-vertical",function(){c()});d(document).on("click","#a3-horizontal",function(){n()});d(document).on("click","#a3-vertical",function(){o()});d(document).on("click","#print-btn",function(){d("#package-doc-container").css("height","100%").css("width","21cm").css("overflow","hidden");d("#paper-holder").css("overflow","hidden");window.print();d("#package-doc-container").css("height","600px").css("overflow-x","hidden").css("overflow-y","auto").css("width","923px");d("#paper-holder").css("overflow","auto")});d(document).on("click","#uml-tab",function(){showSpinner();setTimeout(function(){d.getScript(p.getContextUrl()+"/uml?package="+u);hideSpinner()},500)});g=Handlebars.compile(d("#count-template").html());i=Handlebars.compile(d("#model-template").html());if(window.location.search){var z=window.location.search.substring(1);var y,B=[];if(z!==undefined){y=z.split("&");jQuery.each(y,function(C,D){var E=D.split("=");if("package"===E[0]){A(E[1])}})}}d(document).on("click","#zoom-in",function(){q()});d(document).on("click","#zoom-out",function(){k()});var x=d("#package-search-results[data-package-search-results]").attr("data-package-search-results");if(x){v(JSON.parse(x));d("#package-search-results[data-package-search-results]").removeAttr("data-package-search-results")}else{d("form[name=search-form]").submit()}})}($,window.top.molgenis=window.top.molgenis||{}));




© 2015 - 2024 Weber Informatics LLC | Privacy Policy