- Home Page
Categories
Archives
- May 2013
- April 2013
- March 2013
- January 2013
- December 2012
- November 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- March 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- February 2011
- January 2011
- December 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- February 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- June 2006
- May 2006
- April 2006
- February 2006
- November 2005
- October 2005
- September 2005
- June 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
Monthly Archives: December 2006
Knowledge Base gets OpenSearch
If you were looking really hard while browsing our knowledge base recently, you might have noticed your Firefox search window glowing. You are using Firefox aren’t you? (get it here) Ok ok, if you’re stuck with IE7 you might have seen it as well. Anyway, the glowing search box is letting you know that there’s a new search engine available on this page to add to your browser’s drop-down list. This means you can search the PaperCut knowledge base quickly from your browser’s toolbar (without having to browse to the search page first).
It’s done using OpenSearch (WP). Basically it allows adding new engines the browser’s list in a standard way (i.e. you don’t have to write one for every browser out there).
The syntax is really quite simple, the bulk of it being contained in an XML file – an “OpenSearch description document”. You can view the OSDD (I just made that up because I didn’t want to type it again) for our knowledge base here.
Most of it is just fluff that may or may not be ever needed/used. The important bit is the <Url /> tag. You’ll notice ours is quite long – this is mainly to do with customising the search results (excluding pages that aren’t relevant to people looking for answers in the knowledge base). A much simpler form of this tag might look like so:
http://somesite.net/search?q={searchTerms}
Then the following line in the <head> section of a page will make it available for consumption:
<link rel="search" type="application/opensearchdescription+xml"
href="/papercut.osd.xml" title="PaperCut" />
That’s it. The glowing effect in the browser and everything needed to add it to the list of engines is all done for you. Search plugins to the masses!
Posted in General
Leave a comment
A picture is worth … 300k lines of code?
They say a picture is worth a thousand words. In this case it’s worth 300,000 lines of source code! One of the questions we regularly get is, “Is PaperCut under active development? We need to ensure that the system we’re investing is moving with the times.” This is a valid question and a very important consideration for any software application that’s going to form an import part of your infrastructure. Most of our innovative development is focused on PaperCut NG and the product’s release history is a good testament to the rate of development.
Another measure of pace of evolution can be seen in the graph below.

This graph was produce by statsvn using statistics from our source code management system. It only includes source code from PaperCut NG (excludes PaperCut Quota or PaperCut Charge), but it does clearly demonstrate a rapid upwards trend with no signs of slowing!