return $self->save_item_to_bookbag($rec_id, $bbag_id) if $action eq 'save';
return $self->login_and_place_hold($rec_id) if $action eq 'hold';
+
+
# if the user is logged in, fetch his bookbags
if ($ctx->{user}) {
$ctx->{bookbags} = $self->editor->search_container_biblio_record_entry_bucket([
]);
}
+ # If user is logged in and has a default pickup location, grab it
+ if ($ctx->{user}) {
+ my $set_map = $self->ctx->{user_setting_map};
+ if ($$set_map{'opac.default_pickup_location'}) {
+ $ctx->{default_pickup_lib} = $$set_map{'opac.default_pickup_location'};
+ }
+ }
+
+
$self->ctx->{page} = 'getit'; # repair the page
return Apache2::Const::OK;
}