Interactive debugging aides for SIP abstraction layer.
authorJoe Atzberger (siptest <atz4sip@arwen.metavore.com>
Wed, 4 Jun 2008 23:14:56 +0000 (18:14 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 6 Jun 2008 03:43:44 +0000 (22:43 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/SIP/interactive_item_dump.pl [new file with mode: 0755]
C4/SIP/interactive_patron_dump.pl [new file with mode: 0755]
C4/SIP/interactive_renew_all_dump.pl [new file with mode: 0755]

diff --git a/C4/SIP/interactive_item_dump.pl b/C4/SIP/interactive_item_dump.pl
new file mode 100755 (executable)
index 0000000..ece250e
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+#
+
+use warnings;
+use strict;
+
+use ILS::Item;
+use Data::Dumper;
+
+while (1) {
+       print "Enter item barcode: ";
+       my $in = <>;
+       defined($in) or last;
+       chomp($in);
+       last unless $in;
+       my $patron = ILS::Item->new($in);
+       print Dumper($patron);
+}
diff --git a/C4/SIP/interactive_patron_dump.pl b/C4/SIP/interactive_patron_dump.pl
new file mode 100755 (executable)
index 0000000..557d2f7
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+#
+
+use warnings;
+use strict;
+
+use ILS::Patron;
+use Data::Dumper;
+
+while (1) {
+       print "Enter patron barcode: ";
+       my $in = <>;
+       defined($in) or last;
+       chomp($in);
+       last unless $in;
+       my $patron = ILS::Patron->new($in);
+       print Dumper($patron);
+}
diff --git a/C4/SIP/interactive_renew_all_dump.pl b/C4/SIP/interactive_renew_all_dump.pl
new file mode 100755 (executable)
index 0000000..27e775a
--- /dev/null
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+#
+
+use warnings;
+use strict;
+
+use ILS::Transaction::RenewAll;
+use Data::Dumper;
+
+while (1) {
+       print "Enter patron barcode: ";
+       my $in = <>;
+       defined($in) or last;
+       chomp($in);
+       last unless $in;
+       my $patron = ILS::Patron->new($in);
+       print "Patron before: \n " . Dumper($patron);
+       my $action = ILS::Transaction::RenewAll->new();
+       $action->do_renew_all();
+       print "\n\nTransaction::RenewAll: " . Dumper($action);
+       print "\n", "=" x 35, "\n";
+}