]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Make authority.normalize_heading() more defensive, and drop back to a plain (non...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Sep 2010 22:06:37 +0000 (22:06 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Sep 2010 22:06:37 +0000 (22:06 +0000)
commit526130d33d9ea03fe67cc37d36f0f9f5bdc8f8a7
treea9bdaaea5cb029f9664aa0fadb33c1d11b3d209c
parent110f1da17231bf3ff651263edbcee99bdd880038
Make authority.normalize_heading() more defensive, and drop back to a plain (non-unique) index

NOTE: Database server now requires UUID::Tiny CPAN module in its Perl repertoire

When faced with terrible input, authority.normalize_heading() will generate a
heading based on the MD5 UUID of the input value, flagged with "BAD_MARCXML"
if the MARCXML could not be parsed, or "NOHEADING" if there was no 1xx field.
Previously, authority.normalize_heading() would throw raw, ugly Perl errors.

Many thanks to Mike Rylander and Galen Charlton for their suggestions on how
to break the original version of authority.normalize_heading(), this code
should be much more robust as a result.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17714 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/020.schema.functions.sql
Open-ILS/src/sql/Pg/800.fkeys.sql
Open-ILS/src/sql/Pg/upgrade/0402.schema.unique_authority_index_revisited.sql [new file with mode: 0644]