+ $template->param(
+ (
+ $@ ? ( error_deleting_checkouts_history => 1 )
+ : $rows ? ( deleted_checkouts => int($rows) )
+ : ( no_checkouts_to_delete => 1 )
+ ),
+ delete_checkouts_requested => 1,
+ );
+ }
+
+ if ( $all or $holds ) {
+
+ my $rows = eval { $patron->old_holds->anonymize + 0 };
+
+ $template->param(
+ (
+ $@ ? ( error_deleting_holds_history => 1 )
+ : $rows ? ( deleted_holds => int($rows) )
+ : ( no_holds_to_delete => 1 )
+ ),
+ delete_holds_requested => 1,
+ );
+ }
+}