@@ -, +, @@ --- Koha/Patron.pm | 3 +++ misc/cronjobs/j2a.pl | 1 + 2 files changed, 4 insertions(+) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -154,6 +154,8 @@ sub image { =head3 library +Returns a Koha::Library object representing the patron's home library. + =cut sub library { @@ -969,6 +971,7 @@ my $is_child = $patron->is_child Return true if the patron has a category with a type Child (C) =cut + sub is_child { my( $self ) = @_; return $self->category->category_type eq 'C' ? 1 : 0; --- a/misc/cronjobs/j2a.pl +++ a/misc/cronjobs/j2a.pl @@ -95,6 +95,7 @@ C - Suggests that you read this help. :) C -b= -f= -t= - Processes a single branch, and updates the patron categories from fromcat to tocat. C -f= -t= -v -n - Processes all branches, shows all messages, and reports the patrons who would be affected. Takes no action on the database. + =cut # These variables are set by command line options. --