Enterprise Content Management systems are great for the classification, storage and retrieval of information, but you have to navigate to them. Oracle’s Universal Content Management technology has a great Desktop Integration Suite to allow for search and retrieval of UCM information outside of the actual CMS, but my laziness reached new levels this past week – I wanted to search directly from my Google Chrome browser window, without opening the web interface for UCM.
The solution? I decided to take a look at what it would take to use the service oriented nature of UCM to create an extension for Google Chrome. After a few hours of development and a few cups of coffee I ended up with an extension that allows a search to be executed from and results displayed within an extension dialuge.
To make this all possible, the extension leverages
Getting Started – Architecture of a Google Chrome Extension
IMHO Google made a very smart choice by leveraging client side web technologies for extension development. I was able to take my knowledge of HTML, CSS and JQuery, applying them to create this extension. Check out the overview of the Chrome Extension architecture for more details.
For our purposes the following are key files for this sample extension
- manifest.JSON – the configuration file for your extension. View full details of the extension manifest.JSON file.
- search.html (generally popup.html) – this is a “content” page in the extension and provides us with the inteface when the extension toolbar buttion is clicked.
- options.html – this will allow us to save the UCM server value using HTML5 localstorage.
- background.html – critical in creating an interface for the search.html file to access the localstorage values. The background.html file runs as a background processes within Chrome and is used as a mediator between “content” pagees like search.html.
Ingrediants for our Chrome Extension
I was able to create the extension so quickly due to great work from other people in the community. I would like to express my thanks to
- Awesome JQuery plugin by Bex Huff which allows for straightforward access to the JSON response from UCM
- Tablesorter JQuery extension
- HTML5 LocalStorage APIs
- How to Build a Chrome Extension
- Function Icon Set
Please note that this is a personal sample extension and not one that is supported by Oracle.