Only print list of references if in verbose mode.
Only print selected reference if in verbose mode.
Use the utf8 pragma.

This pragma tells the Perl parses that the script is written in UTF-8.  None
of the text right now requires it, but some of the references involved are
encoded in UTF-8 and use non-ASCII characters.
Tell the DB connection to expect UTF-8.

Added a setting to the connect method call to enable UTF-8 in the connection
with the PostgreSQL database.  Without this, UTF-8-encoded text was being
interpreted as ASCII (presumably).  This was even with the -CSD command line
switch (see http://perldoc.perl.org/perlrun.html#-C for information on the -C
switch), which made Perl assume input and output for standard streams and
other (file) streams were in UTF-8.  This did not affect the database
connection, probably, since that connection is not a standard stream or file
stream.

See http://wiki.catalystframework.org/wiki/tutorialsandhowtos/Using_Unicode.inline
for more information on using UTF-8 in a Catalyst application.  Other types of
databases use different settings.  For example, use "mysql_enable_utf8 => 1"
for MySQL, and "unicode => 1" for SQLite.
Pass a hash ref as the search condition.

DBIx complains that the hash parameter for the search condition is deprecated.
Switched this parameter to be a hash ref to remove the warning, and get with
the times.
Print a status message before searching for a match.
Print more info about the selected reference.

After selecting a reference to use for the search, print additional
information about it.  This includes the id of the referencing work and the
id of the reference itself, to make it easier to look up the referencing work
or the reference.
Include id of work with best match in output.
Check if citation does not have a title.

If ParsCit cannot get a title from a reference, the getTitle accessor method
returns null.  Check that this value is true (is defined and is not an empty
string) before checking its length.  If either test indicate we do not have a
title, use the full reference text in comparisons.