@@ -, +, @@ --- circ/branchtransfers.pl | 1 - .../prog/en/modules/circ/branchtransfers.tt | 35 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) --- a/circ/branchtransfers.pl +++ a/circ/branchtransfers.pl @@ -203,7 +203,6 @@ foreach my $code ( keys %$messages ) { my ( $tbr, $typecode ) = split( /::/, $messages->{'NotAllowed'} ); $err{tbr} = $branches->{ $tbr }->{'branchname'}; $err{code} = $typecode; - $err{codeType} = C4::Context->preference("BranchTransferLimitsType"); } elsif ( $code eq 'IsPermanent' ) { $err{errispermanent} = 1; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% USE ItemTypes %] [% USE AuthorisedValues %] [% INCLUDE 'doc-head-open.inc' %] @@ -114,7 +115,7 @@ [% IF ( errmsgloo.errnotallowed ) %]
  • Transfer is not allowed for:
      - [% IF ( errmsgloo.codeType ) == 'itemtype' %] + [% IF ( Koha.Preference('BranchTransferLimitsType') == 'itemtype' ) %]
    1. Item type: [% ItemTypes.GetDescription( errmsgloo.code ) %]
    2. [% ELSE %]
    3. Collection code: [% AuthorisedValues.GetByCode( 'CCODE', errmsgloo.code ) %]
    4. @@ -175,25 +176,25 @@ - - - - - - - - + + + + + + + + [% FOREACH trsfitemloo IN trsfitemloop %] - - - - - - - - + + + + + + + + [% END %]
      Transferred items
      TitleAuthorBarcodeShelving locationCall numberItem typeCollection codeDestinationTitleAuthorBarcodeShelving locationCall numberItem typeCollection codeDestination
      [% trsfitemloo.title |html %][% trsfitemloo.author %][% trsfitemloo.barcode %][% trsfitemloo.location %][% trsfitemloo.itemcallnumber %][% ItemTypes.GetDescription( trsfitemloo.itemtype ) %][% AuthorisedValues.GetByCode( 'CCODE', trsfitemloo.ccode ) %][% trsfitemloo.tobrname %][% trsfitemloo.title |html %][% trsfitemloo.author %][% trsfitemloo.barcode %][% trsfitemloo.location %][% trsfitemloo.itemcallnumber %][% ItemTypes.GetDescription( trsfitemloo.itemtype ) %][% AuthorisedValues.GetByCode( 'CCODE', trsfitemloo.ccode ) %][% trsfitemloo.tobrname %]
      --