+ if (C4::Context->preference("IndependantBranches")) {
+ #verifying rights
+ my $userenv = C4::Context->userenv();
+ unless (($userenv->{'flags'} == 1) or ($userenv->{'branch'} eq $item->{'homebranch'})) {
+ $item->{'nomod'}=1;
+ }
+ }
+ $item->{'homebranchname'} = GetBranchName($item->{'homebranch'});
+ $item->{'holdingbranchname'} = GetBranchName($item->{'holdingbranch'});
+ if ($item->{'datedue'}) {
+ $item->{'datedue'} = format_date($item->{'datedue'});