From ac128c57f62c75e18a6fd7fef9d1949103befe17 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 14 Aug 2006 18:55:16 +0000 Subject: [PATCH] moved currency to config, fleshed available method git-svn-id: svn://svn.open-ils.org/ILS/trunk@5498 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/oils_sip.xml.example | 1 + Open-ILS/src/perlmods/OpenILS/SIP/Item.pm | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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; } -- 2.11.0