From: erickson Date: Mon, 14 Aug 2006 18:55:16 +0000 (+0000) Subject: moved currency to config, fleshed available method X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ac128c57f62c75e18a6fd7fef9d1949103befe17;p=evergreen%2Fpines.git moved currency to config, fleshed available method git-svn-id: svn://svn.open-ils.org/ILS/trunk@5498 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/oils_sip.xml.example b/Open-ILS/examples/oils_sip.xml.example index c968849f19..7d3c4e58ab 100644 --- a/Open-ILS/examples/oils_sip.xml.example +++ b/Open-ILS/examples/oils_sip.xml.example @@ -55,6 +55,7 @@ /openils/conf/bootstrap.conf + USD diff --git a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm index 359af7606c..02e0bd9c32 100644 --- a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm +++ b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm @@ -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; }