my $session = shift;
my $patron = shift;
my $new_patron = shift;
+ my $user = shift;
my $evt;
if(ref($card) and $card->isnew()) {
$virtual_id = $card->id();
- ( $card, $evt ) = _add_card($session,$card);
+ ( $card, $evt ) = _add_card($session,$card,$user);
return (undef, $evt) if $evt;
#if(ref($patron->card)) { $patron->card($patron->card->id); }
# adds an card to the db and returns the card with new id
sub _add_card {
- my( $session, $card ) = @_;
+ my( $session, $card, $user ) = @_;
$card->clear_id();
+ $card->creator($user->id);
$logger->info("Adding new patron card ".$card->barcode);
__PACKAGE__->table( 'actor_card' );
__PACKAGE__->columns( Primary => qw/id/ );
-__PACKAGE__->columns( Essential => qw/usr barcode active/ );
+__PACKAGE__->columns( Essential => qw/usr barcode active creator create_date/ );
#-------------------------------------------------------------------------------
package actor::user_access_entry;
$logger->debug("Apache client connecting from $user_ip");
my ($shortname, $nskin, $nhostname) = redirect_libs($user_ip);
+ $url .= "?ol=" . 22;
+ $url .= "&d=$depth" if defined $depth;
if ($shortname) {
if ($nskin =~ m/[^\s]/) { $skin = $nskin; }