From c6c6b62623ef39a9b15f025d36d17fd0c0c59ee0 Mon Sep 17 00:00:00 2001
From: barillac <barillac>
Date: Mon, 13 Apr 2015 13:31:55 +0000
Subject: [PATCH] added handling of fasta files

SVN: 33815
---
 .../html/js/config/ELNPaperProfile.js         | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/ELNPaperProfile.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/ELNPaperProfile.js
index fba918637d9..c222b154a40 100644
--- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/ELNPaperProfile.js
+++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/ELNPaperProfile.js
@@ -236,6 +236,15 @@ $.extend(ELNPaperProfile.prototype, DefaultProfile.prototype, {
 														"ANNOTATION_PROPERTIES" : [{"TYPE" : "PLASMID_RELATIONSHIP", "MANDATORY" : false },{"TYPE" : "PLASMID_ANNOTATION", "MANDATORY" : false },{"TYPE" : "COMMENTS", "MANDATORY" : false }]
 													}																					
 												],
+					"SAMPLE_LINKS_HINT" : [
+												{
+														"LABEL" : "Plasmid",
+														"TYPE": "PLASMID",
+														"MIN_COUNT" : 0,
+														"ANNOTATION_PROPERTIES" : [{"TYPE" : "PLASMID_RELATIONSHIP", "MANDATORY" : false },{"TYPE" : "PLASMID_ANNOTATION", "MANDATORY" : false },{"TYPE" : "COMMENTS", "MANDATORY" : false },{"TYPE" : "CONTAINED", "MANDATORY" : false }]
+												}
+										],
+					"SAMPLE_PARENTS_ANNOTATIONS_COPY" : { "YEAST" : ["PLASMID"] }
 				},
 
 				"CELL_LINE" : {
@@ -382,5 +391,16 @@ $.extend(ELNPaperProfile.prototype, DefaultProfile.prototype, {
 				freeFormTableController.init($("#" + containerId));
 			}
 		}
+		
+		
+		this.getDataSetTypeForFileName = function(allDatasetFiles, fileName) {
+			if(fileName.endsWith("gb") || fileName.endsWith("fasta") || fileName.endsWith("xdna") || fileName.endsWith("fa")) {
+				return "SEQ_FILE";
+			} else if(fileName.endsWith("ab1")) {
+				return "RAW_DATA";
+			} else {
+				return null;
+			}
+		}		
 }
 });
\ No newline at end of file
-- 
GitLab