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