From 9751739ffe5d5f09ec772a7dd36018db4bb9d793 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Wed, 15 May 2019 23:03:49 +0000 Subject: [PATCH] lp1616170 SIP Items available subroutine respects is_available - SIP Items.PM available subroutine checks for the is_available field on a status Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm --- Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm index e727732e6f..27fc0530d1 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm @@ -437,10 +437,8 @@ sub print_line { sub available { my ($self, $for_patron) = @_; - my $stat = $self->{copy}->status->id; - return 1 if - $stat == OILS_COPY_STATUS_AVAILABLE or - $stat == OILS_COPY_STATUS_RESHELVING; + my $stat_is_available = $self->{copy}->status->is_available; + return 1 if $stat_is_available; return 0; } -- 2.11.0