new function to set indicators in MARC fields
authorGalen Charlton <gmc@esilibrary.com>
Mon, 10 Sep 2012 15:42:20 +0000 (11:42 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Sep 2012 15:42:20 +0000 (11:42 -0400)
commita220c56b038fc03e95ba7e5242931cb621cc6ee3
treec40aac2b203716eb0ee95ee788bb91b263cc5deb
parentb1e4d9eaef945bc9ba808510aea183069a00cfdf
new function to set indicators in MARC fields

migration_tools.set_leader(marc, tag, indicator_pos, value):

Set indicator value of a specified MARC field.
The first argument is a MARCXML string.
The second argument is a MARC tag.
The third argument is the indicator position, either 1 or 2.
The fourth argument is the character to set the indicator value to.
All occurences of the specified field will be changed.
The function returns the revised MARCXML string.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
sql/base/base.sql