UseCase "Customize my standard search interface"

From SMW CindyKate - Main
Component1261227671
Jump to: navigation, search

Content

IsCarriedOutBy SearchEngineer

Specify your plugin to be loaded

# @hSearchConfigOnServer
---
aPluginURLs: [
  dataspectsPlugins/mySearchEngine
]

Create your dataspectsPlugins/mySearchEngine/my_standard_search_interface.rb

module Dataspects
  class MyStandardSearchInterface < DataspectsInterface

    def initialize oDataspectsRequest
      super(oDataspectsRequest)
    end

    def html
      # Your code
      # Include request data from @oDataspectsRequest
    end

  end
end

Specify your customized standard search interface

// @hParamsFromRequest
hParamsFromRequest = {
  sInterface: 'MyStandardSearchInterface'
}