my ( $self, $params ) = @_;
my $counter = 0;
while( my $patron = $self->next ) {
$patron->discard_changes;
$counter++;
$patron->categorycode($params->{category})->store();
}
-