Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
");H.html(I.join(""))}function n(J,I){var H=d("#feature-selection");H.tree({entityMetaData:J,selectedAttributes:I,onAttributesSelect:function(){f=H.tree("getSelectedAttributes");A=H.tree("getSelectedAttributesTree");d(document).trigger("changeAttributeSelection",{attributes:f,attributesTree:A,totalNrAttributes:Object.keys(J.attributes).length})},onAttributeClick:function(K){d(document).trigger("clickAttribute",{attribute:K})}})}function k(H){d("#entity-class-name").html(H.label);if(H.description){var I=d('');I.html(abbreviate(H.description,B.header_abbreviate));I.attr("data-title",H.description);d("#entity-class-description").html(I.tooltip())}else{d("#entity-class-description").html("")}}function j(I,H){u=I;z=H}function b(){var J;var I={q:[]};if(y){if(/\S/.test(y)){var N=/^\s*(?:chr)?([\d]{1,2}|X|Y|MT|XY):([\d]+)(?:-([\d]+)+)?\s*$/g;if(N&&y.match(N)&&z!==undefined&&u!==undefined){var K=N.exec(y);if(K[3]===undefined){J=K[1];var H=K[2];I.q=[{operator:"NESTED",nestedRules:[{field:z,operator:"EQUALS",value:J}]},{operator:"AND"},{operator:"NESTED",nestedRules:[{field:u,operator:"EQUALS",value:H}]}]}else{if(K[3]){J=K[1];var M=K[2];var L=K[3];if(parseInt(M,10)>parseInt(L,10)){w.createAlert([{message:"The start position of the queried range is larger than the stop position. Please check the search query."}],"warning")}else{d(".alerts").empty()}I.q=[{operator:"NESTED",nestedRules:[{operator:"NESTED",nestedRules:[{field:z,operator:"EQUALS",value:J}]}]},{operator:"AND"},{operator:"NESTED",nestedRules:[{field:u,operator:"GREATER_EQUAL",value:M},{operator:"AND"},{field:u,operator:"LESS_EQUAL",value:L}]}]}}}else{I.q.push({operator:"SEARCH",value:y})}}}d.each(C,function(O,P){var Q=P.createQueryRule();if(Q){if(I.q.length>0){I.q.push({operator:"AND"})}I.q.push(Q)}});return I}function G(){d.get(w.getContextUrl()+"/copy?entity="+e.entity).done(function(I){if(I===true){d("#copy-data-btn").removeClass("hidden")}else{d("#copy-data-btn").addClass("hidden")}});d.get(w.getContextUrl()+"/navigatorLinks?entity="+e.entity).done(function(J){if(J.length>0){d("#entity-package-path").removeClass("hidden");const I=[];J.forEach(function(K){if(K.label==="glyphicon-home"){K.label=" "}var L=""+K.label+"";I.push(L)});d("#entity-package-path").html("("+I.join(" / ")+")")}else{d("#entity-package-path").addClass("hidden")}});var H=o.getAsync("/api/v1/"+e.entity+"/meta",{expand:["attributes"]},function(J){const K=J.permissions.indexOf("DELETE_METADATA")>=0;const I=J.permissions.indexOf("DELETE_DATA")>=0;if(K||I){d("#delete-dropdown-container").show();if(K){d("#delete-metadata-dropdown-item").show()}if(I){d("#delete-data-dropdown-item").show()}}g=J;f=[];q.createHeader(J);d.each(J.attributes,function(L,M){M.expanded=false;if(e.attrs===undefined||e.attrs===null){if(M.fieldType!=="COMPOUND"){f.push(M)}}else{if(e.attrs==="none"){f=[]}else{d.each(e.attrs,function(N,O){if(M.name===O){f.push(M)}})}}});A={};d.each(f,function(L,N){var M=N.name;A[M]=N.expanded===true?{"*":null}:null});n(J,f);if(B.launch_wizard===true){q.filter.wizard.openFilterWizardModal(J,C)}});d.get(w.getContextUrl()+"/modules?entity="+e.entity).done(function(L){var J=d("#module-nav");D=L.modules;h(L.modules,e.entity,J);var K;if(e.mod){K=d('a[data-toggle="tab"][data-target="#tab-'+e.mod+'"]',J)}else{K=d('a[data-toggle="tab"]',J).first()}e.mod=K.data("id");d.when(H).done(function(){K.tab("show")});function I(){d("#selectors").removeClass("col-md-3").addClass("hidden");d("#modules").removeClass("col-md-9").addClass("col-md-12");d("#toggleSelectorsIcon").removeClass("glyphicon glyphicon-resize-horizontal").addClass("glyphicon glyphicon-resize-small")}function M(){d("#selectors").addClass("col-md-3").removeClass("hidden");d("#modules").removeClass("col-md-12").addClass("col-md-9");d("#toggleSelectorsIcon").removeClass("glyphicon glyphicon-resize-small").addClass("glyphicon glyphicon-resize-horizontal")}d("#toggleSelectors").on("click",function(){if(d("#selectors").hasClass("hidden")){M()}else{I()}})});d("#observationset-search").focus()}function r(I,H){if(window.hasTrackingId){I("set","page",H);I("send","pageview")}if(window.hasMolgenisTrackingId){I("molgenisTracker.set","page",H);I("molgenisTracker.send","pageview")}}function p(){var K={};for(var I in e){if(e.hasOwnProperty(I)){var M=e[I];if(M){K[I]=M}}}if(e.query){delete K.query;for(var H=0;H0){React.unmountComponentAtNode(d("#data-table-container")[0])}d("#feature-filters").find("p").remove();J.val("");d("#data-table-pager").empty();d.each(D,function(){d(document).off("."+this.id)});G()});d(document).on("changeModule",function(O,N){e.mod=N;p()});d(document).on("changeAttributeSelection",function(O,N){if(N.attributes.length===0){e.attrs="none"}else{if(N.attributes.length===N.totalNrAttributes){e.attrs=null}else{e.attrs=d.map(N.attributes,function(P){return P.name})}}p()});d(document).on("updateAttributeFilters",function(T,R){var U=[];for(var P=0;P0)){if(U.length>0){U.push({operator:"AND"})}U.push(S)}if(Q.isEmpty()){delete C[Q.attribute.href]}else{C[Q.attribute.href]=Q}}if(U.length>0){var N=w.createRsqlQuery(U);e.filter=w.dataexplorer.rsql.translateFilterRulesToRSQL(N,e.filter);p()}else{if(U.length===0){delete e.filter;p()}}q.filter.createFilterQueryUserReadableList(C);d(document).trigger("changeQuery",b())});d(document).on("removeAttributeFilter",function(P,O){delete C[O.attributeUri];q.filter.createFilterQueryUserReadableList(C);var N=O.attributeUri.split("/")[5];e.filter=w.dataexplorer.rsql.removeFilterFromRsqlState(N,e.filter);p();d(document).trigger("changeQuery",b())});d(document).on("clickAttribute",function(P,O){var N=O.attribute;if(N.fieldType!=="COMPOUND"&&(!N.refEntity||!N.parent)){q.filter.dialog.openFilterModal(O.attribute,C[O.attribute.href])}});var I=d("#plugin-container");if(M.length>0){M.select2({width:"resolve"});M.change(function(){d(document).trigger("changeEntity",d(this).val())})}J.change(function(N){y=d(this).val().trim();d(document).trigger("changeQuery",b())});d("#observationset-search").keypress(function(N){if(getInternetExplorerVersion()!=-1){if(N.which==13){d(document).trigger("changeQuery",b());J.change()}}});d("#search-clear-button").click(function(){J.val("");J.change()});d("#filter-wizard-btn").click(function(){q.filter.wizard.openFilterWizardModal(g,C)});d("#module-nav").on("click","ul.nav > li > a",function(N){d(document).trigger("changeModule",d(this).data("id"))});d(I).on("click",".feature-filter-edit",function(O){O.preventDefault();var N=C[d(this).data("href")];q.filter.dialog.openFilterModal(N.attribute,N)});d(I).on("click",".feature-filter-remove",function(N){N.preventDefault();d(document).trigger("removeAttributeFilter",{attributeUri:d(this).data("href")})});function K(){bootbox.confirm("Are you sure you want to delete all data for this entity?",function(N){if(N){d.ajax("/api/v1/"+g.name,{type:"DELETE"}).done(function(){document.location.href="/menu/main/dataexplorer?entity="+g.name})}})}d("#delete-data-btn").on("click",K);d("#delete-data-option").on("click",K);d("#copy-data-btn").on("click",function(){bootbox.prompt({title:"
Copy entity ["+g.label+']
Please enter a new entity name.
Use max 30 characters.
Only letters (a-z, A-Z), digits (0-9), underscores(_) and dashes(-) are allowed.
By pushing the ok button you will create an new entity with copied data.
',value:g.label+"Copy",callback:function(N){if(N!==null){d.ajax({headers:{Accept:"application/json","Content-Type":"application/json"},type:"POST",url:"/api/v2/copy/"+g.name,data:JSON.stringify({newEntityName:N}),dataType:"json",success:function(O){document.location.href="/menu/main/dataexplorer?entity="+O}})}}})});d("#delete-data-metadata-option").on("click",function(){bootbox.confirm("Are you sure you want to delete all data and metadata for this entity?",function(N){if(N){d.ajax("/api/v1/"+g.name+"/meta",{type:"DELETE"}).done(function(){document.location.href="/menu/main/dataexplorer"})}})});function L(){if(!e.entity){e.entity=d("#dataset-select").find("option:selected").val()}if(!e.entity){e.entity=d("#dataset-select").find("option:not(:empty)").first().val()}d("#dataset-select").select2("val",e.entity);if(e.hideselect==="true"){d("#dataset-select-container").addClass("hidden")}else{d("#dataset-select-container").removeClass("hidden")}if(e.query){for(var N=0;N0){var H=window.location.search.substring(1);if(H.length>0){e=d.deparam(H)}}else{e=v}window.onpopstate=function(N){if(N.state!==null){e=N.state;L()}};L()})});