GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EBOOK::TOOLS::BISG (3)

.ds Aq ’

NAME

EBook::Tools::BISG - Class for downloading information from the Book Industry Study Group webpages

CONTENTS

SYNOPSIS



 use EBook::Tools::BISG;
 my $bisg = EBook::Tools::BISG->new();
 $bisg->download_bisac;
 $bisg->save_bisac;
 say $bisg->bisac(fic000000);
 %bisac_codes = $bisg->bisac();



DEPENDENCIES

o DBI

This will also require a DBD of your choice. The default is to use a local SQLite store.

o LWP
o Mojo::DOM

CONSTRUCTOR

CWnew(%args)

Instantiates a new Ebook::Tools::BISG object.

Arguments
o baseurl

The base url of the bisg.org website or mirror to use.

o dsn

The Perl::DBI Data Source Name. Defaults to a sqlite store named bisac.sqlite in the user config directory.

ACCESSOR METHODS

CWbisac($code)

Returns either the name matching a particular code (case-insensitive), or the hash of all BISAC codes and references with the keys in lower-case if no argument is provided.

CWfind($regexp)

Returns a list of all BISAC values (names) where either the key or the value for that entry matches a case-insensitive regular expression. If no argument is specified, or it is just ’.’, then the entire list is returned.

MODIFIER METHODS

CWdownload_bisac()

Downloads the BISAC codes from the BISG website and converts them into a hash. Codes and obsolete entries are lowercased and made the keys, the values will be the official names they map to.

CWload_bisac()

Load the BISAC codes from the specified database into the hash. This is called automatically by new().

If the load fails, nothing will happen (silently!), so the only way to tell is to check to see if you have a populated hash afterwards.

CWsave_bisac()

Save the BISAC codes in the hash to the database. This will destroy any existing table named bisac_codes.

Croaks on failure.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 EBOOK::TOOLS::BISG (3) 2016-04-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.