|
Lines 250-261
if ($noreport) {
Link Here
|
| 250 |
items.replacementprice, |
250 |
items.replacementprice, |
| 251 |
items.enumchron, |
251 |
items.enumchron, |
| 252 |
items.itemnotes_nonpublic, |
252 |
items.itemnotes_nonpublic, |
| 253 |
items.itype |
253 |
items.itype, |
|
|
254 |
return_claims.created_on AS return_claim_created_on, |
| 255 |
return_claims.id AS return_claim_id |
| 254 |
FROM issues |
256 |
FROM issues |
| 255 |
LEFT JOIN borrowers ON (issues.borrowernumber=borrowers.borrowernumber ) |
257 |
LEFT JOIN borrowers ON (issues.borrowernumber=borrowers.borrowernumber ) |
| 256 |
LEFT JOIN items ON (issues.itemnumber=items.itemnumber) |
258 |
LEFT JOIN items ON (issues.itemnumber=items.itemnumber) |
| 257 |
LEFT JOIN biblioitems ON (biblioitems.biblioitemnumber=items.biblioitemnumber) |
259 |
LEFT JOIN biblioitems ON (biblioitems.biblioitemnumber=items.biblioitemnumber) |
| 258 |
LEFT JOIN biblio ON (biblio.biblionumber=items.biblionumber ) |
260 |
LEFT JOIN biblio ON (biblio.biblionumber=items.biblionumber ) |
|
|
261 |
LEFT JOIN return_claims ON (return_claims.borrowernumber=borrowers.borrowernumber AND return_claims.itemnumber=items.itemnumber) |
| 259 |
WHERE 1=1 "; # placeholder, since it is possible that none of the additional |
262 |
WHERE 1=1 "; # placeholder, since it is possible that none of the additional |
| 260 |
# conditions will be selected by user |
263 |
# conditions will be selected by user |
| 261 |
$strsth.=" AND date_due < '" . $todaysdate . "' " unless ($showall); |
264 |
$strsth.=" AND date_due < '" . $todaysdate . "' " unless ($showall); |
|
Lines 303-308
if ($noreport) {
Link Here
|
| 303 |
my $pattrs = $borrowernumber_to_attributes{$data->{borrowernumber}} || {}; # patron attrs for this borrower |
306 |
my $pattrs = $borrowernumber_to_attributes{$data->{borrowernumber}} || {}; # patron attrs for this borrower |
| 304 |
# $pattrs is a hash { attrcode => [ [value,displayvalue], [value,displayvalue]... ] } |
307 |
# $pattrs is a hash { attrcode => [ [value,displayvalue], [value,displayvalue]... ] } |
| 305 |
|
308 |
|
|
|
309 |
my $return_claim_created_on = $data->{return_claim_created_on}; |
| 310 |
if ( defined $return_claim_created_on ) { |
| 311 |
$return_claim_created_on = output_pref({ dt => dt_from_string($return_claim_created_on ) }); |
| 312 |
} |
| 313 |
|
| 306 |
my @patron_attr_value_loop; # template array [ {value=>v1}, {value=>v2} ... } ] |
314 |
my @patron_attr_value_loop; # template array [ {value=>v1}, {value=>v2} ... } ] |
| 307 |
for my $pattr_filter (grep { ! $_->{isclone} } @patron_attr_filter_loop) { |
315 |
for my $pattr_filter (grep { ! $_->{isclone} } @patron_attr_filter_loop) { |
| 308 |
my @displayvalues = map { $_->[1] } @{ $pattrs->{$pattr_filter->{code}} }; # grab second value from each subarray |
316 |
my @displayvalues = map { $_->[1] } @{ $pattrs->{$pattr_filter->{code}} }; # grab second value from each subarray |
|
Lines 339-344
if ($noreport) {
Link Here
|
| 339 |
itemcallnumber => $data->{itemcallnumber}, |
347 |
itemcallnumber => $data->{itemcallnumber}, |
| 340 |
replacementprice => $data->{replacementprice}, |
348 |
replacementprice => $data->{replacementprice}, |
| 341 |
itemnotes_nonpublic => $data->{itemnotes_nonpublic}, |
349 |
itemnotes_nonpublic => $data->{itemnotes_nonpublic}, |
|
|
350 |
return_claim_created_on => $return_claim_created_on, |
| 351 |
return_claim_id => $data->{return_claim_id}, |
| 342 |
enumchron => $data->{enumchron}, |
352 |
enumchron => $data->{enumchron}, |
| 343 |
itemtype => $data->{itype}, |
353 |
itemtype => $data->{itype}, |
| 344 |
patron_attr_value_loop => \@patron_attr_value_loop, |
354 |
patron_attr_value_loop => \@patron_attr_value_loop, |