Lines 1717-1729
sub patron_status_string {
Link Here
|
1717 |
|
1717 |
|
1718 |
my $patron_status; |
1718 |
my $patron_status; |
1719 |
|
1719 |
|
1720 |
my $too_many_lost = 0; |
|
|
1721 |
if ( my $lost_block_checkout = $server->{account}->{lost_block_checkout} ) { |
1722 |
my $lost_block_checkout_value = $server->{account}->{lost_block_checkout_value} // 1; |
1723 |
my $lost_checkouts = Koha::Checkouts->search({ borrowernumber => $patron->borrowernumber, 'itemlost' => { '>=', $lost_block_checkout_value } }, { join => 'item'} )->count; |
1724 |
$too_many_lost = $lost_checkouts >= $lost_block_checkout; |
1725 |
} |
1726 |
|
1727 |
siplog( "LOG_DEBUG", "patron_status_string: %s charge_ok: %s", $patron->id, $patron->charge_ok ); |
1720 |
siplog( "LOG_DEBUG", "patron_status_string: %s charge_ok: %s", $patron->id, $patron->charge_ok ); |
1728 |
$patron_status = sprintf( |
1721 |
$patron_status = sprintf( |
1729 |
'%s%s%s%s%s%s%s%s%s%s%s%s%s%s', |
1722 |
'%s%s%s%s%s%s%s%s%s%s%s%s%s%s', |
Lines 1736-1742
sub patron_status_string {
Link Here
|
1736 |
$server->{account}->{overdues_block_checkout} ? boolspace( $patron->too_many_overdue ) : q{ }, |
1729 |
$server->{account}->{overdues_block_checkout} ? boolspace( $patron->too_many_overdue ) : q{ }, |
1737 |
boolspace( $patron->too_many_renewal ), |
1730 |
boolspace( $patron->too_many_renewal ), |
1738 |
boolspace( $patron->too_many_claim_return ), |
1731 |
boolspace( $patron->too_many_claim_return ), |
1739 |
boolspace( $too_many_lost ), |
1732 |
boolspace( $patron->too_many_lost( $server ) ), |
1740 |
boolspace( $patron->excessive_fines ), |
1733 |
boolspace( $patron->excessive_fines ), |
1741 |
boolspace( $patron->excessive_fees ), |
1734 |
boolspace( $patron->excessive_fees ), |
1742 |
boolspace( $patron->recall_overdue ), |
1735 |
boolspace( $patron->recall_overdue ), |
1743 |
- |
|
|