Using browser shortcuts to search UCM

I don't take advantage of a lot of the shortcuts that are available in different operating systems and applications, but one shortcut that I've found really valuable is the search shortcut in browsers. And in regards to UCM/URM, being able to configure those shortcuts to search those repositories.

For instance, in my Google Chrome address bar, I can begin by typing 'ucm' and then my search term:

chrome_search.png

Hit enter and it will send the search term to UCM to return the results:

search_result.png

For most of my general browsing and work, I'd say I use Google Chrome 95% of the time. Occasionally I'll switch Firefox. And every so often I'll need to use Internet Explorer for something. I've found the search shortcuts for both Chrome and Firefox, but haven't found the equivalent in IE (at least not in IE 8). So I'll go through the setup steps for both Chrome and Firefox.

Chrome


  1. Go to UCM/URM and in the Quick Search at the top right, put in a dummy search term like 'zzz' and search.

  2. If you use the Top Menus layout, copy the URL to the clipboard. If you use the Trays layout, right click in the results frame and select 'Open frame in new tab'. Then copy the URL from that new tab.

  3. Right click in the address bar and select 'Edit search engines'.

  4. Click the 'Add' button.

  5. For Name, give the search engine a name such as UCM or however the repository is termed in your organization.

  6. For Keyword, enter the key(s) to type to identify the search engine in the address bar. This could be a single character or something like 'ucm'.

  7. For URL, paste in the URL that was copied in the step 2. In the URL, replace the two instances of 'zzz' with '%s'.

    add_search_engine.png


  8. Click OK and close the search engines dialog

Firefox


  1. Go to UCM/URM and in the Quick Search at the top right, put in a dummy search term like 'zzz' and search.

  2. If you use the Trays layout, right click in the results frame and select 'This Frame -> Show Only This Frame'. If you use the Top Menus layout, the URL should be correct in the address bar.

  3. In the Firefox menu, go to Bookmarks and select Bookmark This Page.

  4. Name the bookmark such as 'UCM Search' and place it in the desired bookmarks folder.

  5. Go back to Bookmarks and right-click on the new bookmark and choose Properties

  6. For the Keyword, enter the key(s) to type to identify the search engine in the address bar. This could be a single character or something like 'ucm'.

  7. For the Location, replace the two instances of 'zzz' with '%s'.

    ucm_search_properties.png


  8. Click Save

Now if you go to the top and type in the keyword and then your search term, it should then perform the search.

One thing you can add to the end of the URL in either case is '&Auth=Internet'. This will force authentication so that your search will be performed as your authenticated user and not anonymously (if you haven't authenticated in your browser session yet).

Power Users

targeted_quick_search_term.png
>One of the additional features of Quick Search in UCM that I like to use is the Targeted Quick Searches. That allows me to put in a shortcut key to search based on metadata. And because users can create their own, I have several set up such as 'as' which searches for Authors starting with.... or 'et' which would search for Extension and Title.

Well...the conversion of the shortcut key to the actual search query string happens in the JavaScript of the page. This means I can't simply pass in 'as jcoop' in the URL search term and have it work. It has to first go to a page that has the quick search form on it, get translated via JavaScript, then perform the search. So to incorporate that style of search with the browser shortcut, I have an HCST page that has just the quick search form on it that I can use. So instead of setting up my URL directly to the search results URL like I do in the above steps, I set it to the URL to the HCST file and pass in my search term to it. So the URL looks like:

http://server:16200/cs/groups/public/documents/system/quicksearchresults.hcst?&MiniSearchText=%s&Auth=Internet

Here is a copy of my

HCST sample page
to use. I have the quick search form hidden on the page with CSS and instead display a message that the search is being performed.

If anyone knows how to do this with Internet Explorer (or Safari or Opera), please share!

Comments:

That is pretty slick. I will have to try this out. I love all the tips and tricks on your blog.

Posted by Jonathan on September 29, 2010 at 09:51 AM CDT #

Hi Kyle, I think I have worked out the IE search shortcut: 1) Copy the link as per your article 2) Go to this link - http://www.ieaddons.com/au/createsearch.aspx 3) Replace zzz with "TEST" 4) Give it a name and click Install Search provider However, the Authentication method is not working... any tips on that one?

Posted by Virginia on December 28, 2010 at 09:42 AM CST #

Hey Virginia, Thanks for the IE tip! Yeah, it worked great for me as well. And it also worked when I added '&Auth=Internet' at the end to force authentication as well. So I'm not sure why that part did not work for you. Do you use local users for authentication or LDAP/AD? SSO in place? In each case though, that flag should cause UCM to challenge you. Try just going to the home page and then click on the Search link. You should be able to get to that page without logging in. Then in the URL in the browser, just try adding the '&Auth=Internet' piece there. It should challenge you then to log in. Thanks, Kyle

Posted by kyle.hatlestad on December 30, 2010 at 01:44 AM CST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Kyle Hatlestad is a Solution Architect in the WebCenter Architecture group (A-Team) who works with WebCenter Content and other products in the WebCenter & Fusion Middleware portfolios. The WebCenter A-Team blog can be found at: https://blogs.oracle.com/ ateam_webcenter/

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today