4271bbb738
This update the way Member is added and editing so that import and Edition could be best automatized GetMember evolves and allow ppl to serach on a hash of data Adding SQLHelper A new package to deal with INSERT UPDATE and SELECT Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
22 lines
480 B
Perl
Executable file
22 lines
480 B
Perl
Executable file
#!/usr/bin/perl
|
|
#
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
use C4::Members;
|
|
use Data::Dumper;
|
|
|
|
while (1) {
|
|
print "Enter patron barcode: ";
|
|
my $in = <>;
|
|
defined($in) or last;
|
|
chomp($in);
|
|
last unless $in;
|
|
print "GetMember : \n", Dumper(GetMember('cardnumber'=>$in));
|
|
my ($member) = GetMemberDetails(undef, $in);
|
|
my $flags = $member->{authflags};
|
|
print "GetMemberDetails (member) : \n", Dumper($member);
|
|
print "GetMemberDetails ( flags) : \n", Dumper($flags);
|
|
print "=" x 10, "\n";
|
|
}
|