Add an unwrapped upgrade script for OCLC-aware control numbers
authorDan Scott <dan@coffeecode.net>
Thu, 21 Jul 2011 15:12:36 +0000 (11:12 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 28 Jul 2011 16:51:56 +0000 (12:51 -0400)
commitd0c76061f617277abeefd48e0e2dd5bf43dcf185
tree041d98d9b0d561a1b5806538b150e7d3784948e6
parent186f2d1a8ba17be65a4a26258dc8cba97d8c87af
Add an unwrapped upgrade script for OCLC-aware control numbers

The upgrade script creates the SCN and LCCN search indexes and
populates them using metabib.full_rec as a source; cheating, but
the normalized values will work for non-exact search purposes. Sites can
reingest all of their bibs if they want exact search to work.

Also, refactor maintain_control_numbers() using a suggestion by
Dan Wells to eliminate some duplicate code.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/002.functions.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/xxxx.maintain_control_numbers_with_OCLC_awareness.sql [new file with mode: 0644]