Implement stub support for Checkin operations in the ILS
authordjfiander <djfiander>
Wed, 5 Apr 2006 01:52:32 +0000 (01:52 +0000)
committerdjfiander <djfiander>
Wed, 5 Apr 2006 01:52:32 +0000 (01:52 +0000)
ILS/Transaction/Checkin.pm [new file with mode: 0644]

diff --git a/ILS/Transaction/Checkin.pm b/ILS/Transaction/Checkin.pm
new file mode 100644 (file)
index 0000000..cf43a89
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# An object to handle checkin status
+#
+
+package ILS::Transaction::Checkin;
+
+use Exporter;
+use warnings;
+use strict;
+
+use POSIX qw(strftime);
+
+use ILS;
+use ILS::Transaction;
+
+our @ISA = qw(Exporter ILS::Transaction);
+
+sub new {
+    my ($class, $obj) = @_;
+    my $type = ref($class) || $class;
+    my ($item, $patron);
+
+    $obj = {};
+
+    return bless $obj, $type;
+}
+
+sub resensitize {
+    my $self = shift;
+
+    return !$self->{item}->magnetic;
+}
+
+sub magnetic_media {
+    my $self = shift;
+
+    return $self->{item}->magnetic;
+}
+
+1;