removing leading and trailing spaces when extracting TCN from 001 user/gmcharlt/norm_tcn_value_from_001
authorGalen Charlton <gmc@esilibrary.com>
Fri, 13 Jan 2012 22:13:00 +0000 (17:13 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 13 Jan 2012 22:13:00 +0000 (17:13 -0500)
commit5ff2a014f72f7ccdf906093857c4bfbf36d7b89a
tree61881765f4707735d037a36470cc0de3988df7df
parenta663dfed41126ba4607e500ccda85dd9fa113789
removing leading and trailing spaces when extracting TCN from 001

Now that the MARC editor is less likely to strip whitespace by
accident, make sure that TCN values extracted from the 001 field
have leading and trailing whitespace removed.  This particularly
affects OCLC records, since a record downloaded from OCLC with an
eight-digit OCLC number will have a trailing space in the 001.

This makes TCNs match the normalization expected by TCN searches.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm