) ||
"0 seconds"
);
- my $start_time = $dt_parser->parse_datetime(
- clense_ISO8601($bresv->start_time)
- );
- if ($now >= $start_time->subtract("seconds" => $elbow_room)) {
+ unless ($elbow_room) {
$client->respond($bresv);
} else {
- $logger->info("not within elbow room: $elbow_room, else would have returned bresv " . $bresv->id);
+ my $start_time = $dt_parser->parse_datetime(
+ clense_ISO8601($bresv->start_time)
+ );
+
+ if ($now >= $start_time->subtract("seconds" => $elbow_room)) {
+ $client->respond($bresv);
+ } else {
+ $logger->info(
+ "not within elbow room: $elbow_room, " .
+ "else would have returned bresv " . $bresv->id
+ );
+ }
}
}
}
$e->disconnect;
- $client->respond_complete;
+ undef;
}
__PACKAGE__->register_method(
method => "could_capture",
INSERT INTO config.copy_status (id,name) VALUES (15,oils_i18n_gettext(15, 'On reservation shelf', 'ccs', 'name'));
+-- In booking, elbow room defines:
+-- a) how far in the future you must make a reservation on a given item if
+-- that item will have to transit somewhere to fulfill the reservation.
+-- b) how soon a reservation must be starting for the reserved item to
+-- be op-captured by the checkin interface.
+INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (
+ (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL),
+ 'circ.booking_reservation.default_elbow_room',
+ '"1 day"'
+);
+
-- Put the sequence back inside the protected range
SELECT SETVAL('permission.perm_list_id_seq'::TEXT, (SELECT MAX(id) FROM permission.perm_list WHERE id < 1000));
SELECT SETVAL('config.copy_status_id_seq'::TEXT, 100);
+-- In booking, elbow room defines:
+-- a) how far in the future you must make a reservation on a given item if
+-- that item will have to transit somewhere to fulfill the reservation.
+-- b) how soon a reservation must be starting for the reserved item to
+-- be op-captured by the checkin interface.
+INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (
+ (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL),
+ 'circ.booking_reservation.default_elbow_room',
+ '"1 day"'
+);
+
INSERT INTO config.net_access_level (id, name) VALUES
(1, oils_i18n_gettext(1, 'Filtered', 'cnal', 'name'));
INSERT INTO config.net_access_level (id, name) VALUES
<!ENTITY staff.server.admin.org_settings.circ.password_reset_request_per_user_limit.desc "When a user has more than this number of concurrently active self-serve password reset requests for their account, prevent the user from creating any new self-serve password reset requests until the number of active requests for the user drops back below this number.">
<!ENTITY staff.server.admin.org_settings.circ.password_reset_request_throttle "Circulation: Maximum concurrently active self-serve password reset requests">
<!ENTITY staff.server.admin.org_settings.circ.password_reset_request_throttle.desc "Prevent the creation of new self-serve password reset requests until the number of active requests drops back below this number.">
+<!ENTITY staff.server.admin.org_settings.circ.booking_reservation.default_elbow_room "Booking: Elbow room">
+<!ENTITY staff.server.admin.org_settings.circ.booking_reservation.default_elbow_room.desc "Booking: Elbow room specifies how far in the future you must make a reservation on an item if that item will have to transit to reach its pickup location. It secondarily defines how soon a reservation on a given item must start before the check-in process will opportunistically capture it for the reservation shelf.">
<!ENTITY staff.server.admin.org_settings.circ.charge_on_damaged "Charge item price when marked damaged">
<!ENTITY staff.server.admin.org_settings.circ.charge_on_damaged.desc "Charge item price when marked damaged">
<!ENTITY staff.server.admin.org_settings.circ.damaged_item_processing_fee "Charge processing fee for damaged items">
desc: '&staff.server.admin.org_settings.circ.password_reset_request_throttle.desc;',
type : 'integer'
},
+ 'circ.booking_reservation.default_elbow_room': {
+ label: '&staff.server.admin.org_settings.circ.booking_reservation.default_elbow_room;',
+ desc: '&staff.server.admin.org_settings.circ.booking_reservation.default_elbow_room.desc;'
+ },
'ui.circ.patron_summary.horizontal' : {
label : '&ui.circ.patron_summary.horizontal;',
desc : '&ui.circ.patron_summary.horizontal.desc;',