View | Details | Raw Unified | Return to bug 26618
Collapse All | Expand All

(-)a/C4/RotatingCollections.pm (-2 / +8 lines)
Lines 473-479 sub TransferCollection { Link Here
473
                    );    # Queue transfer
473
                    );    # Queue transfer
474
                    push @{$messages},
474
                    push @{$messages},
475
                      {
475
                      {
476
                        type           => 'enqueu',
476
                        type           => 'alert',
477
                        code           => 'enqueued',
477
                        item           => $item_object,
478
                        item           => $item_object,
478
                        found_transfer => $found_transfer
479
                        found_transfer => $found_transfer
479
                      };
480
                      };
Lines 492-498 sub TransferCollection { Link Here
492
                }
493
                }
493
            }
494
            }
494
            elsif ( $_->isa('Koha::Exceptions::Item::Transfer::Limit') ) {
495
            elsif ( $_->isa('Koha::Exceptions::Item::Transfer::Limit') ) {
495
                push @{$messages}, { type => 'failure', item => $item_object };
496
                push @{$messages},
497
                  {
498
                    type => 'error',
499
                    code => 'limits',
500
                    item => $item_object
501
                  };
496
            }
502
            }
497
            else {
503
            else {
498
                $_->rethrow();
504
                $_->rethrow();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt (-11 / +8 lines)
Lines 21-36 Link Here
21
21
22
                [% IF ( messages ) %]
22
                [% IF ( messages ) %]
23
                    [% FOREACH message IN messages %]
23
                    [% FOREACH message IN messages %]
24
                        [%- SWITCH message.type -%]
24
                        <div class="dialog [% m.type | html %]">
25
                            [%- CASE 'failure' %]
25
                        [%- SWITCH message.code -%]
26
                            <div class="dialog error">
26
                        [%- CASE 'limits' %]
27
                                <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p>
27
                            <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p>
28
                            </div>
28
                        [%- CASE 'enqueued' -%]
29
                            [%- CASE 'enqueu' -%]
29
                            <p>Item [% message.item.itemnumber | html %] queued behind [% message.found_transfer.reason | html %] transfer to [% Branches.GetName(message.found_transfer.tobranch) | html %]</p>
30
                            <div class="dialog message">
30
                        [% END %]
31
                                <p>Item [% message.item.itemnumber | html %] queued behind [% message.found_transfer.reason | html %] transfer to [% Branches.GetName(message.found_transfer.tobranch) | html %]</p>
31
                        </div>
32
                            </div>
33
                       [% END %]
34
                    [% END %]
32
                    [% END %]
35
                [% END %]
33
                [% END %]
36
34
37
- 

Return to bug 26618