]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Offline checkin & renewal checks, & ou settings
authorJason Etheridge <jason@esilibrary.com>
Thu, 4 Aug 2011 02:32:51 +0000 (22:32 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 9 Aug 2011 17:18:36 +0000 (13:18 -0400)
commitab989cb6e241400d2115fb7b1b28bb963a2d4f44
tree933ac7822464d325d973a2635d90c7654e24cb7c
parent65ca55a8dab817f485e379d7ce1ee2ed5d814e22
Offline checkin & renewal checks, & ou settings

Augmented edoceo's patch for checking an offline checkout against an item's
Status Changed Time and throwing a SKIP_ASSET_CHANGED event if warranted as
follows:

1) include checkin and renewal transactions
2) add org unit settings for each, and a corresponding upgrade script
3) removed the description from the payload and created a dedicated ils_event

However, there are two issues affecting this functionality, even before my
meddling:

1) the Reshelving -> Available rollover updates an item's Status Changed Time,
   and can thus trigger this event
2) if an item is manipulated more than once in an offline session, then its
   Status Changed Time can be updated as the transactions are being processed,
   causing related transactions after the initial transaction to fail

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/offline/offline.pl
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ.offline.skip_foo_if_newer_status_changed_time.sql [new file with mode: 0644]