|
Lines 128-134
sub filter_by_lates {
Link Here
|
| 128 |
( |
128 |
( |
| 129 |
C4::Context->preference('IndependentBranches') |
129 |
C4::Context->preference('IndependentBranches') |
| 130 |
&& !C4::Context->IsSuperLibrarian |
130 |
&& !C4::Context->IsSuperLibrarian |
| 131 |
? ( 'borrower.branchcode' => C4::Context->userenv->{branch} ) |
131 |
? ( 'authorisedby.branchcode' => C4::Context->userenv->{branch} ) |
| 132 |
: () |
132 |
: () |
| 133 |
), |
133 |
), |
| 134 |
|
134 |
|
|
Lines 142-148
sub filter_by_lates {
Link Here
|
| 142 |
'+as' => [qw/ |
142 |
'+as' => [qw/ |
| 143 |
calculated_estimated_delivery_date |
143 |
calculated_estimated_delivery_date |
| 144 |
/], |
144 |
/], |
| 145 |
join => { 'basketno' => 'booksellerid' }, |
145 |
join => ( |
|
|
146 |
( |
| 147 |
C4::Context->preference('IndependentBranches') |
| 148 |
&& !C4::Context->IsSuperLibrarian |
| 149 |
) |
| 150 |
? { 'basketno' => [ 'authorisedby', 'booksellerid' ] } |
| 151 |
: { 'basketno' => 'booksellerid' } |
| 152 |
), |
| 146 |
prefetch => {'basketno' => 'booksellerid'}, |
153 |
prefetch => {'basketno' => 'booksellerid'}, |
| 147 |
} |
154 |
} |
| 148 |
); |
155 |
); |
| 149 |
- |
|
|