Default to org tree root for bre unapi funcs collab/berick/unapi-indb-optional-org
authorBill Erickson <berick@esilibrary.com>
Tue, 8 Nov 2011 20:13:53 +0000 (15:13 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 8 Nov 2011 20:19:38 +0000 (15:19 -0500)
commit335bc6c75aa29e7e892c078c0ccc2242db4e8417
treeb6743e11e6b8c82571406517977db924b9bced88
parentef82b6171473d9f4c705e5bd1db592d72746ae2d
Default to org tree root for bre unapi funcs

If the org unit ("site") parameter to unapi.biblio_record_entry_feed()
or unapi.bre() is equal to "-" or NULL, default to the root of the org
unit tree.  In cases where the caller does not care to limit by site,
determing the shortname of the root org node is one less step the client
now has to take.

Original patch from Mike Rylander.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/990.schema.unapi.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.unapi-indb-optional-org.sql [new file with mode: 0644]