myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2561] trunk/app/controllers/application.rb: adde


From: noreply
Subject: [myexperiment-hackers] [2561] trunk/app/controllers/application.rb: added WSDL and curation events to filters
Date: Mon, 21 Feb 2011 19:35:02 -0500 (EST)

Revision
2561
Author
dgc
Date
2011-02-21 19:35:01 -0500 (Mon, 21 Feb 2011)

Log Message

added WSDL and curation events to filters

Modified Paths

Diff

Modified: trunk/app/controllers/application.rb (2560 => 2561)


--- trunk/app/controllers/application.rb	2011-02-21 15:31:11 UTC (rev 2560)
+++ trunk/app/controllers/application.rb	2011-02-22 00:35:01 UTC (rev 2561)
@@ -502,26 +502,36 @@
           :joins        => [ :networks ]
         },
 
-#       {
-#         :title        => 'curation',
-#         :query_option => 'CURATION_EVENT',
-#         :id_column    => 'curation_events.category',
-#         :label_column => 'curation_events.category',
-#         :joins        => [ :curation_events ],
-#         :capitalize   => true
-#       },
+        {
+          :title        => 'wsdl',
+          :query_option => 'WSDL_ENDPOINT',
+          :id_column    => 'workflow_processors.wsdl',
+          :label_column => 'workflow_processors.wsdl',
+          :joins        => [ :workflow_processors ],
+          :not_null     => true
+        },
+
+        {
+          :title        => 'curation',
+          :query_option => 'CURATION_EVENT',
+          :id_column    => 'curation_events.category',
+          :label_column => 'curation_events.category',
+          :joins        => [ :curation_events ],
+          :capitalize   => true
+        },
       ],
 
       :joins =>
       {
-        :content_types   => "LEFT OUTER JOIN content_types ON contributions.content_type_id = content_types.id",
-        :licences        => "LEFT OUTER JOIN licenses ON contributions.license_id = licenses.id",
-        :users           => "INNER JOIN users ON contributions.contributor_type = 'User' AND contributions.contributor_id = users.id",
-        :taggings        => "LEFT OUTER JOIN taggings ON contributions.contributable_type = taggings.taggable_type AND contributions.contributable_id = taggings.taggable_id",
-        :tags            => "INNER JOIN tags ON taggings.tag_id = tags.id",
-        :networks        => "INNER JOIN networks ON permissions.contributor_type = 'Network' AND permissions.contributor_id = networks.id",
-        :credits         => "INNER JOIN creditations ON creditations.creditable_type = contributions.contributable_type AND creditations.creditable_id = contributions.contributable_id",
-        :curation_events => "INNER JOIN curation_events ON curation_events.object_type = contributions.contributable_type AND curation_events.object_id = contributions.contributable_id"
+        :content_types       => "LEFT OUTER JOIN content_types ON contributions.content_type_id = content_types.id",
+        :licences            => "LEFT OUTER JOIN licenses ON contributions.license_id = licenses.id",
+        :users               => "INNER JOIN users ON contributions.contributor_type = 'User' AND contributions.contributor_id = users.id",
+        :taggings            => "LEFT OUTER JOIN taggings ON contributions.contributable_type = taggings.taggable_type AND contributions.contributable_id = taggings.taggable_id",
+        :tags                => "INNER JOIN tags ON taggings.tag_id = tags.id",
+        :networks            => "INNER JOIN networks ON permissions.contributor_type = 'Network' AND permissions.contributor_id = networks.id",
+        :credits             => "INNER JOIN creditations ON creditations.creditable_type = contributions.contributable_type AND creditations.creditable_id = contributions.contributable_id",
+        :curation_events     => "INNER JOIN curation_events ON curation_events.object_type = contributions.contributable_type AND curation_events.object_id = contributions.contributable_id",
+        :workflow_processors => "INNER JOIN workflow_processors ON contributions.contributable_type = 'Workflow' AND workflow_processors.workflow_id = contributions.contributable_id"
       }
     }
   end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]