From 2575ed701fa1a8a6c72f6d78570d2cb13d1c87e0 Mon Sep 17 00:00:00 2001 From: barillac <barillac> Date: Mon, 7 Jul 2014 08:55:07 +0000 Subject: [PATCH] D-BIOL labs profiles added SVN: 31899 --- .../1/as/webapps/newbrowser/html/index.html | 3 + .../html/js/config/KrekLabProfile.js | 116 ++++++++++++++++++ .../html/js/config/PeterLabProfile.js | 116 ++++++++++++++++++ .../html/js/config/StoffelLabProfile.js | 116 ++++++++++++++++++ 4 files changed, 351 insertions(+) create mode 100644 plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/KrekLabProfile.js create mode 100644 plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/PeterLabProfile.js create mode 100644 plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/StoffelLabProfile.js diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/index.html b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/index.html index d39620eb647..96b7fff485b 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/index.html +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/index.html @@ -71,6 +71,9 @@ <script type="text/javascript" src="./js/config/CaterinaTestProfile.js"></script> <script type="text/javascript" src="./js/config/YeastLabProfile.js"></script> <script type="text/javascript" src="./js/config/LimsProfile.js"></script> + <script type="text/javascript" src="./js/config/KrekLabProfile.js"></script> + <script type="text/javascript" src="./js/config/StoffelLabProfile.js"></script> + <script type="text/javascript" src="./js/config/PeterLabProfile.js"></script> <script type="text/javascript" src="./js/server/ServerFacade.js"></script> diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/KrekLabProfile.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/KrekLabProfile.js new file mode 100644 index 00000000000..591bd9b45ed --- /dev/null +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/KrekLabProfile.js @@ -0,0 +1,116 @@ + +function KrekLabProfile(serverFacade) { + this.init(serverFacade); +} + +$.extend(KrekLabProfile.prototype, DefaultProfile.prototype, { + init: function(serverFacade){ + DefaultProfile.prototype.init.call(this, serverFacade); + + + //Use this with all known types to create groups, if a type is not specified by default will be added to the OTHERS group. + this.typeGroups = { + "MATERIALS" : { + "TYPE" : "MATERIALS", + "DISPLAY_NAME" : "Materials", + "LIST" : ["INHIBITOR"] + }, + "SAMPLES" : { + "TYPE" : "SAMPLES", + "DISPLAY_NAME" : "Samples", + "LIST" : ["CELL_LINE", "ANTIBODY", "PLASMID"] + }, + "METHODS" : { + "TYPE" : "METHODS", + "DISPLAY_NAME" : "Protocols", + "LIST" : ["PROTOCOL"] + }, + "OTHERS" : { + "TYPE" : "OTHERS", + "DISPLAY_NAME" : "Others", + "LIST" : [] + } + }; + + this.inventorySpaces = ["INVENTORY"]; + + + this.storagesConfiguration = { + "isEnabled" : true, + /* + * Should be the same across all storages, if not correct behaviour is not guaranteed. + */ + "STORAGE_PROPERTIES": [{ + "STORAGE_PROPERTY_GROUP" : "Storage", //Where the storage will be painted. + "STORAGE_GROUP_DISPLAY_NAME" : "Storage Group 1", //Storage Group Name + "NAME_PROPERTY" : "FREEZER_NAME", //Should be a Vocabulary. + "ROW_PROPERTY" : "ROW", //Should be an integer. + "COLUMN_PROPERTY" : "COLUMN", //Should be an integer. + "BOX_PROPERTY" : "BOX_NUMBER", //Should be text. + "USER_PROPERTY" : "USER_PROPERTY" //Should be text. + }], + /* + * Storages map, can hold configurations for several storages. + */ + "STORAGE_CONFIGS": { + "H20.1_KREK-1" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 5, //Number of rows + "COLUMN_NUM" : 4, //Number of columns + "BOX_NUM" : 9999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + }, + "H20.2_KREK-2" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 5, //Number of rows + "COLUMN_NUM" : 4, //Number of columns + "BOX_NUM" : 9999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + }, + "BENCH" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 1, //Number of rows + "COLUMN_NUM" : 1, //Number of columns + "BOX_NUM" : 99999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + } + } + }; + + /* New Sample definition tests*/ + this.sampleTypeDefinitionsExtension = { + "PLASMID_EXPRESSION" : { + "SAMPLE_PARENTS_HINT" : [ + { + "LABEL" : "Protocol", + "TYPE": "PROTOCOLS", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Plasmid", + "TYPE": "PLASMIDS", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Inhibitor", + "TYPE": "INHIBITORS", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Cell Line", + "TYPE": "CELL_LINE", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + ], + } + } + + + //The properties you want to appear on the tables, if you don«t specify the list, all of them will appear by default. + this.typePropertiesForTable = {}; + + //The colors for the notes, if you don«t specify the color, light yellow will be used by default. + this.colorForInspectors = {}; +} +}); \ No newline at end of file diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/PeterLabProfile.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/PeterLabProfile.js new file mode 100644 index 00000000000..0b63d4178fa --- /dev/null +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/PeterLabProfile.js @@ -0,0 +1,116 @@ + +function PeterLabProfile(serverFacade) { + this.init(serverFacade); +} + +$.extend(PeterLabProfile.prototype, DefaultProfile.prototype, { + init: function(serverFacade){ + DefaultProfile.prototype.init.call(this, serverFacade); + + + //Use this with all known types to create groups, if a type is not specified by default will be added to the OTHERS group. + this.typeGroups = { + "MATERIALS" : { + "TYPE" : "MATERIALS", + "DISPLAY_NAME" : "Materials", + "LIST" : ["INHIBITOR"] + }, + "SAMPLES" : { + "TYPE" : "SAMPLES", + "DISPLAY_NAME" : "Samples", + "LIST" : ["CELL_LINE", "ANTIBODY", "PLASMID"] + }, + "METHODS" : { + "TYPE" : "METHODS", + "DISPLAY_NAME" : "Protocols", + "LIST" : ["PROTOCOL"] + }, + "OTHERS" : { + "TYPE" : "OTHERS", + "DISPLAY_NAME" : "Others", + "LIST" : [] + } + }; + + this.inventorySpaces = ["INVENTORY"]; + + + this.storagesConfiguration = { + "isEnabled" : true, + /* + * Should be the same across all storages, if not correct behaviour is not guaranteed. + */ + "STORAGE_PROPERTIES": [{ + "STORAGE_PROPERTY_GROUP" : "Storage", //Where the storage will be painted. + "STORAGE_GROUP_DISPLAY_NAME" : "Storage Group 1", //Storage Group Name + "NAME_PROPERTY" : "FREEZER_NAME", //Should be a Vocabulary. + "ROW_PROPERTY" : "ROW", //Should be an integer. + "COLUMN_PROPERTY" : "COLUMN", //Should be an integer. + "BOX_PROPERTY" : "BOX_NUMBER", //Should be text. + "USER_PROPERTY" : "USER_PROPERTY" //Should be text. + }], + /* + * Storages map, can hold configurations for several storages. + */ + "STORAGE_CONFIGS": { + "H20.1_KREK-1" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 5, //Number of rows + "COLUMN_NUM" : 4, //Number of columns + "BOX_NUM" : 9999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + }, + "H20.2_KREK-2" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 5, //Number of rows + "COLUMN_NUM" : 4, //Number of columns + "BOX_NUM" : 9999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + }, + "BENCH" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 1, //Number of rows + "COLUMN_NUM" : 1, //Number of columns + "BOX_NUM" : 99999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + } + } + }; + + /* New Sample definition tests*/ + this.sampleTypeDefinitionsExtension = { + "PLASMID_EXPRESSION" : { + "SAMPLE_PARENTS_HINT" : [ + { + "LABEL" : "Protocol", + "TYPE": "PROTOCOL", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Plasmid", + "TYPE": "PLASMID", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Inhibitor", + "TYPE": "INHIBITOR", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Cell Line", + "TYPE": "CELL_LINE", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + ], + } + } + + + //The properties you want to appear on the tables, if you don«t specify the list, all of them will appear by default. + this.typePropertiesForTable = {}; + + //The colors for the notes, if you don«t specify the color, light yellow will be used by default. + this.colorForInspectors = {}; +} +}); \ No newline at end of file diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/StoffelLabProfile.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/StoffelLabProfile.js new file mode 100644 index 00000000000..96eceb665a5 --- /dev/null +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/StoffelLabProfile.js @@ -0,0 +1,116 @@ + +function StoffelLabProfile(serverFacade) { + this.init(serverFacade); +} + +$.extend(StoffelLabProfile.prototype, DefaultProfile.prototype, { + init: function(serverFacade){ + DefaultProfile.prototype.init.call(this, serverFacade); + + + //Use this with all known types to create groups, if a type is not specified by default will be added to the OTHERS group. + this.typeGroups = { + "MATERIALS" : { + "TYPE" : "MATERIALS", + "DISPLAY_NAME" : "Materials", + "LIST" : ["INHIBITOR"] + }, + "SAMPLES" : { + "TYPE" : "SAMPLES", + "DISPLAY_NAME" : "Samples", + "LIST" : ["CELL_LINE", "ANTIBODY", "PLASMID"] + }, + "METHODS" : { + "TYPE" : "METHODS", + "DISPLAY_NAME" : "Protocols", + "LIST" : ["PROTOCOL"] + }, + "OTHERS" : { + "TYPE" : "OTHERS", + "DISPLAY_NAME" : "Others", + "LIST" : [] + } + }; + + this.inventorySpaces = ["INVENTORY"]; + + + this.storagesConfiguration = { + "isEnabled" : true, + /* + * Should be the same across all storages, if not correct behaviour is not guaranteed. + */ + "STORAGE_PROPERTIES": [{ + "STORAGE_PROPERTY_GROUP" : "Storage", //Where the storage will be painted. + "STORAGE_GROUP_DISPLAY_NAME" : "Storage Group 1", //Storage Group Name + "NAME_PROPERTY" : "FREEZER_NAME", //Should be a Vocabulary. + "ROW_PROPERTY" : "ROW", //Should be an integer. + "COLUMN_PROPERTY" : "COLUMN", //Should be an integer. + "BOX_PROPERTY" : "BOX_NUMBER", //Should be text. + "USER_PROPERTY" : "USER_PROPERTY" //Should be text. + }], + /* + * Storages map, can hold configurations for several storages. + */ + "STORAGE_CONFIGS": { + "H20.1_KREK-1" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 5, //Number of rows + "COLUMN_NUM" : 4, //Number of columns + "BOX_NUM" : 9999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + }, + "H20.2_KREK-2" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 5, //Number of rows + "COLUMN_NUM" : 4, //Number of columns + "BOX_NUM" : 9999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + }, + "BENCH" : { //Freezer name given by the NAME_PROPERTY + "ROW_NUM" : 1, //Number of rows + "COLUMN_NUM" : 1, //Number of columns + "BOX_NUM" : 99999 //Boxes on each rack, used for validation, to avoid validation increase the number to 9999 for example + } + } + }; + + /* New Sample definition tests*/ + this.sampleTypeDefinitionsExtension = { + "PLASMID_EXPRESSION" : { + "SAMPLE_PARENTS_HINT" : [ + { + "LABEL" : "Protocol", + "TYPE": "PROTOCOL", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Plasmid", + "TYPE": "PLASMID", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Inhibitor", + "TYPE": "INHIBITOR", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + , + { + "LABEL" : "Cell Line", + "TYPE": "CELL_LINE", + "MIN_COUNT" : 1, + "ANNOTATION_PROPERTIES" : [] + } + ], + } + } + + + //The properties you want to appear on the tables, if you don«t specify the list, all of them will appear by default. + this.typePropertiesForTable = {}; + + //The colors for the notes, if you don«t specify the color, light yellow will be used by default. + this.colorForInspectors = {}; +} +}); \ No newline at end of file -- GitLab