Преглед изворни кода

Removed Published Node filter from default views to reduce confusion over -I loaded some features but they don't show up in the feature listing; because they're not yet sync'd

Lacey Sanderson пре 12 година
родитељ
комит
614de6fb7e

+ 2 - 0
tripal_analysis/tripal_analysis.views.inc

@@ -530,6 +530,7 @@ function tripal_analysis_views_default_views() {
     $fields['name']['alter']['path'] = 'node/[nid]';
     $default_handler->override_option('fields', $fields);
     // Only show records with published nodes
+    /**
     $filters = $view->get_items('filter', 'default');
     $filters['status'] = array(
       'operator' => '=',
@@ -546,6 +547,7 @@ function tripal_analysis_views_default_views() {
       'relationship' => 'none',
     );
     $default_handler->override_option('filters', $filters);
+    */
   }
   $views[$view->name] = $view;
 

+ 5 - 3
tripal_feature/tripal_feature.views.inc

@@ -36,10 +36,10 @@ function tripal_feature_views_data()  {
     $tables = array(
       'feature',
     );
-        
+
     foreach ($tables as $tablename) {
       $priority = 9;
-      
+
       // check to see if the table is integrated. If it is then integrate it's
       // corresponding 'chado_[table]' table.
       if (!tripal_views_is_integrated($tablename, $priority)) {
@@ -82,7 +82,7 @@ function tripal_feature_views_data()  {
       'featurerange'
     );
     foreach ($tables as $tablename) {
-      $priority = 9;     
+      $priority = 9;
       if (!tripal_views_is_integrated($tablename, $priority)) {
         $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE, $priority);
         tripal_views_integration_add_entry($table_integration_array);
@@ -668,6 +668,7 @@ function tripal_feature_views_default_views() {
     $fields['name']['alter']['path'] = 'node/[nid]';
     $default_handler->override_option('fields', $fields);
     // Only show records with published nodes
+    /**
     $filters = $view->get_items('filter', 'default');
     $filters['status'] = array(
       'operator' => '=',
@@ -684,6 +685,7 @@ function tripal_feature_views_default_views() {
       'relationship' => 'none',
     );
     $default_handler->override_option('filters', $filters);
+    */
   }
   $views[$view->name] = $view;
 

+ 4 - 2
tripal_library/tripal_library.views.inc

@@ -36,7 +36,7 @@ function tripal_library_views_data()  {
     );
     foreach ($tables as $tablename) {
       $priority = 9;
-      
+
       // check to see if the table is integrated. If it is then integrate it's
       // corresponding 'chado_[table]' table.
       if (!tripal_views_is_integrated($tablename, $priority)) {
@@ -64,7 +64,7 @@ function tripal_library_views_data()  {
       'libraryprop'
     );
     foreach ($tables as $tablename) {
-      $priority = 9;     
+      $priority = 9;
       if (!tripal_views_is_integrated($tablename, $priority)) {
         $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE, $priority);
         tripal_views_integration_add_entry($table_integration_array);
@@ -484,6 +484,7 @@ function tripal_library_views_default_views() {
     $fields['name_1']['alter']['path'] = 'node/[nid]';
     $default_handler->override_option('fields', $fields);
     // Only show records with published nodes
+    /**
     $filters = $view->get_items('filter', 'default');
     $filters['status'] = array(
       'operator' => '=',
@@ -500,6 +501,7 @@ function tripal_library_views_default_views() {
       'relationship' => 'none',
     );
     $default_handler->override_option('filters', $filters);
+    */
   }
   $views[$view->name] = $view;
 

+ 4 - 2
tripal_organism/tripal_organism.views.inc

@@ -37,7 +37,7 @@ function tripal_organism_views_data()  {
     );
     foreach ($tables as $tablename) {
       $priority = 9;
-      
+
       // check to see if the table is integrated. If it is then integrate it's
       // corresponding 'chado_[table]' table.
       if (!tripal_views_is_integrated($tablename, $priority)) {
@@ -68,7 +68,7 @@ function tripal_organism_views_data()  {
       'organism_dbxref'
     );
     foreach ($tables as $tablename) {
-      $priority = 9;      
+      $priority = 9;
       if (!tripal_views_is_integrated($tablename, $priority)) {
         $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE, $priority);
         tripal_views_integration_add_entry($table_integration_array);
@@ -405,6 +405,7 @@ function tripal_organism_views_default_views() {
     $fields['common_name']['alter']['path'] = 'node/[nid]';
     $default_handler->override_option('fields', $fields);
     // Only show records with published nodes
+    /**
     $filters = $view->get_items('filter', 'default');
     $filters['status'] = array(
       'operator' => '=',
@@ -421,6 +422,7 @@ function tripal_organism_views_default_views() {
       'relationship' => 'none',
     );
     $default_handler->override_option('filters', $filters);
+    */
   }
   $views[$view->name] = $view;
 

+ 4 - 2
tripal_project/tripal_project.views.inc

@@ -29,7 +29,7 @@ function tripal_project_views_data()  {
     );
     foreach ($tables as $tablename) {
       $priority = 9;
-      
+
       // check to see if the table is integrated. If it is then integrate it's
       // corresponding 'chado_[table]' table.
       if (!tripal_views_is_integrated($tablename, $priority)) {
@@ -51,7 +51,7 @@ function tripal_project_views_data()  {
     $tables = array(
     );
     foreach ($tables as $tablename) {
-      $priority = 9;     
+      $priority = 9;
       if (!tripal_views_is_integrated($tablename, $priority)) {
         $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE, $priority);
         tripal_views_integration_add_entry($table_integration_array);
@@ -327,6 +327,7 @@ function tripal_project_views_default_views() {
     $fields['name']['alter']['path'] = 'node/[nid]';
     $default_handler->override_option('fields', $fields);
     // Only show records with published nodes
+    /**
     $filters = $view->get_items('filter', 'default');
     $filters['status'] = array(
       'operator' => '=',
@@ -343,6 +344,7 @@ function tripal_project_views_default_views() {
       'relationship' => 'none',
     );
     $default_handler->override_option('filters', $filters);
+    */
   }
   $views[$view->name] = $view;
 

+ 5 - 3
tripal_stock/tripal_stock.views.inc

@@ -34,7 +34,7 @@ function tripal_stock_views_data()  {
   if (module_exists('tripal_views')) {
     $tablename = 'stock';
     $priority = 9;
-      
+
     // check to see if the table is integrated. If it is then integrate it's
     // corresponding 'chado_[table]' table.
     if (!tripal_views_is_integrated($tablename, $priority)) {
@@ -53,7 +53,7 @@ function tripal_stock_views_data()  {
     }
 
     $tablename = 'stockcollection';
-    $priority = 9;     
+    $priority = 9;
       if (!tripal_views_is_integrated($tablename, $priority)) {
       $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, TRUE, $priority);
       tripal_views_integration_add_entry($table_integration_array);
@@ -72,7 +72,7 @@ function tripal_stock_views_data()  {
       'stockprop_pub'
     );
     foreach ($tables as $tablename) {
-      $priority = 9;     
+      $priority = 9;
       if (!tripal_views_is_integrated($tablename, $priority)) {
         $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE, $priority);
         tripal_views_integration_add_entry($table_integration_array);
@@ -640,6 +640,7 @@ function tripal_stock_views_default_views() {
       ),
     ));
     // Only show records with published nodes
+    /**
     $filters = $view->get_items('filter', 'default');
     $filters['status'] = array(
       'operator' => '=',
@@ -656,6 +657,7 @@ function tripal_stock_views_default_views() {
       'relationship' => 'none',
     );
     $default_handler->override_option('filters', $filters);
+    */
   }
   $views[$view->name] = $view;