X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Fletter.pl;h=7582e6616e4d479f4daf8fb1710b5b49fcdefb85;hb=7c518bd250cd2283a055d4547085cd6db6488cf7;hp=317ea837b2e21ad9ad7dc2894f8f2ccc54f6d779;hpb=b7b92a4c812570894286bbd2094ff0377c35221f;p=koha_fer diff --git a/tools/letter.pl b/tools/letter.pl index 317ea837b2..7582e6616e 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -106,7 +106,7 @@ our ( $template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user } ); -our $my_branch = C4::Context->preference("IndependantBranches") && !$staffflags->{'superlibrarian'} +our $my_branch = C4::Context->preference("IndependentBranches") && !$staffflags->{'superlibrarian'} ? C4::Context->userenv()->{'branch'} : undef; # we show only the TMPL_VAR names $op @@ -115,6 +115,7 @@ $template->param( independant_branch => $my_branch, script_name => $script_name, searchfield => $searchfield, + branchcode => $branchcode, action => $script_name ); @@ -194,8 +195,9 @@ sub add_form { } else { push @{$field_selection}, add_fields('biblio','biblioitems'), - {value => q{}, text => '---ITEMS---' }, + add_fields('items'), {value => 'items.content', text => 'items.content'}, + {value => 'items.fine', text => 'items.fine'}, add_fields('borrowers'); if ($module eq 'circulation') { push @{$field_selection}, add_fields('opac_news');