moved currency to config, fleshed available method
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Aug 2006 18:55:16 +0000 (18:55 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Aug 2006 18:55:16 +0000 (18:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5498 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/oils_sip.xml.example
Open-ILS/src/perlmods/OpenILS/SIP/Item.pm

index c968849..7d3c4e5 100644 (file)
@@ -55,6 +55,7 @@
                        <!-- implementation specific config options go here -->
                        <implementation_config>
                                <bootstrap>/openils/conf/bootstrap.conf</bootstrap>
+                               <currency>USD</currency>
 
                                <!-- These defines what this SIP code has the ability to support -->
                                <supports>
index 359af76..02e0bd9 100644 (file)
@@ -280,8 +280,14 @@ sub print_line {
 # OR
 # 2) It's checked out to the patron and there's no hold queue
 sub available {
-     my ($self, $for_patron) = @_;
-         return 1;
+       my ($self, $for_patron) = @_;
+
+       my $stat = $self->{copy}->status->id;
+       return 1 if 
+               $stat == OILS_COPY_STATUS_AVAILABLE or
+               $stat == OILS_COPY_STATUS_RESHELVING;
+       
+       return 0;
 }