boolean field. Setting this on an action.hold_request will cause the hold
to sort to the top of the queue in calls to open-ils.storage.action.hold_request.nearest_hold,
which is used to capture holds in priority order.
Currently, this field sorts /after/ the hold proximity. When strict FIFO
holds are implemented, this sort will go to the front of the line, followed
by request_time and then proximity.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14509
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
<field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
<field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
+ <field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
<field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
</fields>
<links>
hold_type holdable_formats target cancel_time shelf_time
phone_notify email_notify selection_depth cancel_note
pickup_lib current_copy request_lib frozen thaw_date
- fulfillment_staff fulfillment_lib selection_ou/);
+ fulfillment_staff fulfillment_lib selection_ou cut_in_line/);
#-------------------------------------------------------------------------------
AND h.frozen IS FALSE
ORDER BY
p.prox,
+ CASE WHEN h.cut_in_line IS TRUE THEN 0 ELSE 1 END,
h.selection_depth DESC,
h.request_time
LIMIT $limit
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0039'); -- mck9
+INSERT INTO config.upgrade_log (version) VALUES ('0040'); -- miker
CREATE TABLE config.bib_source (
email_notify BOOL NOT NULL DEFAULT TRUE,
frozen BOOL NOT NULL DEFAULT FALSE,
thaw_date TIMESTAMP WITH TIME ZONE,
- shelf_time TIMESTAMP WITH TIME ZONE
+ shelf_time TIMESTAMP WITH TIME ZONE,
+ cut_in_line BOOL
);
CREATE INDEX hold_request_target_idx ON action.hold_request (target);
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0040'); -- miker
+
+ALTER TABLE action.hold_request ADD COLUMN cut_in_line BOOL;
+
+COMMIT;
+
+ALTER TABLE auditor.action_hold_request_history ADD COLUMN cut_in_line BOOL;
+