Introduction
In a post I made a few years ago, I described how you can add WebCenter Content (UCM at the time) search to the browser’s search engines. I think this is a handy shortcut if you find yourself performing searches often enough in WCC.
Main Article
Well, in the PS5 release, this was actually included as a new feature. You need to enable the DesktopIntegrationSuite component in order to access it. Once you do, go to the My Content Server -> My Downloads link. There you will see the ‘Add browser search’ link.
Once clicked, an OpenSearchDescription XML file is produced which each modern browser supports for adding in the search engine.
The one piece that’s missing is something I mentioned in my earlier post: forcing authentication. If you haven’t logged into the server, your search will be performed anonymously and you will only get back content that is available to the guest role. To make sure the search is performed as your user, the extra parameter Auth=Internet can be passed to the server to cause the server to challenge your request and force a login if needed. Because the definition of the search engine URL is defined within the DesktopIntegrationSuite component, a new custom component can be added to override this. Basically, the new component must override the dis_search_plugin resource and modify the Url locations. Below is an example:
<@dynamichtml dis_search_plugin@> <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <ShortName><$if DIS_SearchPluginTitle$><$DIS_SearchPluginTitle$><$else$>Oracle WebCenter Content Server Search<$endif$></ShortName> <Description><$lc("wwDISSearchPluginDescription")$></Description> <Url type="text/html" method="get" template="<$xml(HttpBrowserFullCgiPath & "?IdcService=DESKTOP_BROWSER_SEARCH&Auth=Internet&MiniSearchText={searchTerms}")$>" /> <$iconlocation=strReplace(HttpBrowserFullCgiPath,HttpCgiPath,"") & HttpImagesRoot & "desktopintegrationsuite/dis_search_plugin.ico"$> <Image height="16" width="16" type="image/x-icon"><$iconlocation$></Image> <Developer>Oracle Corporation</Developer> <InputEncoding>UTF-8</InputEncoding> <moz:SearchForm><$xml(HttpBrowserFullCgiPath & "?IdcService=DESKTOP_BROWSER_SEARCH&<strong>Auth=Internet</strong>&MiniSearchText=")$></moz:SearchForm> </OpenSearchDescription> <$setContentType("application/xml")$> <$setHttpHeader("Content-Disposition","inline; filename=search_plugin.xml")$> <$setHttpHeader("Cache-Control", "public")$> <@end@>
I’ve included a a sample component that does just that.
UPDATE (Jan 15, 2013)
In addition to enabling the component, there is also a configuration preference that must be enabled. After enabling the Desktop Integration Suite component, go to the ‘advanced component manager’. Go to the bottom to the ‘Update Component Configuration’ list and select DesktopIntegrationSuite and click Update. The first entry is to ‘Enable web browser search plug-in’. Check that and click Update.
If you’ve already restarted to enable the DIS component, you do not need to restart for this configuration to take effect.
All content listed on this page is the property of Oracle Corp. Redistribution not allowed without written permission