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:59:48 +0000 (12:59 -0400)
commit647d0db2f0975dc48d7df6552d17e55b325b6e90
tree0962a52eb0e2c7e902eeac0cda921c652e56bde1
parent029a7a36aa10371f28eb31d7412281d4d3451607
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]