Merging all those emails

December 31st, 2006

So you’ve got a few dozen email accounts, right? And now you want to simplify and just have a single inbox or group of imap mbox files, etc. Provided you’ve got access to the spool mbox file, and the mbox files in your imap folders for all the accounts you want to merge, or imap access to said, you can do it with mutt quite simply. Here’s one technique:

mutt -f /path/to/mbox (open the file you want to move)

T . ;s (tag all messages, save to a file)

mutt -f /path/to/newmbox

T ~= ;d (tag all duplicate messages and delete them)

LibLime’s New Website and a Press Release

November 15th, 2006

LibLime launched their new website today: http://liblime.com.

It’s based on the open-source CMS Plone.

Also worth noting, there’s been a press release on Nelsonville Public Library’s new Koha ZOOM system:

http://liblime.com/news-items/press-releases/koha-zoom-goes-live-and-it-rocks/

You can visit NPL’s catalog here: http://search.athenscounty.lib.oh.us

Remove empty parameters from URIs

October 10th, 2006

I recently re-designed the Koha advanced search form for the new API and discovered that it was very difficult to avoid submitting lots of empty parameters with every form submission (this is a very large form with lots of dropdown and checkbox options). The problem is that all those empty parameters really clutter up the URI. So for example, you might just be doing a simple keyword search on Neal Stephenson, but the URI might look something like:

/search?idx=&op=and&q=neal stephenson&limit=&limit=&limit=&sort_by=&num_of_results … you get the picture. So how does one go about cleaning that mess up? I’ve found a couple simple ways to do it, one relies on parsing the URI in the Perl script, removing the empty parameters, and then redirecting the user to the newly formed URI. The other works the same way, but uses mod_rewrite. Here’s some code:
The Perl Way

# first step: find the URI base
my $uri = $cgi->url(-base => 1);
my $relative_url = $cgi->url(-relative=>1);
$uri.=”/”.$relative_url.”?”;
#warn “URI:$uri”;

my @cgi_params_list = $cgi->param();
my $url_params = $cgi->Vars;
for my $each_param_set (@cgi_params_list) {
$uri.= join “”, map “\&$each_param_set=”.$_, split(”\0″,$url_params->{$each_param_set}) if $url_params->{$each_param_set};
}
warn “New URI:$uri”;
# Only re-write a URI if there are params or if it already hasn’t been re-written
unless (($cgi->param(’r')) || (!$cgi->param()) ) {
print $cgi->redirect( -uri=>$uri.”&r=1″,
-cookie => $cookie);
exit;
}

The mod_rewrite way

RewriteEngine On

RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)

RewriteRule (.+) $1?%1%2 [N,R,NE]

My personal preference is the mod_rewrite method. It’s shorter ;) . Also, I’m much more comfortable leaving the logic of rewrites at the web server level rather than messing around at the application level.

If you want to see this recipe in action, check out the Nelsonville Public Library catalog:

http://search.athenscounty.lib.oh.us

Any URI re-writing recipes you’d like to share? Comments, questions?

Rangitikei goes live with Koha

October 2nd, 2006

Congratulations to Rangitikei. They went live with their new Koha system yesterday. They’re running Version 2.2 of Koha with some local customizations — their OPAC is stunningly beautiful in my opinion. Don’t just take my word for it, check it out for yourself: http://www.rangitikeilibrary.org.nz/

Update: Katipo’s done a press release.

Special Collection Libraries Choose Koha

September 27th, 2006

ATHENS, OH –September 27, 2006– LibLime, the leader in open-source solutions for libraries, announced today that three more special library collections have migrated to Koha, the first open-source Integrated Library System. Recent migrations include the Native Village of Afognak Library in Alaska, USA; the Alaska Statewide Mentor Project also in Alaska, USA; and the Childcare Resource and Research Unit, a resource room at the University of Toronto, Canada.

In addition to the commitment and passion they pour into their collections, these libraries have two other things in common: small budgets and large software needs. Koha offers special collection staff and users a feature-rich ILS, a web-based OPAC, and outstanding self-service tools. LibLime gives libraries a refreshing alternative to the proprietary software model, offering turnkey solutions with all the advantages of open source– including the freedom to customize the look and functionality of their ILS.

For the Native Village of Afognak Library (http://library.afognak.org), the challenge was finding a reliable and evolving ILS to automate their unique and growing collection. Koha’s web-based OPAC was critical to Afognak’s mission — to make their collection of Alutiiq and other Native-related library materials accessible to the Native Village of Afognak’s displaced tribal members.

Vera Benedek, Director at the Native Village of Afognak Library, says “We had talked about open-source (Koha) at the beginning, but didn’t feel we had the technology savvy to pull it off […] as we are technologically and time-challenged, as well as short-staffed. We finally decided it would be more cost-effective to hire LibLime to get us set up and trained on open-source — which is continually being improved and updated –than it would be to go with a commercial product that has additional annual costs and probably would be discontinued in a few years.” LibLime’s ‘hosted’ Koha provides Afognak with an affordable turnkey solution to grow with for years to come.

The Childcare Resource and Research Unit (CRRU) at the University of Toronto is a policy and research facility that maintains a comprehensive resource collection of materials on a variety of topics focused on early learning and child care. CRRU chose Koha primarily for its seemlessly integrated OPAC and staff/administration modules and its impressive self-service tools. Michelle Turiano, CRRU’s Resource Officer explains their decision: “Koha satisfied our two needs–patron needs and administrative needs. It provides patrons with powerful online searching of the most current catalogue (as well as the option to pass their query to Google Scholar or other databases), bookbags and automatic requests for hard copies, and enabled patrons access and administration of their accounts. Administratively, CRRU was impressed with Koha’s robust circulation and cataloguing features — staff would be able to maintain and expand the resource collection efficiently and extensively.” CRRU can be found online at http://www.childcarecanada.org

Alaska Statewide Mentor Project, Childcare Resource and Research Unit, and Native Village of Afognak Library all selected LibLime’s ASP (Application Service Provider) Koha package, in which the entire system is hosted and managed by LibLime. This solution is perfect for libraries without an on-site technical staff to handle server maintenance. “As a special resource collection,” says Michelle Turiano, “we were impressed with LibLime’s ability to work with smaller special collection libraries as well as larger institutional libraries. Their ability to work toward the individual needs and goals of the library was a major draw. With Liblime, we are confident that we will be able to both meet our specialized needs and embrace new information and knowledge technology.”

About Koha

Koha is a full-featured Open Source library management system first deployed in January 2000 at Horowhenua Library Trust. It is currently maintained by a team of software providers and library technology staff from around the globe. Several companies around the world support Koha, providing libraries with a full array of vendor services including installation, migration assistance, data integrity testing, staff training, software maintenance, support and customization. To learn more about what services are available visit http://koha.org/support/. To try out Koha for yourself, visit LibLime’s demos:

About LibLime

LibLime’s mission is to make open-source software accessible to libraries.

To that end, LibLime develops and markets affordable and customizable open-source library technology solutions, such as Koha ILS. LibLime also provides full vendor services on these software products including: migration assistance, staff training, and sofware maintenance, support, and development.



Press Contact:

Tina Burger
Vice President, Marketing
LibLime
(888)Koha ILS (564-2457)
tnb@liblime.com

LibLime and the LibLime logo are either registered trademarks or trademarks of LibLime. Other company and product names may be trademarks of their respective owners.

Zebra’s Alvis Filter

September 20th, 2006

I’m really excited about Zebra 2.0 — in particular, the Alvis filter. One of its features is the ability to pass searches and results through pre-defined XSLT stylesheets which can be used to do transformations on the XML (request or result). I can imagine all kinds of ways to utilize this for Koha. It’s certainly going to make template design much more flexible. I’m also excited about the prospect of being able to write a stylesheet to define how field weighting should work (instead of the CCL parser I wrote). This should make it much easier for a library to define how searching should behave.