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 d39620eb647867b0b93b6a73712437ee5c9b5da6..96b7fff485b5712a2825826477953fe4c00817ca 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 0000000000000000000000000000000000000000..591bd9b45ed638dec38301ba9004f308550810ab --- /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 0000000000000000000000000000000000000000..0b63d4178faf647bad0dc4b9e24fd652d8f36c34 --- /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 0000000000000000000000000000000000000000..96eceb665a523749c2bef45bbb85f8fbd50f2a04 --- /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