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)
committerDan Scott <dan@coffeecode.net>
Thu, 21 Jul 2011 15:12:36 +0000 (11:12 -0400)
commiteec618b3356f1012216771053dcea4583e79aa4b
tree5333ae9ea4a76de2ca4b39df4956703e070e6271
parente0e6390193d30bc4a247ec4566d6490b4c023237
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>
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]