Biblio::Biblio - Interface class for bibliographic databases
use Biblio::Biblio; my $bib = new Biblio::Biblio('file' => 'sample.bib') or die "Can't open bibliographic database!\n"; my $bib = new Biblio::Biblio(qw( class Database dbms mysql dbhost samplehost dbname biblio dbuser biblio dbpass biblio shortcuts_table shortcuts )) or die "Can't open bibliographic database!\n"; my $refs = $bib->queryPapers(); print join(', ', keys(%{$refs})), "\n";
Class Biblio provides an abstract interface for bibliographic databases. It also can be used as a factory for a concrete database implementation.
Supported database classes are:
All databases that can be accessed through Perl's DBI module. The mapping of database fields can be configured (arguments 'column-mapping' and 'column-types', see OOo-table.pbib for an example).
Several kind of files, such as bibtex, refer, endnote, tib. This uses the cool bp package, a Perl Bibliography Package by Dana Jacobsen (dana@acm.org).
You can write your own subclass and pass the class name as the 'class' argument.
Factory method for concrete database implementations.
Supported Options:
Class name. If one of the options file, dbname, dsn, or dbms is specified, it is set automatically to Bibilio::File or Biblio::Database. If the class name does not contain a '::' the classname is prefixed with 'Biblio::'.
Filename in bibtex, refer or any other supported format.
Name of database type, e.g. ODBC or mysql. This is in fact DBI's dbms argument.
Hostname. Passed to DBI.
Name of the database. Passed to DBI.
User and password. Passed to DBI.
You can directly specify a DSN that is passed to DBI.
Be more verbose and keep the verbose flag within the options.
Be more quite and keep the quiet flag within the options.
Depending on the Biblio class used, other arguments can be specified here.
In addition, some arguments can be specified in the environment:
Peter Tandler pbib@tandlers.de
Copyright (C) 2002-2004 P. Tandler
For copyright information please refer to the LICENSE file included in this distribution.
For usage examples, please refer to PBib, e.g. bin\pbib.pl, bin\PBibTk.pl
To install Biblio::BP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Biblio::BP
CPAN shell
perl -MCPAN -e shell install Biblio::BP
For more information on module installation, please visit the detailed CPAN module installation guide.