@@ -, +, @@ --- C4/RotatingCollections.pm | 10 ++++++++-- .../rotating_collections/transferCollection.tt | 18 ++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) --- a/C4/RotatingCollections.pm +++ a/C4/RotatingCollections.pm @@ -473,7 +473,8 @@ sub TransferCollection { ); # Queue transfer push @{$messages}, { - type => 'enqueu', + type => 'alert', + code => 'enqueued', item => $item_object, found_transfer => $found_transfer }; @@ -492,7 +493,12 @@ sub TransferCollection { } } elsif ( $_->isa('Koha::Exceptions::Item::Transfer::Limit') ) { - push @{$messages}, { type => 'failure', item => $item_object }; + push @{$messages}, + { + type => 'error', + code => 'limits', + item => $item_object + }; } else { $_->rethrow(); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt @@ -21,16 +21,14 @@ [% IF ( messages ) %] [% FOREACH message IN messages %] - [%- SWITCH message.type -%] - [%- CASE 'failure' %] -
-

Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits

-
- [%- CASE 'enqueu' -%] -
-

Item [% message.item.itemnumber | html %] queued behind [% message.found_transfer.reason | html %] transfer to [% Branches.GetName(message.found_transfer.tobranch) | html %]

-
- [% END %] +
+ [%- SWITCH message.code -%] + [%- CASE 'limits' %] +

Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits

+ [%- CASE 'enqueued' -%] +

Item [% message.item.itemnumber | html %] queued behind [% message.found_transfer.reason | html %] transfer to [% Branches.GetName(message.found_transfer.tobranch) | html %]

+ [% END %] +
[% END %] [% END %] --