[Koha-patches] [PATCH] bug 3638 On CheckIn via SIP update the Hold status to waiting if Reserved

Galen Charlton gmcharlt at gmail.com
Wed Sep 16 13:19:07 CEST 2009


Hi Colin,

I have a question about the workflow.  Are most or all SIP2
self-checkout devices capable of making sure that there's enough
notice given to the circulation desk so that the item actually gets
picked up and placed on the hold shelf or transferred?

Regards,

Galen

On Wed, Sep 16, 2009 at 4:25 AM, Colin Campbell
<colin.campbell at ptfs-europe.com> wrote:
> Hold status was unchanged when on-hold items were returned
> via the SIP2 interface.
> ---
>  C4/SIP/ILS/Transaction/Checkin.pm |   12 +++++++++++-
>  1 files changed, 11 insertions(+), 1 deletions(-)
>
> diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm
> index d3a4700..23d778d 100644
> --- a/C4/SIP/ILS/Transaction/Checkin.pm
> +++ b/C4/SIP/ILS/Transaction/Checkin.pm
> @@ -14,6 +14,7 @@ use ILS::Transaction;
>
>  use C4::Circulation;
>  use C4::Debug;
> +use C4::Reserves;
>
>  our @ISA = qw(ILS::Transaction);
>
> @@ -76,7 +77,16 @@ sub do_checkin {
>     if ($messages->{ResFound}) {
>         $self->hold($messages->{ResFound});
>         $debug and warn "Item returned at $branch reserved at $messages->{ResFound}->{branchcode}";
> -        $self->alert_type(($branch eq $messages->{ResFound}->{branchcode}) ? '01' : '02');
> +        my $do_transfer;
> +        if ($branch eq $messages->{ResFound}->{branchcode}) {
> +            $self->alert_type('01');
> +        } else {
> +            $self->alert_type('02');
> +            $do_transfer = 1;
> +        }
> +        C4::Reserves::ModReserveAffect($messages->{ResFound}->{itemnumber},
> +            $messages->{ResFound}->{borrowernumber},
> +            $do_transfer);
>     }
>     $self->alert(1) if defined $self->alert_type;  # alert_type could be "00", hypothetically
>     $self->ok($return);
> --
> 1.6.2.5
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>



-- 
Galen Charlton
gmcharlt at gmail.com



More information about the Koha-patches mailing list