Koha/C4/SIP/interactive_members_dump.pl
Joe Atzberger (siptest 99efcf83f0 Interactive tests for SIP abstraction representation and Members.
The test for members is useful to compare against the SIP (ILS)
representation.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-25 11:45:30 -05:00

22 lines
476 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($in, 'cardnumber'));
my ($member) = GetMemberDetails(undef, $in);
my $flags = $member->{flags};
print "GetMemberDetails (member) : \n", Dumper($member);
print "GetMemberDetails ( flags) : \n", Dumper($flags);
print "=" x 10, "\n";
}