SSLHonorCipherOrder On
SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
+ # Uncomment and set this variable to the id of the context org unit
+ # you want to provide visible carousels for this vhost.
+ #
+ # SetEnv carousel_loc 1
+
# If you don't have an SSL cert, you can create self-signed
# certificate and key with:
# openssl req -new -x509 -nodes -out server.crt -keyout server.key
$ctx->{hostname} = 'remote';
}
+ $ctx->{carousel_loc} = $self->get_carousel_loc;
$ctx->{physical_loc} = $self->get_physical_loc;
# capture some commonly accessed pages
# FIXME - move carousel helpers to a separate file
$ctx->{get_visible_carousels} = sub {
- my $org_unit = $self->ctx->{physical_loc} || $self->cgi->param('loc') || $self->ctx->{aou_tree}->()->id;
+ my $org_unit = $self->ctx->{carousel_loc} || $self->ctx->{physical_loc} || $self->cgi->param('loc') || $self->ctx->{aou_tree}->()->id;
return $U->simplereq(
'open-ils.actor',
'open-ils.actor.carousel.retrieve_by_org',
return $self->cgi->cookie(COOKIE_PHYSICAL_LOC);
}
+sub get_carousel_loc {
+ my $self = shift;
+ return $self->cgi->param('carousel_loc') || $ENV{carousel_loc};
+}
+
# -----------------------------------------------------------------------------
# Log in and redirect to the redirect_to URL (or home)
# -----------------------------------------------------------------------------