From d26ceca71c025ad35b9cb2eeacf0cde68fa096d1 Mon Sep 17 00:00:00 2001
From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04>
Date: Thu, 15 Apr 2010 07:42:48 +0000
Subject: [PATCH] check for is_analysis flag

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@13688 ee4ac58c-ac51-4696-9907-e4b3aa274f04
---
 artemis_sqlmap/Feature.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/artemis_sqlmap/Feature.xml b/artemis_sqlmap/Feature.xml
index 1324a2c93..5643d036f 100644
--- a/artemis_sqlmap/Feature.xml
+++ b/artemis_sqlmap/Feature.xml
@@ -219,7 +219,10 @@
     WHERE
         <dynamic>
          <isGreaterThan property="featureLoc.featureBySrcFeatureId.featureId" compareValue="0"> 
-           srcfeature_id=$featureLoc.featureBySrcFeatureId.featureId$ 
+           srcfeature_id=$featureLoc.featureBySrcFeatureId.featureId$
+		   <isNotNull property="analysis">                        
+             AND is_analysis=#analysis#
+           </isNotNull>
          </isGreaterThan>
 		 <isGreaterEqual property="featureLoc.fmin" compareValue="0" prepend="AND"> 
            <![CDATA[ fl.fmin >= $featureLoc.fmin$ AND fl.fmax < $featureLoc.fmax$ ]]>
-- 
GitLab