From dee7eea1f92c587ca91e952ae47d882d34ce53af Mon Sep 17 00:00:00 2001
From: Peter van 't Hof <p.j.van_t_hof@lumc.nl>
Date: Tue, 30 Jun 2015 11:25:46 +0200
Subject: [PATCH] Remove sortable tables from file lists

---
 .../sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp | 6 +++---
 .../biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp     | 6 +++---
 .../lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp   | 6 +++---
 .../nl/lumc/sasc/biopet/pipelines/shiva/outputVcfFiles.ssp  | 4 ++--
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp b/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp
index ced6349bb..0ecc838cc 100644
--- a/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp
+++ b/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp
@@ -17,16 +17,16 @@
     val pipelineOutputDir = summary.getValue("meta", "output_dir").getOrElse("").toString
     def removeDir(value: Option[Any]): Option[Any] = {
         value.collect { case a =>
-            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir)
+            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir + File.separator)
             else a
         }
     }
 }#
 
-<table class="table sortable-theme-bootstrap" data-sortable>
+<table class="table">
 
 <thead><tr>
-    <th data-sorted="true" data-sorted-direction="ascending">Sample</th>
+    <th>Sample</th>
     <th colspan="2">Library</th>
     <th>Path</th>
     <th>MD5</th>
diff --git a/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp b/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp
index 439fa99f6..3807e6c87 100644
--- a/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp
+++ b/public/flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp
@@ -17,16 +17,16 @@
     val pipelineOutputDir = summary.getValue("meta", "output_dir").getOrElse("").toString
     def removeDir(value: Option[Any]): Option[Any] = {
         value.collect { case a =>
-            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir)
+            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir + File.separator)
             else a
         }
     }
 }#
 
-<table class="table sortable-theme-bootstrap" data-sortable>
+<table class="table">
 
 <thead><tr>
-    <th data-sorted="true" data-sorted-direction="ascending">Sample</th>
+    <th>Sample</th>
     <th colspan="2">Library</th>
     <th>Path</th>
     <th>MD5</th>
diff --git a/public/mapping/src/main/resources/nl/lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp b/public/mapping/src/main/resources/nl/lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp
index 3c9926d4e..d35962f5d 100644
--- a/public/mapping/src/main/resources/nl/lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp
+++ b/public/mapping/src/main/resources/nl/lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp
@@ -20,7 +20,7 @@
     val pipelineOutputDir = summary.getValue("meta", "output_dir").getOrElse("").toString
     def removeDir(value: Option[Any]): Option[Any] = {
         value.collect { case a =>
-            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir)
+            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir + File.separator)
             else a
         }
     }
@@ -28,9 +28,9 @@
 
 <div class="panel-body">
 <!-- Table -->
-<table class="table sortable-theme-bootstrap" data-sortable>
+<table class="table">
     <thead><tr>
-        <th data-sorted="true" data-sorted-direction="ascending">Sample</th>
+        <th>Sample</th>
         #if (!sampleLevel) <th>Library</th> #end
         <th>Path</th>
         <th>MD5</th>
diff --git a/public/shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/outputVcfFiles.ssp b/public/shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/outputVcfFiles.ssp
index 351449874..bd00a8618 100644
--- a/public/shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/outputVcfFiles.ssp
+++ b/public/shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/outputVcfFiles.ssp
@@ -13,7 +13,7 @@
     val pipelineOutputDir = summary.getValue("meta", "output_dir").getOrElse("").toString
     def removeDir(value: Option[Any]): Option[Any] = {
         value.collect { case a =>
-            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir)
+            if (a.toString.startsWith(pipelineOutputDir) && pipelineOutputDir.nonEmpty) "./" + a.toString.stripPrefix(pipelineOutputDir + File.separator)
             else a
         }
     }
@@ -21,7 +21,7 @@
 
 <div class="panel-body">
 <!-- Table -->
-<table class="table sortable-theme-bootstrap" data-sortable>
+<table class="table">
     <thead><tr>
         <th>Variantcaller</th>
         <th>Path</th>
-- 
GitLab