libbusiness-creditcard-perl\
libbusiness-isbn-data-perl\
libbusiness-isbn-perl\
+ libbusiness-issn-perl\
libbusiness-onlinepayment-authorizenet-perl\
libbusiness-onlinepayment-perl\
libdatetime-format-builder-perl\
libbusiness-creditcard-perl\
libbusiness-isbn-data-perl\
libbusiness-isbn-perl\
+ libbusiness-issn-perl\
libbusiness-onlinepayment-authorizenet-perl\
libbusiness-onlinepayment-perl\
libdatetime-format-builder-perl\
yaz
export CPAN_MODULES = \
+ Business::ISSN \
Net::Z3950::ZOOM \
Net::Z3950::Simple2ZOOM \
Template::Plugin::POSIX \
deflate
export CPAN_MODULES = \
+ Business::ISSN \
Business::OnlinePayment::PayPal \
Library::CallNumber::LC \
MARC::Record \
libbusiness-edi-perl \
libbusiness-isbn-data-perl\
libbusiness-isbn-perl\
+ libbusiness-issn-perl\
libbusiness-onlinepayment-authorizenet-perl\
libbusiness-onlinepayment-perl\
libdatetime-format-builder-perl\
'APR::Table' => '0',
'Business::CreditCard' => '0',
'Business::ISBN' => '0',
+ 'Business::ISSN' => '0',
'Business::OnlinePayment' => '0',
'Carp' => '0',
'CGI' => '0',
use MIME::Base64;
use Business::ISBN;
+use Business::ISSN;
my $AC = __PACKAGE__;
} else {
my $key_data = get_rec_keys($keyvalue);
my @isbns = grep {$_->{tag} eq '020'} @$key_data;
- my @upcs = grep {$_->{tag} eq '024'} @$key_data;
+ my @issns = grep {$_->{tag} eq '022'} @$key_data;
+ my @upcs = grep {$_->{tag} eq '024'} @$key_data;
map {
my $isbn_obj = Business::ISBN->new($_->{value});
undef $_ if !defined($_->{value});
} @isbns;
+ map {
+ my $issn_obj = Business::ISSN->new($_->{value});
+ my $issn_str;
+ $issn_str = $issn_obj->as_string() if defined($issn_obj && $issn_obj->is_valid);
+ $_->{value} = $issn_str;
+ undef $_ if !defined($_->{value});
+ } @issns;
+
$keyhash = {
isbn => [map {$_->{value}} @isbns],
- upc => [map {$_->{value}} @upcs]
+ issn => [map {$_->{value}} @issns],
+ upc => [map {$_->{value}} @upcs]
};
}
- return Apache2::Const::NOT_FOUND unless @{$keyhash->{isbn}} || @{$keyhash->{upc}};
+ return Apache2::Const::NOT_FOUND unless @{$keyhash->{isbn}} || @{$keyhash->{issn}} || @{$keyhash->{upc}};
try {
if ($handler->can('expects_keyhash') && $handler->expects_keyhash() eq 1) {
]
}, {
'-and' => [
+ {tag => '022'},
+ {subfield => 'a'}
+ ]
+ }, {
+ '-and' => [
{tag => '024'},
{subfield => 'a'},
{ind1 => 1}
my( $self, $page, $keys, $notype ) = @_;
my $uname = $self->userid;
- # Fetch single isbn and single upc
+ # Fetch single isbn, upc, and issn
my $isbn = $keys->{isbn}[0];
- my $upc = $keys->{upc}[0];
+ my $upc = $keys->{upc}[0];
+ my $issn = $keys->{issn}[0];
$isbn = '' if !defined($isbn);
- $upc = '' if !defined($upc);
+ $upc = '' if !defined($upc);
+ $issn = '' if !defined($issn);
- my $url = $self->base_url . "?isbn=$isbn/$page&upc=$upc&client=$uname" . (($notype) ? '' : "&type=rw12");
+ my $url = $self->base_url . "?isbn=$isbn/$page&upc=$upc&issn=$issn&client=$uname" . (($notype) ? '' : "&type=rw12");
return $AC->get_url($url);
}