Correct Located URI visiblity collab/miker/located_uri_visiblity_fix
authorMike Rylander <mrylander@gmail.com>
Mon, 3 Oct 2011 19:01:26 +0000 (15:01 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 3 Oct 2011 19:16:54 +0000 (15:16 -0400)
commitd183c879c047745d76b42103cfcfcb09218d83c6
tree98ae5d19770929b04b49b86ffe769dc6a8d0ef56
parentf7a390f42e1978335f944b471a4ecbd82a1212ca
Correct Located URI visiblity

Located URIs should be visible when they exist at the search context org unit
or an ancestor thereof.  However, before the change embodied in this commit,
they effectively acted exactly like copies, making records visible anywhere
within the context+depth range.

An example, using the stock example OU hierarchy:

 * Before this change, a Located URI with an owner of BR1 would cause its
record to show up in a search at (or scoped to via a depth parameter) BR1,
SYS1 or CONS.

 * Before this change, a Located URI with an owner of SYS1 would NOT cause its
record to show up in a search at (or scoped to via a depth parameter) BR1!

 * After this change, a Located URI with an owner of BR1 will cause its record
to show up only in a search with a context OU of BR1, irrespective of depth
scoping.

 * After this change, a Located URI with an owner of SYS1 WILL cause its
record to show up in a search with a context OU of BR1 or SYS1, regardless of
depth scoping.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.located_uri_visiblity_fix.sql [new file with mode: 0644]