21725c3a2c
This includes some initial work for the 3M SIP2 extensions. It also better populates the Patron object with methods for a fuller Patron Information Reponse. This is positively affect EnvisionWare software, as used by NEKLS. This work was sponsored by the Northeast Kansas Library System. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
60 lines
856 B
Perl
60 lines
856 B
Perl
#
|
|
#
|
|
#
|
|
#
|
|
|
|
package Sip::Configuration::Institution;
|
|
|
|
use strict;
|
|
use warnings;
|
|
use English;
|
|
# use Exporter;
|
|
|
|
sub new {
|
|
my ($class, $obj) = @_;
|
|
my $type = ref($class) || $class;
|
|
|
|
if (ref($obj) eq "HASH") {
|
|
# Just bless the object
|
|
return bless $obj, $type;
|
|
}
|
|
|
|
return bless {}, $type;
|
|
}
|
|
|
|
sub name {
|
|
my $self = shift;
|
|
return $self->{name};
|
|
}
|
|
|
|
sub id {
|
|
my $self = shift;
|
|
return $self->{id};
|
|
}
|
|
|
|
sub implementation {
|
|
my $self = shift;
|
|
return $self->{implementation};
|
|
}
|
|
|
|
sub policy {
|
|
my $self = shift;
|
|
return $self->{policy};
|
|
}
|
|
|
|
# 'policy' => {
|
|
# 'checkout' => 'true',
|
|
# 'retries' => 5,
|
|
# 'checkin' => 'true',
|
|
# 'timeout' => 25,
|
|
# 'status_update' => 'false',
|
|
# 'offline' => 'false',
|
|
# 'renewal' => 'true'
|
|
# },
|
|
|
|
sub parms {
|
|
my $self = shift;
|
|
return $self->{parms};
|
|
}
|
|
|
|
1;
|