Lines 161-170
if ( $query->param('reserve_id') ) {
Link Here
|
161 |
} # FIXME else? |
161 |
} # FIXME else? |
162 |
} else { |
162 |
} else { |
163 |
my $diffBranchSend = ($userenv_branch ne $diffBranchReturned) ? $diffBranchReturned : undef; |
163 |
my $diffBranchSend = ($userenv_branch ne $diffBranchReturned) ? $diffBranchReturned : undef; |
|
|
164 |
|
164 |
# diffBranchSend tells ModReserveAffect whether document is expected in this library or not, |
165 |
# diffBranchSend tells ModReserveAffect whether document is expected in this library or not, |
165 |
# i.e., whether to apply waiting status |
166 |
# i.e., whether to apply waiting status |
166 |
ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id ); |
167 |
ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id ); |
167 |
ModItemTransfer( $itemnumber, $userenv_branch, $diffBranchSend ) if $diffBranchSend; |
168 |
|
|
|
169 |
if ( $diffBranchSend ) { |
170 |
ModItemTransfer( $itemnumber, $userenv_branch, $diffBranchSend ); |
171 |
|
172 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
173 |
my $name = $patron ? $patron->surname . ", " . $patron->title . " " . $patron->firstname : ''; |
174 |
$template->param( |
175 |
itemtitle => $biblio->title, |
176 |
itemnumber => $item->itemnumber, |
177 |
itembiblionumber => $biblio->biblionumber, |
178 |
iteminfo => $biblio->author, |
179 |
name => $name, |
180 |
patron => $patron, |
181 |
diffbranch => 1, |
182 |
); |
183 |
} |
168 |
} |
184 |
} |
169 |
} |
185 |
} |
170 |
|
186 |
|
171 |
- |
|
|