From 641f037387c331d31424ca4e69f6b5a76b57a7a4 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Thu, 31 Mar 2016 14:26:11 +0000 Subject: [PATCH] Load on demand openBIS V1 API from correct URL SVN: 36055 --- .../1/as/webapps/eln-lims/html/index.html | 128 +- .../html/lib/openbis/js/v1/openbis.js | 2337 ----------------- .../html/lib/openbis/uploader/config.json | 1 - .../lib/openbis/uploader/css/src/upload.css | 292 -- .../html/lib/openbis/uploader/img/favicon.gif | Bin 225 -> 0 bytes .../lib/openbis/uploader/img/pause-button.png | Bin 172 -> 0 bytes .../lib/openbis/uploader/img/play-button.png | Bin 305 -> 0 bytes .../lib/openbis/uploader/img/stop-button.png | Bin 176 -> 0 bytes .../lib/openbis/uploader/img/upload-icon.png | Bin 3037 -> 0 bytes .../html/lib/openbis/uploader/index.html | 57 - .../lib/openbis/uploader/js/src/upload.js | 441 ---- .../html/lib/openbis/uploader/version.txt | 1 - 12 files changed, 73 insertions(+), 3184 deletions(-) delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v1/openbis.js delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/config.json delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/css/src/upload.css delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/favicon.gif delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/pause-button.png delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/play-button.png delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/stop-button.png delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/upload-icon.png delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/index.html delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/js/src/upload.js delete mode 100644 openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/version.txt diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html index 4b822da2032..241975e4b74 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html @@ -68,7 +68,6 @@ <script type="text/javascript" src="./lib/caja-HTML-sanitizer/js/sanitizer.js"></script> <!-- First party libraries --> - <script type="text/javascript" src="./lib/openbis/js/v1/openbis.js"></script> <script type="text/javascript" src="./lib/openbis/js/v3/config.js"></script> <script type="text/javascript" src="./lib/openbis/js/v3/require.js"></script> <script type="text/javascript" src="./lib/grid/js/Grid.js"></script> @@ -209,20 +208,31 @@ <script type="text/javascript" src="./js/views/ExperimentTable/ExperimentTableView.js"></script> <script type="text/javascript"> - // - // Configurations Available (Available under the js/config folder) - // Use StandardProfile as a standard default for new installations. - // Use ExampleProfile as a start point to develop new profiles. - // - - //<PROFILE_PLACEHOLDER> - var profile = new StandardProfile(); - //</PROFILE_PLACEHOLDER> // // Global variables // - var mainController = new MainController(profile); + var profile = null; + var mainController = null; + + var loadJSResorce = function(pathToResource, onLoad) { + //Dinamically load openBIS V1 libraries + var fullURL = window.location.href; + var indexOfWebapp = fullURL.indexOf('webapp'); + var openBISURL = fullURL.substring(0,indexOfWebapp); + + var head= document.getElementsByTagName('head')[0]; + var script= document.createElement('script'); + script.type= 'text/javascript'; + var src = openBISURL + pathToResource; + script.src= src; + script.onreadystatechange= function () { + if (this.readyState == 'complete') onLoad(); + } + script.onload = onLoad; + + head.appendChild(script); + } // // Global links handler - This function avoid normal link behaviour for javascript enabled links that will use ajax calls for left clicks, allowing to open them on a new tab with right click. @@ -240,54 +250,63 @@ // Application Startup // $(document).ready(function() { - $(document).ajaxError(function( event, jqxhr, settings, thrownError ) { - try { - Util.showError("AJAX Error status: " + jqxhr.status + " - Status text: " + jqxhr.statusText + " - Calling: " + settings.url + " - With Data: " + settings.data); - } catch(err) { - Util.showError("Unknown AJAX Error"); + //Dinamically load openBIS V1 libraries + loadJSResorce("resources/js/openbis.js", function() { + //<PROFILE_PLACEHOLDER> + profile = new StandardProfile(); + //</PROFILE_PLACEHOLDER> + + mainController = new MainController(profile); + + $(document).ajaxError(function( event, jqxhr, settings, thrownError ) { + try { + Util.showError("AJAX Error status: " + jqxhr.status + " - Status text: " + jqxhr.statusText + " - Calling: " + settings.url + " - With Data: " + settings.data); + } catch(err) { + Util.showError("Unknown AJAX Error"); + } + }); + + $('#main').hide(); + var username = $("#username").value; + if(username == null || username.length==0) { + $("#username").focus(); + } else { + $("#login-button").focus(); } - }); - $('#main').hide(); - var username = $("#username").value; - if(username == null || username.length==0) { - $("#username").focus(); - } else { - $("#login-button").focus(); - } - - $('#login-form').submit(function() { - Util.blockUI(); - var username = $('#username').val(); - var password = $('#password').val(); + $('#login-form').submit(function() { + Util.blockUI(); + var username = $('#username').val(); + var password = $('#password').val(); + + mainController.serverFacade.login( + $.trim($('#username').val()), + $.trim($('#password').val()), + function(data) { mainController.enterApp(data, username, password) }); + }); - mainController.serverFacade.login( - $.trim($('#username').val()), - $.trim($('#password').val()), - function(data) { mainController.enterApp(data, username, password) }); - }); - - mainController.serverFacade.ifRestoredSessionActive(function(data) { mainController.enterApp(data) }); - - // Make the ENTER key the default button - $("login-form input").keypress(function (e) { - if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { - $('button[type=submit].default').click(); - return false; - } else { - return true; + mainController.serverFacade.ifRestoredSessionActive(function(data) { mainController.enterApp(data) }); + + // Make the ENTER key the default button + $("login-form input").keypress(function (e) { + if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { + $('button[type=submit].default').click(); + return false; + } else { + return true; + } + }); + + //Automatic login if special parameters are given + var queryString = Util.queryString(); + var user = queryString.user; + var pass = queryString.pass; + if(user && pass) { + Util.blockUI(); + mainController.serverFacade.login(user, pass, function(data) { mainController.enterApp(data) }); } }); - //Automatic login if special parameters are given - var queryString = Util.queryString(); - var user = queryString.user; - var pass = queryString.pass; - if(user && pass) { - Util.blockUI(); - mainController.serverFacade.login(user, pass, function(data) { mainController.enterApp(data) }); - } - //Resize the menu on drag var dragContainerFunc = function(e) { var menu = $('#sideMenu'); @@ -306,9 +325,8 @@ axis: "x", drag: dragContainerFunc }); - - dragContainerFunc({ pageX : (window.outerWidth * 0.20) }); + dragContainerFunc({ pageX : (window.outerWidth * 0.20) }); }); </script> </head> diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v1/openbis.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v1/openbis.js deleted file mode 100644 index 66528c31135..00000000000 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v1/openbis.js +++ /dev/null @@ -1,2337 +0,0 @@ -/** - * ============================================= - * OpenBIS facade internal code (DO NOT USE!!!) - * ============================================= - */ - -if(typeof $ == 'undefined'){ - alert('Loading of openbis.js failed - jquery.js is missing'); -} - -function _openbisInternal(openbisUrlOrNull){ - this.init(openbisUrlOrNull); -} - -_openbisInternal.prototype.init = function(openbisUrlOrNull){ - this.openbisUrl = this.normalizeOpenbisUrl(openbisUrlOrNull); - this.generalInfoServiceUrl = this.openbisUrl + "/rmi-general-information-v1.json"; - this.generalInfoChangingServiceUrl = this.openbisUrl + "/rmi-general-information-changing-v1.json"; - this.queryServiceUrl = this.openbisUrl + "/rmi-query-v1.json"; - this.webInfoServiceUrl = this.openbisUrl + "/rmi-web-information-v1.json" -} - -_openbisInternal.prototype.log = function(msg){ - if(console){ - console.log(msg); - } -} - -_openbisInternal.prototype.normalizeOpenbisUrl = function(openbisUrlOrNull){ - var parts = this.parseUri(window.location); - - if(openbisUrlOrNull){ - var openbisParts = this.parseUri(openbisUrlOrNull); - - for(openbisPartName in openbisParts){ - var openbisPartValue = openbisParts[openbisPartName]; - - if(openbisPartValue){ - parts[openbisPartName] = openbisPartValue; - } - } - } - - return parts.protocol + "://" + parts.authority + "/openbis/openbis"; -} - -_openbisInternal.prototype.jsonRequestData = function(params) { - params["id"] = "1"; - params["jsonrpc"] = "2.0"; - return JSON.stringify(params) -} - -_openbisInternal.prototype.ajaxRequest = function(settings) { - settings.type = "POST"; - settings.processData = false; - settings.dataType = "json"; - settings.jsonp = false; - settings.data = this.jsonRequestData(settings.data); - settings.success = this.ajaxRequestSuccess(settings.success); - // we call the same settings.success function for backward compatibility - settings.error = this.ajaxRequestError(settings.success); - $.ajax(settings) -} - -_openbisInternal.prototype.responseInterceptor = function(response, action) { - action(response); -} - -_openbisInternal.prototype.ajaxRequestSuccess = function(action){ - var openbisObj = this; - return function(response){ - if(response.error){ - openbisObj.log("Request failed: " + JSON.stringify(response.error)); - } - - openbisObj.responseInterceptor(response, function() { - if(action){ - action(response); - } - }); - }; -} - -_openbisInternal.prototype.ajaxRequestError = function(action){ - var openbisObj = this; - return function(xhr, status, error){ - openbisObj.log("Request failed: " + error); - if(action){ - action({ - "error" : "Request failed: " + error - }); - } - }; -} - -// Functions for working with cookies (see http://www.quirksmode.org/js/cookies.html) - -_openbisInternal.prototype.createCookie = function(name,value,days) { - if (days) { - var date = new Date(); - date.setTime(date.getTime()+(days*24*60*60*1000)); - var expires = "; expires="+date.toGMTString(); - } - else var expires = ""; - document.cookie = name+"="+value+expires+"; path=/"; -} - -_openbisInternal.prototype.readCookie = function(name) { - var nameEQ = name + "="; - var ca = document.cookie.split(';'); - for(var i=0;i < ca.length;i++) { - var c = ca[i]; - while (c.charAt(0)==' ') c = c.substring(1,c.length); - if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); - } - return null; -} - -_openbisInternal.prototype.eraseCookie = function(name) { - this.createCookie(name,"",-1); -} - -// parseUri 1.2.2 (c) Steven Levithan <stevenlevithan.com> MIT License (see http://blog.stevenlevithan.com/archives/parseuri) - -_openbisInternal.prototype.parseUri = function(str) { - var options = { - strictMode: false, - key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], - q: { - name: "queryKey", - parser: /(?:^|&)([^&=]*)=?([^&]*)/g - }, - parser: { - strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, - loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ - } - }; - - var o = options, - m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), - uri = {}, - i = 14; - - while (i--) uri[o.key[i]] = m[i] || ""; - - uri[o.q.name] = {}; - uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) { - if ($1) uri[o.q.name][$1] = $2; - }); - - return uri; -} - -_openbisInternal.prototype.listDataStores = function(action){ - this.ajaxRequest({ - url: this.generalInfoServiceUrl, - data: { "method" : "listDataStores", - "params" : [ this.sessionToken ] - }, - success: action - }); -} - -_openbisInternal.prototype.initDataStores = function(action){ - var openbisInternal = this; - - if(typeof this.dataStores === "undefined"){ - this.listDataStores(function(response){ - if(response.result){ - openbisInternal.dataStores = response.result; - }else{ - openbisInternal.dataStores = []; - } - action(); - }); - }else{ - action(); - } -} - -_openbisInternal.prototype.getDataStoreUrlForDataStoreCode = function(dataStoreCodeOrNull, action) { - var openbisInternal = this; - - this.initDataStores(function(){ - if(openbisInternal.dataStores.length == 0){ - throw "Couldn't get a data store url as there are no data stores configured."; - }else{ - if(dataStoreCodeOrNull){ - var dataStoreUrl = null; - $.each(openbisInternal.dataStores, function(index, dataStore){ - if(dataStore.code == dataStoreCodeOrNull){ - dataStoreUrl = dataStore.downloadUrl; - } - }); - if(dataStoreUrl){ - action(dataStoreUrl); - }else{ - throw "Couldn't get a data store url because data store with " + dataStoreCodeOrNull + " code does not exist."; - } - }else{ - if(openbisInternal.dataStores.length == 1){ - action(openbisInternal.dataStores[0].downloadUrl); - }else{ - throw "There is more than one data store configured. Please specify a data store code to get a data store url."; - } - } - } - }); -} - -_openbisInternal.prototype.getDataStoreUrlForDataSetCode = function(dataSetCode, action) { - var openbisInternal = this; - - this.initDataStores(function(){ - if(openbisInternal.dataStores.length == 0){ - throw "Couldn't get a data store url as there are no data stores configured."; - }else if(openbisInternal.dataStores.length == 1){ - action(openbisInternal.dataStores[0].downloadUrl); - }else{ - openbisInternal.ajaxRequest({ - url: openbisInternal.generalInfoServiceUrl, - data: { "method" : "tryGetDataStoreBaseURL", - "params" : [ openbisInternal.sessionToken, dataSetCode ] - }, - success: function(response){ - var hostUrl = response.result; - - if(hostUrl){ - action(hostUrl + "/datastore_server"); - }else{ - throw "Couldn't get a data store url for a data set with " + dataSetCode + " code because the data set does not exist."; - } - } - }); - } - }); -} - -_openbisInternal.prototype.getDataStoreApiUrlForDataStoreCode = function(dataStoreCodeOrNull, action) { - this.getDataStoreUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreUrl){ - action(dataStoreUrl + "/rmi-dss-api-v1.json"); - }); -} - -_openbisInternal.prototype.getDataStoreApiUrlForDataSetCode = function(dataSetCode, action) { - this.getDataStoreUrlForDataSetCode(dataSetCode, function(dataStoreUrl){ - action(dataStoreUrl + "/rmi-dss-api-v1.json"); - }); -} - -_openbisInternal.prototype.getDataStoreHostForDataStoreCode = function(dataStoreCodeOrNull, action) { - var openbisObj = this; - - this.getDataStoreUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreUrl){ - var parts = openbisObj.parseUri(dataStoreUrl); - action(parts.protocol + "://" + parts.authority); - }); -} - -/** - * =============== - * OpenBIS facade - * =============== - * - * The facade provides access to the following services: - * - * - ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationService - * - ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationChangingService - * - ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.IQueryApiServer - * - ch.systemsx.cisd.openbis.generic.shared.api.v1.IWebInformationService - * - ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.IDssServiceRpcGeneric - * - * @class - * - */ - -function openbis(openbisUrlOrNull) { - this._internal = new _openbisInternal(openbisUrlOrNull); -} - -/** - * Intercepts responses so clients can handle generic errors like session timeouts with a - * single handler. - * - * @method - */ -openbis.prototype.setResponseInterceptor = function(responseInterceptor) { - this._internal.responseInterceptor = responseInterceptor; -} - -/** - * ================================================================================== - * ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationService methods - * ================================================================================== - */ - -/** - * Log into openBIS. - * - * @see IGeneralInformationService.tryToAuthenticateForAllServices(String, String) - * @method - */ -openbis.prototype.login = function(userId, userPassword, action) { - var openbisObj = this - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "tryToAuthenticateForAllServices", - "params" : [ userId, userPassword ] - }, - success: - function(loginResponse) { - if(loginResponse.error){ - alert("Login failed"); - }else{ - openbisObj._internal.sessionToken = loginResponse.result; - openbisObj.rememberSession(); - } - openbisObj._internal.initDataStores(function(){ - action(loginResponse); - }); - } - }); -} - -/** - * Stores the current session in a cookie. - * - * @method - */ -openbis.prototype.rememberSession = function() { - this._internal.createCookie('openbis', this.getSession(), 1); -} - -/** - * Removes the current session from a cookie. - * - * @method - */ -openbis.prototype.forgetSession = function() { - this._internal.eraseCookie('openbis'); -} - -/** - * Restores the current session from a cookie. - * - * @method - */ -openbis.prototype.restoreSession = function() { - this._internal.sessionToken = this._internal.readCookie('openbis'); -} - -/** - * Sets the current session. - * - * @method - */ -openbis.prototype.useSession = function(sessionToken){ - this._internal.sessionToken = sessionToken; -} - -/** - * Returns the current session. - * - * @method - */ -openbis.prototype.getSession = function(){ - return this._internal.sessionToken; -} - -/** - * Checks whether the current session is still active. - * - * @see IGeneralInformationService.isSessionActive(String) - * @method - */ -openbis.prototype.isSessionActive = function(action) { - if(this.getSession()){ - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "isSessionActive", - "params" : [ this.getSession() ] - }, - success: action - }); - }else{ - action({ result : false }) - } -} - -/** - * Restores the current session from a cookie and executes - * the specified action if the session is still active. - * - * @see restoreSession() - * @see isSessionActive() - * @method - */ -openbis.prototype.ifRestoredSessionActive = function(action) { - this.restoreSession(); - this.isSessionActive(function(data) { if (data.result) action(data) }); -} - -/** - * Log out of openBIS. - * - * @see IGeneralInformationService.logout(String) - * @method - */ -openbis.prototype.logout = function(action) { - this.forgetSession(); - - if(this.getSession()){ - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "logout", - "params" : [ this.getSession() ] - }, - success: action - }); - }else if(action){ - action({ result : null }); - } -} - -/** - * @see IGeneralInformationService.listNamedRoleSets(String) - * @method - */ -openbis.prototype.listNamedRoleSets = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listNamedRoleSets", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listSpacesWithProjectsAndRoleAssignments(String, String) - * @method - */ -openbis.prototype.listSpacesWithProjectsAndRoleAssignments = function(databaseInstanceCodeOrNull, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listSpacesWithProjectsAndRoleAssignments", - "params" : [ this.getSession(), databaseInstanceCodeOrNull ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForSamples(String, SearchCriteria) - * @method - */ -openbis.prototype.searchForSamples = function(searchCriteria, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "searchForSamples", - "params" : [ this.getSession(), - searchCriteria ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForSamples(String, SearchCriteria, EnumSet<SampleFetchOption>) - * @method - */ -openbis.prototype.searchForSamplesWithFetchOptions = function(searchCriteria, fetchOptions, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { - "method" : "searchForSamples", - "params" : [ - this.getSession(), - searchCriteria, - fetchOptions ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForSamplesOnBehalfOfUser(String, SearchCriteria, EnumSet<SampleFetchOption>, String) - * @method - */ -openbis.prototype.searchForSamplesOnBehalfOfUser = function(searchCriteria, fetchOptions, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { - "method" : "searchForSamplesOnBehalfOfUser", - "params" : [ - this.getSession(), - searchCriteria, - fetchOptions, - userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.filterSamplesVisibleToUser(String, List<Sample>, String) - * @method - */ -openbis.prototype.filterSamplesVisibleToUser = function(allSamples, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { - "method" : "filterSamplesVisibleToUser", - "params" : [ - this.getSession(), - allSamples, - userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listSamplesForExperiment(String, String) - * @method - */ -openbis.prototype.listSamplesForExperiment = function(experimentIdentifier, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listSamplesForExperiment", - "params" : [ this.getSession(), experimentIdentifier ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listSamplesForExperimentOnBehalfOfUser(String, String, String) - * @method - */ -openbis.prototype.listSamplesForExperimentOnBehalfOfUser = function(experimentIdentifier, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listSamplesForExperimentOnBehalfOfUser", - "params" : [ this.getSession(), experimentIdentifier, userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSets(String, List<Sample>) - * @method - */ -openbis.prototype.listDataSetsForSamples = function(samples, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSets", - "params" : [ this.getSession(), samples ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listExperiments(String, List<Project>, String) - * @method - */ -openbis.prototype.listExperiments = function(projects, experimentType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listExperiments", - "params" : [ this.getSession(), projects, experimentType ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listExperimentsHavingSamples(String, List<Project>, String) - * @method - */ -openbis.prototype.listExperimentsHavingSamples = function(projects, experimentType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listExperimentsHavingSamples", - "params" : [ this.getSession(), projects, experimentType ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listExperimentsHavingDataSets(String, List<Project>, String) - * @method - */ -openbis.prototype.listExperimentsHavingDataSets = function(projects, experimentType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listExperimentsHavingDataSets", - "params" : [ this.getSession(), projects, experimentType ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.filterExperimentsVisibleToUser(String, List<Experiment>, String) - * @method - */ -openbis.prototype.filterExperimentsVisibleToUser = function(allExperiments, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "filterExperimentsVisibleToUser", - "params" : [ this.getSession(), allExperiments, userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSetsForSample(String, Sample, boolean) - * @method - */ -openbis.prototype.listDataSetsForSample = function(sample, restrictToDirectlyConnected, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSetsForSample", - "params" : [ this.getSession(), sample, restrictToDirectlyConnected ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataStores(String) - * @method - */ -openbis.prototype.listDataStores = function(action) { - this._internal.listDataStores(action); -} - -/** - * @see IGeneralInformationService.getDefaultPutDataStoreBaseURL(String) - * @method - */ -openbis.prototype.getDefaultPutDataStoreBaseURL = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getDefaultPutDataStoreBaseURL", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.tryGetDataStoreBaseURL(String) - * @method - */ -openbis.prototype.tryGetDataStoreBaseURL = function(dataSetCode, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "tryGetDataStoreBaseURL", - "params" : [ this.getSession(), dataSetCode ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.getDataStoreBaseURLs(String, List<String>) - * @method - */ -openbis.prototype.getDataStoreBaseURLs = function(dataSetCodes, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getDataStoreBaseURLs", - "params" : [ this.getSession(), dataSetCodes ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSetTypes(String) - * @method - */ -openbis.prototype.listDataSetTypes = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSetTypes", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listSampleTypes(String) - * @method - */ -openbis.prototype.listSampleTypes = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listSampleTypes", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listExperimentTypes(String) - * @method - */ -openbis.prototype.listExperimentTypes = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listExperimentTypes", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listVocabularies(String) - * @method - */ -openbis.prototype.listVocabularies = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listVocabularies", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listPropertyTypes(String, boolean withRelations) - * @method - */ -openbis.prototype.listPropertyTypes = function(withRelations, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listPropertyTypes", - "params" : [ this.getSession() , withRelations] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.generateCode(String, String prefix, EntityKind entityKind); - * @method - */ -openbis.prototype.generateCode = function(prefix, entityKind, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "generateCode", - "params" : [ this.getSession() , prefix, entityKind] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSets(String, List<Sample>, EnumSet<Connections>) - * @method - */ -openbis.prototype.listDataSetsForSamplesWithConnections = function(samples, connectionsToGet, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSets", - "params" : [ this.getSession(), samples, connectionsToGet ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSetsOnBehalfOfUser(String, List<Sample>, EnumSet<Connections>, String) - * @method - */ -openbis.prototype.listDataSetsForSamplesOnBehalfOfUser = function(samples, connectionsToGet, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSetsOnBehalfOfUser", - "params" : [ this.getSession(), samples, connectionsToGet, userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSetsForExperiments(String, List<Experiment>, EnumSet<Connections>) - * @method - */ -openbis.prototype.listDataSetsForExperiments = function(experiments, connectionsToGet, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSetsForExperiments", - "params" : [ this.getSession(), experiments, connectionsToGet ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listDataSetsForExperimentsOnBehalfOfUser(String, List<Experiment>, EnumSet<Connections>, String) - * @method - */ -openbis.prototype.listDataSetsForExperimentsOnBehalfOfUser = function(experiments, connectionsToGet, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDataSetsForExperimentsOnBehalfOfUser", - "params" : [ this.getSession(), experiments, connectionsToGet, userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.getDataSetMetaData(String, List<String>) - * @method - */ -openbis.prototype.getDataSetMetaData = function(dataSetCodes, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getDataSetMetaData", - "params" : [ this.getSession(), dataSetCodes ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.getDataSetMetaData(String, List<String>, EnumSet<DataSetFetchOption>) - * @method - */ -openbis.prototype.getDataSetMetaDataWithFetchOptions = function(dataSetCodes, fetchOptions, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getDataSetMetaData", - "params" : [ this.getSession(), dataSetCodes, fetchOptions ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForDataSets(String, SearchCriteria) - * @method - */ -openbis.prototype.searchForDataSets = function(searchCriteria, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "searchForDataSets", - "params" : [ this.getSession(), - searchCriteria ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForDataSetsOnBehalfOfUser(String, SearchCriteria, String) - * @method - */ -openbis.prototype.searchForDataSetsOnBehalfOfUser = function(searchCriteria, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "searchForDataSetsOnBehalfOfUser", - "params" : [ this.getSession(), - searchCriteria, - userId ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchOnSearchDomain(String, String, String, Map<String, String>) - * @method - */ -openbis.prototype.searchOnSearchDomain = function(preferredSearchDomainOrNull, searchString, optionalParametersOrNull, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "searchOnSearchDomain", - "params" : [ this.getSession(), - preferredSearchDomainOrNull, - searchString, optionalParametersOrNull ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listAvailableSearchDomains(String) - * @method - */ -openbis.prototype.listAvailableSearchDomains = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listAvailableSearchDomains", - "params" : [ this.getSession()] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.filterDataSetsVisibleToUser(String, List<DataSet>, String) - * @method - */ -openbis.prototype.filterDataSetsVisibleToUser = function(allDataSets, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "filterDataSetsVisibleToUser", - "params" : [ this.getSession(), - allDataSets, - userId ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listExperiments(String, List<String>) - * @method - */ -openbis.prototype.listExperimentsForIdentifiers = function(experimentIdentifiers, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listExperiments", - "params" : [ this.getSession(), - experimentIdentifiers ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForExperiments(String, SearchCriteria) - * @method - */ -openbis.prototype.searchForExperiments = function(searchCriteria, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "searchForExperiments", - "params" : [ this.getSession(), - searchCriteria ] }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listProjects(String) - * @method - */ -openbis.prototype.listProjects = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listProjects", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listProjectsOnBehalfOfUser(String, String) - * @method - */ -openbis.prototype.listProjectsOnBehalfOfUser = function(userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listProjectsOnBehalfOfUser", - "params" : [ this.getSession(), userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.getMaterialByCodes(String, List<MaterialIdentifier>) - * @method - */ -openbis.prototype.getMaterialByCodes = function(materialIdentifiers, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getMaterialByCodes", - "params" : [ this.getSession(), materialIdentifiers ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.searchForMaterials(String, SearchCriteria) - * @method - */ -openbis.prototype.searchForMaterials = function(searchCriteria, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "searchForMaterials", - "params" : [ this.getSession(), searchCriteria ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listMetaprojects(String) - * @method - */ -openbis.prototype.listMetaprojects = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listMetaprojects", - "params" : [ this.getSession() ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listMetaprojectsOnBehalfOfUser(String, String) - * @method - */ -openbis.prototype.listMetaprojectsOnBehalfOfUser = function(userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listMetaprojectsOnBehalfOfUser", - "params" : [ this.getSession(), userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.getMetaproject(String, IMetaprojectId) - * @method - */ -openbis.prototype.getMetaproject = function(metaprojectId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getMetaproject", - "params" : [ this.getSession(), metaprojectId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.getMetaprojectOnBehalfOfUser(String, IMetaprojectId, String) - * @method - */ -openbis.prototype.getMetaprojectOnBehalfOfUser = function(metaprojectId, userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getMetaprojectOnBehalfOfUser", - "params" : [ this.getSession(), metaprojectId, userId ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listAttachmentsForProject(String, IProjectId, boolean) - * @method - */ -openbis.prototype.listAttachmentsForProject = function(projectId, allVersions, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listAttachmentsForProject", - "params" : [ this.getSession(), projectId, allVersions ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listAttachmentsForExperiment(String, IExperimentId, boolean) - * @method - */ -openbis.prototype.listAttachmentsForExperiment = function(experimentId, allVersions, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listAttachmentsForExperiment", - "params" : [ this.getSession(), experimentId, allVersions ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationService.listAttachmentsForSample(String, ISampleId, boolean) - * @method - */ -openbis.prototype.listAttachmentsForSample = function(sampleId, allVersions, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listAttachmentsForSample", - "params" : [ this.getSession(), sampleId, allVersions ] - }, - success: action - }); -} - - -/** - * @see GeneralInformationService.getUserDisplaySettings(String) - * @method - */ -openbis.prototype.getUserDisplaySettings = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "getUserDisplaySettings", - "params" : [ this.getSession()] }, - success: action - }); -} - -/** - * @see GeneralInformationService.listDeletions(String, EnumSet<DeletionFetchOption>) - * @method - */ -openbis.prototype.listDeletions = function(fetchOptions, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listDeletions", - "params" : [ this.getSession(), - fetchOptions ] }, - success: action - }); -} - -/** - * @see GeneralInformationService.listPersons(String) - * @method - */ -openbis.prototype.listPersons = function(action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "listPersons", - "params" : [ this.getSession() ] }, - success: action - }); -} - -/** - * @see GeneralInformationService.countNumberOfSamplesForType(String, String) - * @method - */ -openbis.prototype.countNumberOfSamplesForType = function(sampleTypeCode, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoServiceUrl, - data: { "method" : "countNumberOfSamplesForType", - "params" : [ this.getSession(), - sampleTypeCode ] }, - success: action - }); -} - -/** - * ========================================================================================== - * ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationChangingService methods - * ========================================================================================== - */ - -/** - * @see IGeneralInformationChangingService.updateSampleProperties(String, long, Map<String,String>) - * @method - */ -openbis.prototype.updateSampleProperties = function(sampleId, properties, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "updateSampleProperties", - "params" : [ this.getSession(), sampleId, properties ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.addUnofficialVocabularyTerm(String, Long, NewVocabularyTerm) - * @method - */ -openbis.prototype.addUnofficialVocabularyTerm = function(vocabularyId, term, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "addUnofficialVocabularyTerm", - "params" : [ this.getSession(), vocabularyId, term ] - }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.getWebAppSettings(String, String) - * @method - */ -openbis.prototype.getWebAppSettings = function(webappId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "getWebAppSettings", - params : [ this.getSession(), webappId ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.setWebAppSettings(String, WebAppSettings) - * @method - */ -openbis.prototype.setWebAppSettings = function(webappSettings, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "setWebAppSettings", - params : [ this.getSession(), webappSettings ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.createMetaproject(String, String, String) - * @method - */ -openbis.prototype.createMetaproject = function(name, descriptionOrNull, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "createMetaproject", - params : [ this.getSession(), name, descriptionOrNull ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.updateMetaproject(String, IMetaprojectId, String, String) - * @method - */ -openbis.prototype.updateMetaproject = function(metaprojectId, name, descriptionOrNull, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "updateMetaproject", - params : [ this.getSession(), metaprojectId, name, descriptionOrNull ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deleteMetaproject(String, IMetaprojectId) - * @method - */ -openbis.prototype.deleteMetaproject = function(metaprojectId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deleteMetaproject", - params : [ this.getSession(), metaprojectId ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.addToMetaproject(String, IMetaprojectId, MetaprojectAssignmentsIds) - * @method - */ -openbis.prototype.addToMetaproject = function(metaprojectId, assignmentsToAdd, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "addToMetaproject", - params : [ this.getSession(), metaprojectId, assignmentsToAdd ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.removeFromMetaproject(String, IMetaprojectId, MetaprojectAssignmentsIds) - * @method - */ -openbis.prototype.removeFromMetaproject = function(metaprojectId, assignmentsToRemove, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "removeFromMetaproject", - params : [ this.getSession(), metaprojectId, assignmentsToRemove ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.registerSamples(String, String, String, String) - * @method - */ -openbis.prototype.registerSamples = function(sampleTypeCode, sessionKey, defaultGroupIdentifier, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "registerSamples", - "params" : [ this.getSession(), - sampleTypeCode, - sessionKey, - defaultGroupIdentifier] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.updateSamples(String, String, String, String) - * @method - */ -openbis.prototype.updateSamples = function(sampleTypeCode, sessionKey, defaultGroupIdentifier, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "updateSamples", - "params" : [ this.getSession(), - sampleTypeCode, - sessionKey, - defaultGroupIdentifier] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.uploadedSamplesInfo(String, String, String) - * @method - */ -openbis.prototype.uploadedSamplesInfo = function(sampleTypeCode, sessionKey, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "uploadedSamplesInfo", - "params" : [ this.getSession(), - sampleTypeCode, - sessionKey] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deleteProjects(String, List<Long>, String) - * @method - */ -openbis.prototype.deleteProjects = function(projectIds, reason, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deleteProjects", - "params" : [ this.getSession(), - projectIds, - reason] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deleteExperiments(String, List<Long>, String, DeletionType) - * @method - */ -openbis.prototype.deleteExperiments = function(experimentIds, reason, deletionType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deleteExperiments", - "params" : [ this.getSession(), - experimentIds, - reason, - deletionType ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deleteSamples(String, List<Long>, String, DeletionType) - * @method - */ -openbis.prototype.deleteSamples = function(sampleIds, reason, deletionType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deleteSamples", - "params" : [ this.getSession(), - sampleIds, - reason, - deletionType ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deleteDataSets(String, List<String>, String, DeletionType) - * @method - */ -openbis.prototype.deleteDataSets = function(dataSetCodes, reason, deletionType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deleteDataSets", - "params" : [ this.getSession(), - dataSetCodes, - reason, - deletionType ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deleteDataSetsForced(String, List<String>, String, DeletionType) - * @method - */ -openbis.prototype.deleteDataSetsForced = function(dataSetCodes, reason, deletionType, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deleteDataSetsForced", - "params" : [ this.getSession(), - dataSetCodes, - reason, - deletionType ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.revertDeletions(String, List<Long>) - * @method - */ -openbis.prototype.revertDeletions = function(deletionIds, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "revertDeletions", - "params" : [ this.getSession(), - deletionIds ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deletePermanently(String, List<Long>) - * @method - */ -openbis.prototype.deletePermanently = function(deletionIds, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deletePermanently", - "params" : [ this.getSession(), - deletionIds ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.deletePermanentlyForced(String, List<Long>) - * @method - */ -openbis.prototype.deletePermanentlyForced = function(deletionIds, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "deletePermanentlyForced", - "params" : [ this.getSession(), - deletionIds ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.registerPerson(String, String) - * @method - */ -openbis.prototype.registerPerson = function(userId, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "registerPerson", - "params" : [ this.getSession(), - userId ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.registerSpace(String, String, String) - * @method - */ -openbis.prototype.registerSpace = function(spaceCode, spaceDescription, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "registerSpace", - "params" : [ this.getSession(), - spaceCode, - spaceDescription ] }, - success: action - }); -} - -/** - * @see IGeneralInformationChangingService.registerPersonSpaceRole(String, String, String, String) - * @method - */ -openbis.prototype.registerPersonSpaceRole = function(spaceCode, userID, roleCode, action) { - this._internal.ajaxRequest({ - url: this._internal.generalInfoChangingServiceUrl, - data: { "method" : "registerPersonSpaceRole", - "params" : [ this.getSession(), - spaceCode, - userID, - roleCode ] }, - success: action - }); -} - -/** - * ============================================================================ - * ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.IQueryApiServer methods - * ============================================================================ - */ - -/** - * @see IQueryApiServer.listQueries(String) - * @method - */ -openbis.prototype.listQueries = function(action) { - this._internal.ajaxRequest({ - url: this._internal.queryServiceUrl, - data: { "method" : "listQueries", - "params" : [ this.getSession() ] }, - success: action - }); -} - -/** - * @see IQueryApiServer.executeQuery(String, long, Map<String, String>) - * @method - */ -openbis.prototype.executeQuery = function(queryId, parameterBindings, action) { - this._internal.ajaxRequest({ - url: this._internal.queryServiceUrl, - data: { "method" : "executeQuery", - "params" : [ this.getSession(), queryId, parameterBindings ] }, - success: action - }); -} - -/** - * @see IQueryApiServer.listTableReportDescriptions(String) - * @method - */ -openbis.prototype.listTableReportDescriptions = function(action) { - this._internal.ajaxRequest({ - url: this._internal.queryServiceUrl, - data: { "method" : "listTableReportDescriptions", - "params" : [ this.getSession() ] }, - success: action - }); -} - -/** - * @see IQueryApiServer.createReportFromDataSets(String, String, String, List<String>) - * @method - */ -openbis.prototype.createReportFromDataSets = function(dataStoreCode, serviceKey, dataSetCodes, action) { - this._internal.ajaxRequest({ - url: this._internal.queryServiceUrl, - data: { "method" : "createReportFromDataSets", - params : [ this.getSession(), dataStoreCode, serviceKey, dataSetCodes ] }, - success: action - }); -} - -/** - * @see IQueryApiServer.listAggregationServices(String) - * @method - */ -openbis.prototype.listAggregationServices = function(action) { - this._internal.ajaxRequest({ - url: this._internal.queryServiceUrl, - data: { "method" : "listAggregationServices", - params : [ this.getSession() ] }, - success: action - }); -} - -/** - * @see IQueryApiServer.createReportFromAggregationService(String, String, String, Map<String, Object>) - * @method - */ -openbis.prototype.createReportFromAggregationService = function(dataStoreCode, serviceKey, parameters, action) { - this._internal.ajaxRequest({ - url: this._internal.queryServiceUrl, - data: { "method" : "createReportFromAggregationService", - params : [ this.getSession(), dataStoreCode, serviceKey, parameters ] }, - success: action - }); -} - - -/** - * ============================================================================== - * ch.systemsx.cisd.openbis.generic.shared.api.v1.IWebInformationService methods - * ============================================================================== - */ - -/** - * Returns the current server side session. - * - * @see IWebInformationService.getSessionToken() - * @method - */ -openbis.prototype.getSessionTokenFromServer = function(action) { - this._internal.ajaxRequest({ - url: this._internal.webInfoServiceUrl, - data: { "method" : "getSessionToken" }, - success: action - }); -} - -/** - * ================================================================================= - * ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.IDssServiceRpcGeneric methods - * ================================================================================= - */ - -/** - * @see IDssServiceRpcGeneric.listFilesForDataSet(String, DataSetFileDTO) - * @method - */ -openbis.prototype.listFilesForDataSetFile = function(fileOrFolder, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(fileOrFolder.dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "listFilesForDataSet", - "params" : [ openbisObj.getSession(), fileOrFolder ] }, - success: action - }); - }); -} - -/** - * @see IDssServiceRpcGeneric.getDownloadUrlForFileForDataSet(String, DataSetFileDTO) - * @method - */ -openbis.prototype.getDownloadUrlForFileForDataSetFile = function(fileOrFolder, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(fileOrFolder.dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "getDownloadUrlForFileForDataSet", - "params" : [ openbisObj.getSession(), fileOrFolder ] }, - success: action - }); - }); -} - -/** - * Returns a download url that is valid as long as the user session is valid. - * @method - */ -openbis.prototype.getDownloadUrlForFileForDataSetFileInSession = function(fileOrFolder, action) { - this.getDownloadUrlForFileForDataSetInSession(fileOrFolder.dataSetCode, fileOrFolder.path, action); -} - -/** - * @see IDssServiceRpcGeneric.getDownloadUrlForFileForDataSetWithTimeout(String, DataSetFileDTO, long) - * @method - */ -openbis.prototype.getDownloadUrlForFileForDataSetFileWithTimeout = function(fileOrFolder, validityDurationInSeconds, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(fileOrFolder.dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "getDownloadUrlForFileForDataSetWithTimeout", - "params" : [ openbisObj.getSession(), fileOrFolder, validityDurationInSeconds ] }, - success: action - }); - }); -} - -/** - * @see IDssServiceRpcGeneric.listFilesForDataSet(String, String, String, boolean) - * @method - */ -openbis.prototype.listFilesForDataSet = function(dataSetCode, path, recursive, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "listFilesForDataSet", - "params" : [ openbisObj.getSession(), dataSetCode, path, recursive ] }, - success: action - }); - }); -} - -/** - * @see IDssServiceRpcGeneric.getDownloadUrlForFileForDataSet(String, String, String) - * @method - */ -openbis.prototype.getDownloadUrlForFileForDataSet = function(dataSetCode, path, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "getDownloadUrlForFileForDataSet", - "params" : [ openbisObj.getSession(), dataSetCode, path ] }, - success: action - }); - }); -} - -/** - * Returns a download url that is valid as long as the user session is valid. - * @method - */ -openbis.prototype.getDownloadUrlForFileForDataSetInSession = function(dataSetCode, path, action) { - var openbisObj = this; - this._internal.getDataStoreUrlForDataSetCode(dataSetCode, function(dataStoreUrl){ - var pathWithoutSlash = path.charAt(0) == "/" ? path.substr(1) : path; - var url = dataStoreUrl + "/" + dataSetCode + "/" + pathWithoutSlash + "?sessionID=" + openbisObj.getSession(); - action(url); - }); -} - -/** - * @see IDssServiceRpcGeneric.getDownloadUrlForFileForDataSetWithTimeout(String, String, String, long) - * @method - */ -openbis.prototype.getDownloadUrlForFileForDataSetWithTimeout = function(dataSetCode, path, validityDurationInSeconds, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "getDownloadUrlForFileForDataSetWithTimeout", - "params" : [ openbisObj.getSession(), dataSetCode, path, validityDurationInSeconds ] }, - success: action - }); - }); -} - -/** - * Creates a session workspace file uploader inside the specified uploaderContainer element and for the default data store. - * @method - */ -openbis.prototype.createSessionWorkspaceUploader = function(uploaderContainer, oncomplete, uploaderSettings){ - this.createSessionWorkspaceUploaderForDataStore(uploaderContainer, null, oncomplete, uploaderSettings); -} - -/** - * Creates a session workspace file uploader inside the specified uploaderContainer element and for the specified data store. - * @method - */ -openbis.prototype.createSessionWorkspaceUploaderForDataStore = function(uploaderContainer, dataStoreCodeOrNull, oncomplete, uploaderSettings){ - var uploaderSupported = window.File && window.FileReader && window.XMLHttpRequest; - - if(!uploaderSupported){ - alert("Uploader is not supported by your browser."); - return; - } - - var $this = this; - this._internal.getDataStoreUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreUrl){ - // figure out what is the location of the openbis.js script and assume that uploader resources are served by the same server - var openbisScriptLocation = $('script[src*=openbis\\.js]').attr('src'); - var uploaderDirectoryLocation = jsFileLocation = openbisScriptLocation.replace(/js\/v1\/openbis\.js/g, 'uploader'); - - $('head').append('<link rel="stylesheet" media="screen" type="text/css" href="' + uploaderDirectoryLocation + '/css/src/upload.css" />'); - $('head').append('<script charset="utf-8" type="text/javascript" src="' + uploaderDirectoryLocation + '/js/src/upload.js" />'); - - $(uploaderContainer).load(uploaderDirectoryLocation + "/index.html", function(){ - var finalSettings = { - smart_mode: true, - chunk_size: 1000*1024, - file_upload_url: dataStoreUrl + "/session_workspace_file_upload", - form_upload_url: dataStoreUrl + "/session_workspace_form_upload", - file_download_url: dataStoreUrl + "/session_workspace_file_download", - oncomplete: oncomplete, - sessionID: $this.getSession() - }; - - if(uploaderSettings) { - for(var key in uploaderSettings) { - finalSettings[key] = uploaderSettings[key]; - } - } - - Uploader.init(finalSettings); - }); - }); -} - -/** - * Creates a session workspace download url for a file with the specified filePath and for the default data store. - * @method - */ -openbis.prototype.createSessionWorkspaceDownloadUrl = function(filePath, action){ - return this.createSessionWorkspaceDownloadUrlForDataStore(filePath, null, action); -} - -/** - * Creates a session workspace download url for a file with the specified filePath and for the specified data store. - * @method - */ -openbis.prototype.createSessionWorkspaceDownloadUrlForDataStore = function(filePath, dataStoreCodeOrNull, action){ - var openbisObj = this; - - this._internal.getDataStoreUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreUrl){ - var downloadUrl = dataStoreUrl + "/session_workspace_file_download?sessionID=" + openbisObj.getSession() + "&filePath=" + filePath; - action(downloadUrl); - }); -} - -/** - * Create a session workspace download link for a file with the specified filePath at the default data store. - * @method - */ -openbis.prototype.createSessionWorkspaceDownloadLink = function(filePath, linkText, action){ - return this.createSessionWorkspaceDownloadLinkForDataStore(filePath, linkText, null, action); -} - -/** - * Create a session workspace download link for a file with the specified filePath at the specified data store. - * @method - */ -openbis.prototype.createSessionWorkspaceDownloadLinkForDataStore = function(filePath, linkText, dataStoreCodeOrNull, action){ - this.createSessionWorkspaceDownloadUrlForDataStore(filePath, dataStoreCodeOrNull, function(downloadUrl){ - var link = $("<a href='" + downloadUrl + "'>" + (linkText ? linkText : filePath) + "</a>"); - action(link); - }); -} - -/** - * Downloads a session workspace file with the specified filePath from the default data store. - * @method - */ -openbis.prototype.downloadSessionWorkspaceFile = function(filePath, action) { - this.downloadSessionWorkspaceFileForDataStore(filePath, null, action); -} - -/** - * Downloads a session workspace file with the specified filePath from the specified data store. - * @method - */ -openbis.prototype.downloadSessionWorkspaceFileForDataStore = function(filePath, dataStoreCodeOrNull, action) { - var openbisObj = this; - - this.createSessionWorkspaceDownloadUrlForDataStore(filePath, dataStoreCodeOrNull, function(downloadUrl){ - $.ajax({ - type: "GET", - dataType: "text", - url: downloadUrl, - success: openbisObj._internal.ajaxRequestSuccess(action), - error: openbisObj._internal.ajaxRequestError(action) - }); - }); -} - -/** - * Deletes a session workspace file with the specified filePath from the default data store. - * @method - */ -openbis.prototype.deleteSessionWorkspaceFile = function(filePath, action) { - this.deleteSessionWorkspaceFileForDataStore(filePath, null, action) -} - -/** - * Deletes a session workspace file with the specified filePath from the specified data store. - * @method - */ -openbis.prototype.deleteSessionWorkspaceFileForDataStore = function(filePath, dataStoreCodeOrNull, action) { - var openbisObj = this; - - this._internal.getDataStoreApiUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { - "method" : "deleteSessionWorkspaceFile", - "params" : [ openbisObj.getSession(), filePath ] - }, - success: action - }); - }); -} - -/** - * @see IDssServiceRpcGeneric.getPathToDataSet(String, String, String) - * @method - */ -openbis.prototype.getPathToDataSet = function(dataSetCode, overrideStoreRootPathOrNull, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "getPathToDataSet", - "params" : [ openbisObj.getSession(), dataSetCode, overrideStoreRootPathOrNull ] }, - success: action - }); - }); -} - -/** - * @see IDssServiceRpcGeneric.tryGetPathToDataSet(String, String, String) - * @method - */ -openbis.prototype.tryGetPathToDataSet = function(dataSetCode, overrideStoreRootPathOrNull, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "tryGetPathToDataSet", - "params" : [ openbisObj.getSession(), dataSetCode, overrideStoreRootPathOrNull ] }, - success: action - }); - }); -} - -/** - * List shares from the default data store. - * - * @see IDssServiceRpcGeneric.listAllShares(String) - * @method - */ -openbis.prototype.listAllShares = function(action) { - this.listAllSharesForDataStore(null, action); -} - -/** - * List shares from the specified data store. - * - * @see IDssServiceRpcGeneric.listAllShares(String) - * @method - */ -openbis.prototype.listAllSharesForDataStore = function(dataStoreCodeOrNull, action) { - var openbisObj = this; - - this._internal.getDataStoreApiUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { - "method" : "listAllShares", - "params" : [ openbisObj.getSession() ] - }, - success: action - }); - }); -} - -/** - * @see IDssServiceRpcGeneric.shuffleDataSet(String, String, String) - * @method - */ -openbis.prototype.shuffleDataSet = function(dataSetCode, shareId, action) { - var openbisObj = this; - this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { "method" : "shuffleDataSet", - "params" : [ openbisObj.getSession(), dataSetCode, shareId ] }, - success: action - }); - }); -} - -/** - * Get a validation script from the default data store. - * - * @see IDssServiceRpcGeneric.getValidationScript(String, String) - * @method - */ -openbis.prototype.getValidationScript = function(dataSetTypeOrNull, action) { - this.getValidationScriptForDataStore(dataSetTypeOrNull, null, action); -} - -/** - * Get a validation script from the specified data store. - * - * @see IDssServiceRpcGeneric.getValidationScript(String, String) - * @method - */ -openbis.prototype.getValidationScriptForDataStore = function(dataSetTypeOrNull, dataStoreCodeOrNull, action) { - var openbisObj = this; - - this._internal.getDataStoreApiUrlForDataStoreCode(dataStoreCodeOrNull, function(dataStoreApiUrl){ - openbisObj._internal.ajaxRequest({ - url: dataStoreApiUrl, - data: { - "method" : "getValidationScript", - "params" : [ openbisObj.getSession(), dataSetTypeOrNull ] - }, - success: action - }); - }); -} - -/** - * Get a url that will produce a graph with the given configuration at the default data store. - * - * @method - */ -openbis.prototype.getGraphUrl = function(graphConfig, action) { - this.getGraphUrlForDataStore(graphConfig, null, action); -} - -/** - * Get a url that will produce a graph with the given configuration at the specified data store. - * - * @method - */ -openbis.prototype.getGraphUrlForDataStore = function(graphConfig, dataStoreCodeOrNull, action) { - var openbisObj = this; - - this._internal.getDataStoreHostForDataStoreCode(dataStoreCodeOrNull, function(dataStoreHost) { - var graphUrl = dataStoreHost + "/graphservice/?sessionID=" + openbisObj.getSession(); - for (prop in graphConfig) { - graphUrl += "&" + prop + "=" + encodeURIComponent(graphConfig[prop]); - } - action(graphUrl); - }); -} - -/** - * ===================== - * OpenBIS graph config - * ===================== - * - * Defines the configuration for a graph generated by the server's graphservice. - * - * To use, set properties on the object with keys that match the name of the servlet - * parameters of the graphservice and then call the method getGraphUrl on the openbis - * object. Do *not* set the sessionID paramter -- this will be filled in by the openbis - * object. - * - * The graphservice is documented here: https://wiki-bsse.ethz.ch/display/openBISDoc/Configuring+Graphs+and+Plots - * - * @class - * - */ -function openbisGraphConfig(filename, graphtype, title) { - this.file = filename; - this["graph-type"] = graphtype; - this.title = title; -} - - -/** - * ===================================================== - * OpenBIS webapp context internal code (DO NOT USE!!!) - * ===================================================== - */ - -function _openbisWebAppContextInternal(){ - this.webappCode = this.getParameter("webapp-code"); - this.sessionId = this.getParameter("session-id"); - this.entityKind = this.getParameter("entity-kind"); - this.entityType = this.getParameter("entity-type"); - this.entityIdentifier = this.getParameter("entity-identifier"); - this.entityPermId = this.getParameter("entity-perm-id"); -} - -_openbisWebAppContextInternal.prototype.getParameter = function(parameterName){ - var match = location.search.match(RegExp("[?|&]"+parameterName+'=(.+?)(&|$)')); - if(match && match[1]){ - return decodeURIComponent(match[1].replace(/\+/g,' ')); - }else{ - return null; - } -} - -/** - * ======================= - * OpenBIS webapp context - * ======================= - * - * Provides a context information for webapps that are embedded inside the OpenBIS UI. - * - * @class - * - */ -function openbisWebAppContext(){ - this._internal = new _openbisWebAppContextInternal(); -} - -openbisWebAppContext.prototype.getWebappCode = function(){ - return this._internal.webappCode; -} - -openbisWebAppContext.prototype.getSessionId = function(){ - return this._internal.sessionId; -} - -openbisWebAppContext.prototype.getEntityKind = function(){ - return this._internal.entityKind; -} - -openbisWebAppContext.prototype.getEntityType = function(){ - return this._internal.entityType; -} - -openbisWebAppContext.prototype.getEntityIdentifier = function(){ - return this._internal.entityIdentifier; -} - -openbisWebAppContext.prototype.getEntityPermId = function(){ - return this._internal.entityPermId; -} - -openbisWebAppContext.prototype.getParameter = function(parameterName){ - return this._internal.getParameter(parameterName); -} - -/** - * ======================= - * OpenBIS Search Criteria - * ======================= - * - * Methods and classes for constructing search criteria objects for use in searches. - */ - -/** - * It is easier to construct instances of match clauses using one of the factory methods: - * - * createPropertyMatch - * createAttributeMatch - * createTimeAttributeMatch - * createAnyPropertyMatch - * createAnyFieldMatch - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause - * @class - */ -function SearchCriteriaMatchClause(type, fieldType, fieldCode, desiredValue) { - this["@type"] = type; - this["fieldType"] = fieldType; - this["fieldCode"] = fieldCode; - this["desiredValue"] = desiredValue; - // compareMode should be one of "LESS_THAN_OR_EQUAL", "EQUALS", "GREATER_THAN_OR_EQUAL" - this["compareMode"] = "EQUALS"; -} - -/** - * Factory method to create a match for a property. - * - * @param propertyCode The code of the property to compare against - * @param desiredValue The value used in the comparison - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause.createPropertyMatch(String, String) - * @method - */ -SearchCriteriaMatchClause.createPropertyMatch = function(propertyCode, desiredValue) { - var matchClause = new SearchCriteriaMatchClause("PropertyMatchClause", "PROPERTY", propertyCode, desiredValue); - matchClause["propertyCode"] = propertyCode; - return matchClause; -} - -/** - * Factory method to create a match for an attribute. - * - * @param attribute Should be a valid ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClauseAttribute. - * It should come from this list: - * // common - * "CODE", "TYPE", "PERM_ID", - * // for sample or experiment - * "SPACE", - * // for experiment - * "PROJECT", - * // for all types of entities - * "METAPROJECT" - * @param desiredValue The value used in the comparison - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause.createAttributeMatch(MatchClauseAttribute, String) - * @method - */ -SearchCriteriaMatchClause.createAttributeMatch = function(attribute, desiredValue) { - var matchClause = new SearchCriteriaMatchClause("AttributeMatchClause", "ATTRIBUTE", attribute, desiredValue); - matchClause["attribute"] = attribute; - return matchClause; -} - -/** - * Factory method to create a MatchClause matching against registration or modification - * date. - * - * @param attribute Should be a valid ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClauseTimeAttribute - * It should come from this list: REGISTRATION_DATE, MODIFICATION_DATE - * - * @param mode One of "LESS_THAN_OR_EQUAL", "EQUALS", "GREATER_THAN_OR_EQUAL" - * @param date The date to compare against, format YYYY-MM-DD - * @timezone The time zone of the date ("+1", "-5", "0", etc.) - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause.createAttributeMatch(MatchClauseTimeAttribute, CompareMode, String, String) - * @method - */ -SearchCriteriaMatchClause.createTimeAttributeMatch = function(attribute, mode, date, timezone) -{ - var matchClause = new SearchCriteriaMatchClause("TimeAttributeMatchClause", "ATTRIBUTE", attribute, date); - matchClause["attribute"] = attribute; - matchClause["compareMode"] = mode; - matchClause["timeZone"] = timezone; - return matchClause; -} - -/** - * Factory method to create a match for against any property. - * - * @param desiredValue The value used in the comparison - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause.createAnyPropertyMatch(String) - * @method - */ -SearchCriteriaMatchClause.createAnyPropertyMatch = function(desiredValue) { - var matchClause = new SearchCriteriaMatchClause("AnyPropertyMatchClause", "ANY_PROPERTY", null, desiredValue); - return matchClause; -} - -/** - * Factory method to create a match for against any field (property or attribute). - * - * @param desiredValue The value used in the comparison - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause.createAnyFieldMatch(String) - * @method - */ -SearchCriteriaMatchClause.createAnyFieldMatch = function(desiredValue) { - var matchClause = new SearchCriteriaMatchClause("AnyFieldMatchClause", "ANY_FIELD", null, desiredValue); - return matchClause; -} - -/** - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria - * @class - */ -function SearchCriteria() { - this["@type"] = "SearchCriteria"; - // operator should be either of "MATCH_ALL_CLAUSES" or "MATCH_ANY_CLAUSES" - this["operator"] = "MATCH_ALL_CLAUSES"; - this["matchClauses"] = []; - this["subCriterias"] = []; -} - -/** - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.addMatchClause(MatchClause) - * @method - */ -SearchCriteria.prototype.addMatchClause = function(matchClause) { - this["matchClauses"].push(matchClause); -}; - -/** - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.addSubCriteria(SearchSubCriteria) - * @method - */ -SearchCriteria.prototype.addSubCriteria = function(subCriteria) { - this["subCriterias"].push(subCriteria); -}; - - -/** - * It is easier to construct instances of sub criteria using one of the factory methods: - * - * createSampleParentCriteria - * createSampleChildCriteria - * createSampleContainerCriteria - * createSampleCriteria - * createExperimentCriteria - * createDataSetContainerCriteria - * createDataSetParentCriteria - * createDataSetChildCriteria - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria - * @class - */ -function SearchSubCriteria(targetEntityKind, searchCriteria) { - this["@type"] = "SearchSubCriteria"; - this["targetEntityKind"] = targetEntityKind; - this["criteria"] = searchCriteria; -} - -/** - * Factory method to create a match for a sample parent. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createSampleParentCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createSampleParentCriteria = function(searchCriteria) { - return new SearchSubCriteria("SAMPLE_PARENT", searchCriteria) -} - -/** - * Factory method to create a match for a sample child. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createSampleChildCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createSampleChildCriteria = function(searchCriteria) { - return new SearchSubCriteria("SAMPLE_CHILD", searchCriteria) -} - -/** - * Factory method to create a match for a sample container. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createSampleContainerCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createSampleContainerCriteria = function(searchCriteria) { - return new SearchSubCriteria("SAMPLE_CONTAINER", searchCriteria) -} - -/** - * Factory method to create a match for a sample. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createSampleCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createSampleCriteria = function(searchCriteria) { - return new SearchSubCriteria("SAMPLE", searchCriteria) -} - -/** - * Factory method to create a match for an experiment. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createExperimentCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createExperimentCriteria = function(searchCriteria) { - return new SearchSubCriteria("EXPERIMENT", searchCriteria) -} - -/** - * Factory method to create a match for a data set container. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createDataSetContainerCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createDataSetContainerCriteria = function(searchCriteria) { - return new SearchSubCriteria("DATA_SET_CONTAINER", searchCriteria) -} - -/** - * Factory method to create a match for a data set parent. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createDataSetParentCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createDataSetParentCriteria = function(searchCriteria) { - return new SearchSubCriteria("DATA_SET_PARENT", searchCriteria) -} - -/** - * Factory method to create a match for a data set child. - * - * @see ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria.createDataSetChildCriteria(SearchCriteria) - * @method - */ -SearchSubCriteria.createDataSetChildCriteria = function(searchCriteria) { - return new SearchSubCriteria("DATA_SET_CHILD", searchCriteria) -} diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/config.json b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/config.json deleted file mode 100644 index 9e26dfeeb6e..00000000000 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/config.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/css/src/upload.css b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/css/src/upload.css deleted file mode 100644 index 637df1f56e0..00000000000 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/css/src/upload.css +++ /dev/null @@ -1,292 +0,0 @@ -/* -* { - margin: 0; - padding: 0; -} -html, body { - font-size: 11px; - font-family: Tahoma, Arial, sans-serif; - color: Black; - background-color: White; - -webkit-font-smoothing: antialiased; -} -body { - margin: 8px; - //opacity: 0; - border: 1px solid Black; - border-radius: 5px; - box-shadow: 0px 0px 5px #888; - -webkit-box-shadow: 0px 0px 5px #888; - -moz-box-shadow: 0px 0px 5px #888; -} -body.starting { - opacity: 1; - transition: opacity 0.3s ease; - -moz-transition: opacity 0.3s ease; - -o-transition: opacity 0.3s ease; - -webkit-transition: opacity 0.3s ease; -} -h1, h2 { - background-image: linear-gradient(bottom, Black 8%, SlateGray 89%); - background-image: -o-linear-gradient(bottom, Black 8%, SlateGray 89%); - background-image: -moz-linear-gradient(bottom, Black 8%, SlateGray 89%); - background-image: -webkit-linear-gradient(bottom, Black 8%, SlateGray 89%); - background-color: #333; - font-size: 16px; - font-weight: bold; - border-radius: 5px 5px 0 0; - color: white; - padding: 1ex 1em; -} -h2 { - margin: 0; - font-size: 12px; - border-radius: 0; -} - -h2 > a { - color: white; - text-decoration: none; -} -h2 > a:hover { - color: white; - text-decoration: underline; -} -h2 > a:visited { - color: white; -} -a { - color: #222; -} -a:visited { - color: #444; -} -a:hover { - color: #000; -} -button { - box-shadow: inset 0 0 1px white; - cursor: pointer; - border-radius: 2px; - border-top: 1px solid #ccc; - border-left: 1px solid #aaa; - border-right: 1px solid #999; - border-bottom: 1px solid #888; - background-color: #e0e0e0; - background-image: linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); - background-image: -o-linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); - background-image: -moz-linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); - background-image: -webkit-linear-gradient(bottom, rgb(200,200,200) 8%, rgb(250,250,250) 89%); - font-family: Tahoma, Arial, sans-serif; - padding: 0.5ex 0.5em; - font-size: 12px; - margin: 1ex 0; -} -button:hover { - background-image: linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); - background-image: -o-linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); - background-image: -moz-linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); - background-image: -webkit-linear-gradient(bottom, rgb(220,220,220) 8%, rgb(255,255,255) 89%); -} -*/ -#filedrop { - color: #000; - transition: background-color 0.25s linear; - -moz-transition: background-color 0.25s linear; - -o-transition: background-color 0.25s linear; - -webkit-transition: background-color 0.25s linear; -} -#filedrop.over { - background-color: LemonChiffon; - transition: background-color 0.25s linear; - -moz-transition: background-color 0.25s linear; - -o-transition: background-color 0.25s linear; - -webkit-transition: background-color 0.25s linear; -} -#filedrop-chooser { - display: inline-block; - text-align: center; - padding: 30px 0 0 0; -} -#filedrop-inner-box { - text-align: center; - padding-bottom: 10px; -} -#filedrop-hint { - clear: both; - text-align: center; - padding: 3ex 1em; - margin: 3ex 1em 0 1em; - color: #444; - font-size: 110%; -} -button.huge { - padding: 2ex 4em; - font-size: 13px; - font-weight: bold; -} -#filelist-container { - padding: 2ex 1em 3ex 1em; -} -#filelist { - list-style-type: none; - margin-left: 0; - line-height: 120%; - opacity: 0; - transition: opacity 0.25s linear; - -moz-transition: opacity 0.25s linear; - -o-transition: opacity 0.25s linear; - -webkit-transition: opacity 0.25s linear; -} -#filelist.visible { - opacity: 1; - transition: opacity 0.25s linear; - -moz-transition: opacity 0.25s linear; - -o-transition: opacity 0.25s linear; - -webkit-transition: opacity 0.25s linear; -} -.progressbar-container { - margin: 1px 0.5em 1px 0; - padding: 1px; - display: inline-block; - width: 50px; - height: 16px; - border: 1px solid #000; - background-color: #fff; -} -.progressbar { - display: inline-block; - height: 100%; - width: 0; - background-color: #666; - background-image: -webkit-linear-gradient(-45deg, rgba(255, 154, 26, 1) 25%, transparent 25%, transparent 50%, rgba(255, 154, 26, 1) 50%, rgba(255, 154, 26, 1) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(-45deg, rgba(255, 154, 26, 1) 25%, transparent 25%, transparent 50%, rgba(255, 154, 26, 1) 50%, rgba(255, 154, 26, 1) 75%, transparent 75%, transparent); - background-image: linear-gradient(-45deg, rgba(255, 154, 26, 1) 25%, transparent 25%, transparent 50%, rgba(255, 154, 26, 1) 50%, rgba(255, 154, 26, 1) 75%, transparent 75%, transparent); - -webkit-background-size: 24px 24px; - -moz-background-size: 24px 24px; - background-size: 24px 24px; - -webkit-box-shadow: inset 0 6px 0 rgba(255, 255, 255, .2); - -moz-box-shadow: inset 0 6px 0 rgba(255, 255, 255, .2); - box-shadow: inset 0 6px 0 rgba(255, 255, 255, .2); - -webkit-animation: move 2s linear infinite; - -moz-animation: move 2s linear infinite; - animation: move 2s linear infinite; - background-position: 0 0; -} -@-webkit-keyframes move { - 0% { background-position: 0 0; } - 100% { background-position: 24px 24px; } -} -@-moz-keyframes move { - 0% { background-position: 0 0; } - 100% { background-position: 24px 24px; } -} -@-ms-keyframes move { - 0% { background-position: 0 0; } - 100% { background-position: 24px 24px; } -} -@-keyframes move { - 0% { background-position: 0 0; } - 100% { background-position: 24px 24px; } -} -.upload { - opacity: 0; -} -#upload-form { - opacity: 0; - position: absolute; - top: 0; - left: 0; -} - -#fileinput { - display: none; -} - -#upload-icon { -} -.upload.starting { - opacity: 1; - -moz-transition: opacity 0.4s linear; - -o-transition: opacity 0.4s linear; - -webkit-transition: opacity 0.4s linear; -} -.progressbar.ready { - width: 100%; - background-color: #3c3; - background-image: none; - -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - -moz-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); -} -.progressbar.aborted { - width: 100%; - background-color: rgb(255, 128, 0); - background-image: none; - -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - -moz-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - -ms-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); -} -#filelist > li.ready { - color: #333; -} -#filelist > li.ready.fadeOut { - opacity: 0; - -moz-transition: opacity 0.25s linear; - -o-transition: opacity 0.25s linear; - -webkit-transition: opacity 0.25s linear; -} -.progressbar.bad { - width: 100%; - background-color: #c33; - background-image: none; - -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - -moz-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - -ms-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); - box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); -} -#filelist > li.bad { - color: red; -} -#filelist > li.deleted { - text-decoration: line-through; -} -#filelist > li.bad.fadeOut { - opacity: 0; - -moz-transition: opacity 0.25s linear; - -o-transition: opacity 0.25s linear; - -webkit-transition: opacity 0.25s linear; -} -#footer { - background-image: linear-gradient(bottom, Black 8%, SlateGray 89%); - background-image: -o-linear-gradient(bottom, Black 8%, SlateGray 89%); - background-image: -moz-linear-gradient(bottom, Black 8%, SlateGray 89%); - background-image: -webkit-linear-gradient(bottom, Black 8%, SlateGray 89%); - background-color: #333; - border-radius: 0 0 5px 5px; - color: #999; - padding: 1ex 1em; -} -#footer > a { - color: #ccc; - text-decoration: none; -} -.mini-button { - cursor: pointer; -} -#iframe-container { - opacity: 0; - position: absolute; - top: 0; - left: 0; - z-index: -100; -} -.delete-button { - cursor:pointer; - opacity: 0.5; - font-size: 21px; -} -.delete-button:hover { - opacity: 1; -} \ No newline at end of file diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/favicon.gif b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/favicon.gif deleted file mode 100644 index c807ac2f893eaca05219922efecb7bd6006bd531..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 225 zcmV<703QEGNk%w1VGsZi0K^{vZLjGaPkkj>hbc{M=I{8d!`L;1$~0-2Id`oih~nPn z?qq(I(%$GBe%2p`;3$2^8)Berhn^^FrYLl`8+5}eh}yK!>0+A99YA1tlByePvKvHc z8+F4Qf7d9B<NyEvA^8LW0018VEC2ui01yBW000GE;3tk`X`X000*U9kj`O++P<1%o z06>%Dl?P`?F<3+v17*m0Of=97fke1KH4_O0Q9xM`5Q*SWU?@xqM&Te31l$o*=KUUQ b?hE;SGl=jpaU~fT0~mQKh>41eBOw4g{wG^v diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/pause-button.png b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/pause-button.png deleted file mode 100644 index 1c795fa117f4aeb27927c6a23195f8f757099976..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 172 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&kmSQK*5Dp-y;YjHK@;M7UB8!3Q zuY)k7lg8`{prB-lYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt-CKE{-7@ z6O;e^|8LK%*}!@%A;pIK`p^IS4VCo_)h6}GUp2@uF_<*VgrQBIPx#PEcSE2i22WQ% Jmvv4FO#swdFnj<2 diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/play-button.png b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/play-button.png deleted file mode 100644 index b9239b63daac3cef4295ee7ea81716a7d3217ae2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 305 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&kmSQK*5Dp-y;YjHK@;M7UB8!3Q zuY)k7lg8`{prB-lYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt=03T^vI+ zCQhAX$aTm;!1X@M$y63yr6&q;2e>O3xHoPMI(W=)!-mfcaR;=Pbu3L#y}{9>(8RL8 zbxntWd8NVCbB_%-sC8<wFig8~OekAg><7!_mfW+cd>w|0#ik|N$`*PDcxGr_TG{iU zg26jsiO25qy!9N7d=nzGm>XufGu%+F>e}*2^jwEtK=|vuF(Escg^Sv{O8?gW5u10Q tY0kbRS?=AF6cT;Cf`#^NTowPAHPStC$)Sa*e}FD$@O1TaS?83{1OPrEYkvR$ diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/stop-button.png b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/stop-button.png deleted file mode 100644 index 7dd5351f9892878d7b93797514830cd10bd6e2c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&kmSQK*5Dp-y;YjHK@;M7UB8!3Q zuY)k7lg8`{prB-lYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt;NqE{-7@ z6O;e^|8LK%+0fe9*!WOKSvhc5&;S4FDM}|R*x1?vd7GV?l~;N)Gc>ew2|xQ>Vg%I4 N;OXk;vd$@?2>`w(GQI!+ diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/upload-icon.png b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/img/upload-icon.png deleted file mode 100644 index 6b4680f13079ff7c38cee24366ae49e679c5646d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3037 zcmd5;dt8#|9)Gzb0lq3Vz)P5B*s+C(3Tj74LNPTpS7vP!he~QGNf-Or_8Nt_A>m~m zaa}0Pa;uh`P1nkFSYmcT^Q?|-7IyR0EZ1^*vh+NVr*r;0|C~S0AMn2K^E|)b^Znhw z70F4l6cUpJK@de6Cr$-VEBNV%c<?W%dT<Xsu(_f{5d?j04aa@@cks<nElXFeEX+}D zm2Jv~MDoI{Y?gF`EH^tfTP812_GCvv(5ynKSd_MHFzeOybhL#{$C;r>h{(FwN9K|w zsErUTG&AHh9XbkPA(9X)IIs;8LX|m&6b@+&LLlZ9mN}Dl2L+*c^&&|py8{EE6+E?W zX9_}qur>vr0W`WoMAI9EK0skwFN=G^b$40qY<MlYIS~E~(+ty!_4skN2{l3OdTN@O z4<E!2-xZerDn0#bZC*N%q2<Dv7j5{|BSJ4+*KxBljD$x`P`Y}NHqW}0lc`y-5UScQ zLKtfAxN(#+z`C!G&%mi+#QlYe^)5Q6_TW7_&?3)<GandGsgKKU%6U{tCk*8xe7H_} z!0@FT3yHhRven<UDjv{rF`Sy4hKw2r3wto;j92F9Q#jZ%7v5+!7D8(qnAkzz^HGBj z!MU~-hnL59djsJUqWIX5ZZ`c##I0Uafrn6H6$QQj;kK)sh}uY!CJdsWmb*u;K*Pd@ z0oE$B@go`;(?Lq?6{8Sn-h6esUNg$32OuLYWLOx~wY6}{sMkDxyW%f5Ob?sw5hRTZ zD`F7_3kQa3ZHhMiP8nL8)C(>v#mgq59TCv>vcP9Ng?mQ6|GPUFI9K$y>qvSgFHV7f zb25IeoR_|y@CQcuss>-#&C(}WD7K8&-NIk_Ode(yFtC;>=d~Pj70!D2Wm(%(sd>&> zEIONJe3^e$nBxYwqJt+D$rLiklHuI`$0zlxd<Sr*&<%Yn>RT3j5VyY1I!)7Vj#cZn zL-Z%&MMgA;J#*I-lx9O#eZDGs{ZFr@V(|xio6Z%GPDq8Jmqs%95oq9pc6`%0eug@k z>Z6`yUU@m$(?`}}VimW=TX^ii<D&ZUiiHZ0TP-z7(Wkt$-yUe8mzr3qFM0>o**-#a zo0jSEfukspnqkcf*A7eTij2y=E05e$%TKY5kBYxwNXpggsSbJkp+yM!_IHfv#_b-c zI=lSKt9mNoI^B`1l%<{sy?sOYku^Q&OWU}gAB_b<MBtH$r0w^c`WEiuLkzI}L&A#X zWxs_)cqPQ!`!`C`7J&Fm^5I9QuCWc}7p|eSW4+wj3&4d<WQQ!X;njqKveQ$jDU4k7 z!WG{Q-OW?+>ypd**Gtn-AR)}5#QPAp^j7w38N6)jW8*hwv!yc)0wopk>9Riquv=~g z&DH7EIXBtHem}5Ba}?eQkriXG-}3pPTm8!+6FF$*CI!%%;H=nPJYdJ@W;*x1g>1iG z+FZIfH2?#$`M3SghhO`htHd$D?%Al?B`95YpFK1AP~YRYf0;3_^eW`pK3Y5_AiH18 zHXc3)E)>5BP~guY?)k8FY{U89Df@^ZbD#dEJu`Ek`+FRx_nam!Xxl-*SRp^3(0LMQ zcD9Z3l3<j4V$0#lXH|FBC{XbHn)AgfK7AI*Aa}jb>u`6@slf3Sg$;6Qtq%Ri@6k&X zbRE(bKy?6SVAIs(4_|p`mm@d-(IdXr?RUBbJLyfw+fGdgj^EuE2kh<I+F#sCz7aMD zT=LDeY)uN{b=$I?Pp97&Z|+B-75+C^(`9Y%XcJ>Y2tQ#}3|g3t^D;U$9|m4*GN%J4 zHcd^&ev3Ykz`gJe@9D~UHRqInvJkzgcp@vHnrj{F=q*bx<P{qXDMA^J9HO{M*`pHr zgQix+yF820zTc;%l-E;JC2hnl)u=;mR35Wu0@Z<*vp{v<Wl@O)Rc<e$QymuBik>$3 zX$p^)NBJZU4P5f~jroLM=QP6g_r|Zi@-_rn$3`!Y^|>v~pc0OL?Nx2*>`;jYIE#f4 zrJIQjE{&`gj8xe)4~jTdpe1W=aTWusw+xIBXD<oqIZm_|6+QY!7VZVQh`*|T+I0*0 z*Qlu*o>#mubtxUP=?`6*@2I2B!30nV`~eogCulbNrK#uDh+{PBm2+G_b3%W#!|+;o zJiK0jmq}0;TsRv|N}hZYG!|Z3ZvQ7}r3)MxZS)L}D2+@Haba&nl-SCz4#p@0Kp|+d zJZ5oABcs==cIC0<)g>;b;WMiPltb@oeEAMkF-;Y_>FwTEykZuck>LUkh2Y@=z#Mae z+1&)d#0YAF;xuGJ_cb4`r4!sq)0FsHT0zU4kkg9RQJ)ual)!X+F$K+Nf4??3Vrghl zh?FVk^EX~J`GBCAItK}5<lFijz5QT{P#FckNnmDy<*e3z>w?j2Y4w|5gACUX&1@ui zHnJ?O%Znwk$0S(+YpN*>s{R1?m_`kfhf`38#$P`F0V@n(Hbd3;DdW=XUDIVl92_jf zysrjT{g?ZD^vRXzhJ<PY5Ul6laiTWtfUR~HN29-UiEU~TePx-a#R6+!XIjj@04y~l zMFDF*AOfKgZ-c|}hhI3u$t%{OQ$tAXE6K%glH++^manF8^<EwIwjTYA>%tyQ&Y#(N z)S!-7dset^vB#hw{m03Un!nyBNNT)gkS>J4y3euh!^N)@wS0$VA=+y!GHqP6bHvWr z#O+Z$Td?qn$Y}o9|D_jbUyE&EP%HO1X7<SJ0&^zs$!~9(jHFZX^IgYy&j3TcudN%* zckQmEmkJ7ZXR%c~E&v_(CqMya&O6w^%<E{wo|*HY=e|`A<VcdcK2Ao!1jORv5(gzP zTh6|fI{}8+%$0+L|04H%kP}MM@aW$wU4fFs<0%~G3nxDbYksTb-?;w+2biDMt*jnF zeTF38AcNXHzJkFFUz7KY8W*>xaj%;(M)O7akehS0Nd$-wz&*?*0+!KFDCyyJJ!$j7 znRmcmcjh;fP>zXtk7rOZ5*L|6tsLlR#d}0hem`?A6qWLh=-$rgc)S4Lbw1Xzg+^A6 zdDic(Ks#6hzGPF8eJ$&B0k1T+6DIVU)*IQtB?<n_p(~s-r;BK0`w)#s@t^?5H;~bn zOIDW+Jnt*=!Nt%L${S^e!ORP;l1bg*gAB^!6i!zMLoqnt1@z7y2DT0(TKycaCM z+*sBOf!W8z)=CdRfu4Bl3A1?z*sPoMGV$^-iQoET5Gc#{Mvh|R<-N^&2m%vLYewoe z^O7W;EXZ_dolTn`-n4_N0sw<*&tM-R*i1<vzJHalz@@8E7)0$_njCe8w2fv%BdhMW ztFvs++-zil!hMV$81wxEV2;64bANdl45($2BkcccYWaV!FcXq){XY5nkwF{a=a6(+ LlKAA(%$@%PD5!&} diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/index.html b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/index.html deleted file mode 100644 index 2018e9a4cc0..00000000000 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/index.html +++ /dev/null @@ -1,57 +0,0 @@ -<!-- -Copyright 2012 Oliver Lau, Heise Zeitschriften Verlag - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<div id="session-workspace-uploader-main-title"></div> -<div id="filedrop"> - <div id="filedrop-inner-box"> - <div id="filedrop-chooser"> - <svg id="upload-icon" xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="140"> - <linearGradient id="grd" x1="0%" y1="0%" x2="0%" y2="100%"> - <stop offset="10%" style="stop-color: rgb(27, 132, 224);" /> - <stop offset="90%" style="stop-color: rgb(27, 62, 94);" /> - </linearGradient> - <path transform="translate(10, 10) scale(1.5)" fill="White" d="M 0 10 Q 0 0 10 0 L 110 0 Q 120 0 120 10 L 120 60 Q 120 70 110 70 L 10 70 Q 0 70 0 60 L 0 10 Z" /> - <path transform="translate(10, 10) scale(1.5)" fill="url(#grd)" d="M 0 10 Q 0 0 10 0 L 110 0 Q 120 0 120 10 L 120 60 Q 120 70 110 70 L 85 70 L 85 45 L 110 45 L 60 10 L 10 45 L 35 45 L 35 70 L 10 70 Q 0 70 0 60 L 0 10 Z" /> - </svg> - <br /> - <button class="huge" id="fileinput-button" type="button">Select files to upload</button> - </div><!-- filedrop-chooser --> - <div id="filedrop-hint"></div><!-- filedrop-hint --> - <form id="upload-form"> - <input type="file" id="fileinput" multiple /> - </form> - </div><!-- filedrop-inner-box --> -</div><!-- filedrop --> -<div id="session-workspace-uploader-uploads-title"></div> -<div id="filelist-container"> - <ul id="filelist"></ul> - <button id="filelist-clear-button" style="display: none">Clear all</button> -</div><!-- filelist-container --> -<div style="display: none" id="secret-elements"> - <svg class="mini-button" title="Abort" id="stop-button" xmlns="http://www.w3.org/2000/svg" version="1.1" width="12" height="12"> - <rect x="0" y="0" width="12" height="12" fill="#fff" /> - <rect x="1" y="1" width="10" height="10" fill="#c00" /> - </svg> - <svg class="mini-button" title="Paus" id="pause-button" xmlns="http://www.w3.org/2000/svg" version="1.1" width="12" height="12"> - <rect x="0" y="0" width="12" height="12" fill="#fff" /> - <rect x="2" y="1" width="3" height="10" fill="#00c" /> - <rect x="7" y="1" width="3" height="10" fill="#00c" /> - </svg> - <svg class="mini-button" title="Continue" id="play-button" xmlns="http://www.w3.org/2000/svg" version="1.1" width="12" height="12"> - <rect x="0" y="0" width="12" height="12" fill="#fff" /> - <path d="M 1 1 L 11 5.5 L 1 11 Z" fill="#0c0" /> - </svg> -</div> -<div id="iframe-container"></div> \ No newline at end of file diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/js/src/upload.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/js/src/upload.js deleted file mode 100644 index 0dc4f0f9345..00000000000 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/js/src/upload.js +++ /dev/null @@ -1,441 +0,0 @@ -//-*- coding: utf-8 -*- -/* -Copyright 2012 Oliver Lau, Heise Zeitschriften Verlag - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - - -var Uploader = new function () { - var defaults = { - upload_dir: "/uploaded", - file_upload_url: "/uploader2/upload.php", - form_upload_url: "/uploader2/form-upload.php", - drop_area: "#filedrop", - file_list: "#filelist", - file_input: "#fileinput", - upload_form: "#upload-form", - file_input_button: "#fileinput-button", - //file_list_clear_button: "#filelist-clear-button", - oncomplete: function(file) { }, - ondelete: function(file) {}, - chunk_size: 100*1024, - smart_mode: window.File && window.FileReader && window.XMLHttpRequest, - main_title_container : "#session-workspace-uploader-main-title", - uploads_title_container : "#session-workspace-uploader-uploads-title", - main_title : "<h2>Session workspace upload</h2>", - uploads_title : "<h2>Uploads</h2>" - }; - - - var current_upload_id = 0; - var current_form_id = 0; - var progress = {}; - var form = {}; - var settings = defaults; - - - function reset() { - current_upload_id = 0; - current_form_id = 0; - progress = {}; - $(settings.file_list).removeClass("visible"); - //$(settings.file_list_clear_button).css("display", "none"); - setTimeout(function() { - $(settings.file_list).empty(); - }, 256); - } - - - function async_exec(f, ms) { - ms = ms || 100; - setTimeout(f, ms); - } - - - this.uploadsInProgress = function() { - return Object.keys(progress).length > 0; - } - - -// function clearFileList() { -// if (this.uploadsInProgress()) { -// $(".ready").addClass("fadeOut"); -// $(".bad").addClass("fadeOut"); -// $(".aborted").addClass("fadeOut"); -// setTimeout(function() { -// $(".ready").remove(); -// $(".bad").remove(); -// $(".aborted").remove(); -// }, 256); -// } -// else { -// reset(); -// } -// } - - - function styleSize(n) { - var prefixes = [ "KB", "MB", "GB" ]; - var prefix = "bytes"; - while (n > 10240 && prefixes.length > 0) { - n /= 1024; - prefix = prefixes.shift(); - } - return Math.round(n) + " " + prefix; - } - - - function makeChunk(file, startByte, endByte) { - var blob = undefined; - if (file.slice) - blob = file.slice(startByte, endByte); - else if (file.webkitSlice) - blob = file.webkitSlice(startByte, endByte); - else if (file.mozSlice) - blob = file.mozSlice(startByte, endByte); - return blob; - } - - - function resumeUpload(id) { - progress[id].pause = false; - progress[id].abort = false; - $("#play-button-" + id).remove(); - $("#pause-button").clone().attr("id", "pause-button-" + id) - .appendTo("#action-bar-" + id) - .click(function() { - pauseUpload(id); - }); - var startByte = progress[id].bytesSent; - var endByte = startByte + settings.chunk_size; - if (endByte > progress[id].file.size) - endByte = progress[id].file.size; - var blob = makeChunk(progress[id].file, startByte, endByte); - uploadChunk(progress[id].file, blob, id, startByte, endByte); - } - - - function abortUpload(id) { - progress[id].abort = true; - progress[id].xhr.abort(); - } - - - function showUploadingError(id) { - Util.showError("Uploading of \'" + progress[id].file.name + "\' failed"); - } - - - function pauseUpload(id) { - progress[id].pause = true; - $("#pause-button-" + id).remove(); - $("#play-button").clone().attr("id", "play-button-" + id) - .appendTo("#action-bar-" + id) - .click(function() { - resumeUpload(id); - }); - } - - - function uploadChunk(file, blob, id, startByte, endByte) { - if (typeof progress[id] === "undefined" || progress[id].abort || progress[id].pause) - return; - var reader = new FileReader; - reader.onload = function(e) { - if (e.target.readyState == FileReader.DONE) { - if (typeof progress[id] === "undefined") - return; - var xhr = new XMLHttpRequest; - progress[id].xhr = xhr; - // pkupczyk: added sessionID - xhr.open("POST", settings.file_upload_url + - "?filename=" + encodeURIComponent(file.name) + - "&id=" + id + - "&startByte=" + startByte + - "&endByte=" + endByte + - "&sessionID=" + settings.sessionID, - true); - xhr.setRequestHeader("Content-type", "multipart/form-data"); - xhr.onload = function(e) { - var d = JSON.parse(xhr.responseText); - if (typeof progress[d.id] === "undefined") - return; - if (d.status === "ok") { - progress[d.id].bytesSent += d.endByte - d.startByte; - var secs = 1e-3 * (Date.now() - progress[d.id].startTime); - if (progress[d.id].bytesSent < file.size) { - var percentage = 100 * progress[d.id].bytesSent / file.size; - $("#progressbar-" + d.id).css("width", percentage + "%"); - $("#speed-" + d.id).html(styleSize(progress[d.id].bytesSent / secs) + "/s"); - startByte = endByte; - endByte += settings.chunk_size; - if (endByte > file.size) - endByte = file.size; - var blob = makeChunk(file, startByte, endByte); - uploadChunk(file, blob, id, startByte, endByte); - } - else { - $("#progressbar-" + d.id).addClass("ready"); - $("#progressbar-" + d.id).css("width", "100%"); - $("#upload-" + d.id).addClass("ready"); - $("#speed-" + d.id).html(styleSize(file.size / secs) + "/s"); - // pkupczyk: changed download url - $("#filename-" + d.id).replaceWith("<a target=\"_blank\" " + - "href=\"" + settings.file_download_url + "?sessionID=" + settings.sessionID + "&filePath=" + - encodeURIComponent(d.filename) + "\">" + d.filename + "</a>"); - $("#action-bar-" + d.id).remove(); - delete progress[d.id]; - settings.oncomplete(file); - } - } - else { - $("#progressbar-" + d.id).addClass("bad"); - $("#upload-" + d.id).addClass("bad"); - $("#speed-" + d.id).replaceWith("<strong>" + d.message + "</strong>"); - $("#action-bar-" + d.id).remove(); - delete progress[d.id]; - } - }; - xhr.onabort = function(e) { - $("#progressbar-" + id).addClass("aborted"); - $("#upload-" + id).addClass("aborted"); - $("#action-bar-" + id).remove(); - showUploadingError(id); - delete progress[id]; - }; - xhr.onerror = function(e) { - $("#progressbar-" + id).addClass("bad"); - $("#upload-" + id).addClass("bad"); - $("#action-bar-" + id).remove(); - showUploadingError(id); - delete progress[id]; - }; - xhr.send(e.target.result); - } - }; - reader.onerror = function(e) { - switch (e.target.error.code) { - case e.target.error.NOT_FOUND_ERR: - alert("File not found."); - break; - case e.target.error.NOT_READABLE_ERR: - alert("File not readable."); - break; - case e.target.error.ABORT_ERR: - console.log("File reading aborted."); - break; - default: - alert("An error occurred while accessing the file."); - break; - } - }; - reader.onabort = function() { - alert("Reading of the file aborted."); - }; - reader.readAsArrayBuffer(blob); - } - - - function upload(file) { - var id = current_upload_id; - ++current_upload_id; - $(settings.file_list) - .append("<li class=\"upload\" id=\"upload-" + id + "\">" + - "<span id='delete-" + id + "' class='delete-button'>X</span> " + - "<span id=\"progress-" + id + "\" class=\"progressbar-container\">" + - "<span id=\"progressbar-" + id + "\" class=\"progressbar\"></span>" + - "</span>" + - "<span id=\"action-bar-" + id + "\"></span> " + - "<span id=\"filename-" + id + "\">" + file.name + "</span>" + - " (" + styleSize(file.size) + ", " + - "<span id=\"speed-" + id + "\">? KB/s</span>)" + - "</li>"); - $("#delete-"+id).click(function() { - if(!progress[id]) { - var fileData = file; - $( "#upload-"+id).remove(); - settings.ondelete(fileData); - } else { - alert("The upload is in progress, please wait."); - } - }); - - $("#upload-" + id).addClass("starting"); - if (settings.smart_mode) { - $("#stop-button").clone().attr("id", "stop-button-" + id) - .appendTo("#action-bar-" + id) - .click(function() { - abortUpload(id); - }); - $("#pause-button").clone().attr("id", "pause-button-" + id) - .appendTo("#action-bar-" + id) - .click(function() { - pauseUpload(id); - }); - progress[id] = { - file: file, - startTime: Date.now(), - bytesSent: 0, - abort: false, - pause: false, - xhr: null - }; - // 1. Chunk will be uploaded, further chunks will be uploaded via onload-Handler - var lastByte = (file.size < settings.chunk_size)? file.size : settings.chunk_size; - var blob = makeChunk(file, 0, lastByte); - uploadChunk(file, blob, id, 0, lastByte); - } - else { - $("#progressbar-" + id).css("width", "100%"); - } - } - - - function uploadFiles(files) { - $(settings.file_list).addClass("visible"); - //$(settings.file_list_clear_button).css("display", "inline"); - if (typeof files === "object" && files.length > 0) { - $.each(files, function() { upload(this); }); - } - } - - - function generateUploadForm() { - var id = ++current_form_id; - $("#iframe-container") - // pkupczyk: added sessionID - .append("<iframe id=\"iframe-" + id + "\"" + - " name=\"iframe-" + id + "\"" + - "></iframe>" + - "<form action=\"" + settings.form_upload_url + "?sessionID=" + settings.sessionID + "\"" + - " target=\"iframe-" + id + "\"" + - " id=\"form-" + id + "\"" + - " enctype=\"multipart/form-data\"" + - " method=\"POST\">" + - "<input type=\"file\" multiple name=\"files[]\"" + - " id=\"fileinput-" + id + "\" />" + - "</form>"); - $("#fileinput-" + id) - .bind("change", function(event) { - var files = event.target.files; - uploadFiles(files); - if (!settings.smart_mode) { - generateUploadForm(); - event.target.form.submit(); - } - event.preventDefault(); - return false; - }) - $(settings.file_input_button) - .unbind("click") - .bind("click", function() { - $("#fileinput-" + id).trigger("click"); - }); - $("#iframe-" + id).bind("load", { id: id }, function(event) { - var id = event.data.id, - iframe = document.getElementById("iframe-" + id).contentDocument; - if (iframe.location.href !== "about:blank") { - $(".progressbar").addClass("ready"); - $("#iframe-" + id).remove(); - $("#form-" + id).remove(); - } - }); - } - - this.init = function(opts) { - // Checks whether the browser can show SVG, if not PNGs are used - var svgSupported = (function() { - var svg; - try { - svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - } catch (e) { console.log(e); } - return typeof svg !== "undefined" || - (navigator.userAgent.match(/(Safari|MSIE [5-9])/) - && !navigator.userAgent.match(/Chrome/)); - })(); - if (!svgSupported) { - $("#upload-icon").replaceWith("<img id=\"upload-icon\" src=\"img/upload-icon.png\" width=\"200\" height=\"140\">"); - $("#play-button").replaceWith("<img id=\"play-button\" src=\"img/play-button.png\" width=\"12\" height=\"12\" class=\"mini-button\">"); - $("#stop-button").replaceWith("<img id=\"stop-button\" src=\"img/stop-button.png\" width=\"12\" height=\"12\" class=\"mini-button\">"); - $("#pause-button").replaceWith("<img id=\"pause-button\" src=\"img/pause-button.png\" width=\"12\" height=\"12\" class=\"mini-button\">"); - } - // Site-spezifische Einstellungen aus Konfigurationsdatei lesen - - /* pkupczyk: we don't need this - - $.ajax("config.json", { async: false }) - .done(function(data) { - settings = $.extend({}, settings, data); - }) - .error(function(jqXHR, textStatus, errorThrown) { - console.log([jqXHR, textStatus, errorThrown]); - }); - */ - - // Settings might be overwritten by init() parameters - settings = $.extend({}, settings, opts); - settings.smart_mode = settings.smart_mode && defaults.smart_mode; - - // pkupczyk: we do not provide listing of uploaded files yet - //$("h2 > a").attr("href", settings.upload_dir); - - if (settings.smart_mode) { - $("#filedrop-hint").html("Drag and drop the files to upload here or click 'Select files to upload' button."); - $(settings.file_input) - .bind("change", function(event) { - uploadFiles(event.target.files); - }); - $(settings.file_input_button) - .click(function() { - $(settings.file_input).trigger("click"); - }); - $(settings.drop_area).bind( - { - dragover: function(event) { - var e = event.originalEvent; - e.stopPropagation(); - e.preventDefault(); - e.dataTransfer.dropEffect = "copy"; - $(settings.drop_area).addClass("over"); - } - , - dragleave: function(event) { - var e = event.originalEvent; - e.stopPropagation(); - e.preventDefault(); - $(settings.drop_area).removeClass("over"); - } - , - drop: function(event) { - var e = event.originalEvent; - e.stopPropagation(); - e.preventDefault(); - $(settings.drop_area).removeClass("over"); - uploadFiles(e.dataTransfer.files); - } - } - ); - } - else { // fallback mode - $("#filedrop-hint").html("Click 'Select files to upload' button."); - generateUploadForm(); - } - //$(settings.file_list_clear_button).click(clearFileList); - $("#filedrop-hint").append("<br/>Upload starts immediately after the file selection."); - - //Setting titles - $(settings.main_title_container).append(settings.main_title); - $(settings.uploads_title_container).append(settings.uploads_title); - } -} diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/version.txt b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/version.txt deleted file mode 100644 index 9babdc33706..00000000000 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/uploader/version.txt +++ /dev/null @@ -1 +0,0 @@ -Revision: b36e1b0a9c22 (2 Aug 2012) -- GitLab