LP#1444644 Copy Import Development Work user/ldw/RT21151_to_LP1444644
authorLiam Whalen <liam.whalen@bc.libraries.coop>
Thu, 2 Oct 2014 02:17:34 +0000 (19:17 -0700)
committerLiam Whalen <liam.whalen@bc.libraries.coop>
Wed, 15 Apr 2015 20:51:26 +0000 (13:51 -0700)
commitae77c1d53b698a26c841b29395a64baa894e184e
tree2df68c3b0ed2be2e3b22bf8cb5d39fcbf4880a67
parent6b0d8e7c2f72431efb3cacaaa9603f0c9dd15cf2
LP#1444644 Copy Import Development Work

This is the first commit in the copy import development work outlined
here: https://bugs.launchpad.net/evergreen/+bug/1444644

It copies the Overlay In-process Acquisition Copie code, with
modifications to fit the specificiations outlined on Launchpad.

This process first checks the number of copies belonging to a record,
whose volumes' owning_lib matches the OU specified in the Holdings
Import Profile.  If a match is not found, then it searches the OU's
federation for copies.  The record with the largest number of copies
is chosen as the record to be overlaid.  If there are two records
with the same number of copies, then the record with the largest
biblio.record_entry.id is chosen for overlay.

Finally, if no records have copies relevant to the OU or its
Federation, then the default best match overlay is attempted.

The vandelay.js and its corresponding upload.tt2 file needed
modifications in order to trigger the code that attempts to Auto
Overlay according the the number of copies per OU.

Two new perms were added to control the use of Auto Overlaying
On-order copies and Using Org Copies to Determine Best Match.

The UI modifications to the Vandelay Onorder Overlay Copy Import
Development work are also included in this commit.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
Open-ILS/src/sql/Pg/upgrade/XXXX.data.onorder-overlay-perms.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.vandelay.auto_overlay_org_unit_copies.sql [new file with mode: 0644]
Open-ILS/src/templates/vandelay/inc/queue.tt2
Open-ILS/src/templates/vandelay/inc/upload.tt2
Open-ILS/web/js/ui/default/vandelay/vandelay.js