NULL
);
+INSERT INTO config.metabib_field
+ (field_class, name, label, xpath, weight, format, search_field, browse_field)
+VALUES (
+ 'title',
+ 'title_strip_periods',
+ 'General Title With Periods Removed',
+ $$//index:entry[@index:class = 'title']/index:value$$,
+ 5, 'kcls', TRUE, FALSE
+);
+
+-- call replace('.', '') before search_normalize on title index
+INSERT INTO config.metabib_field_index_norm_map (field, norm, pos, params)
+VALUES (
+ (SELECT id FROM config.metabib_field WHERE name = 'title_strip_periods'),
+ 12, -- replace
+ 0,
+ $$[".",""]$$
+), (
+ (SELECT id FROM config.metabib_field WHERE name = 'title_strip_periods'),
+ 2, -- split_date_range
+ 1,
+ NULL
+), (
+ (SELECT id FROM config.metabib_field WHERE name = 'title_strip_periods'),
+ 19, -- search_normalize
+ 1,
+ NULL
+);
+
+INSERT INTO config.metabib_field
+ (field_class, name, label, xpath, weight, format, search_field, browse_field)
+VALUES (
+ 'author',
+ 'author_strip_periods',
+ 'General Author With Periods Removed',
+ $$//index:entry[@index:class = 'author']/index:value$$,
+ 5, 'kcls', TRUE, FALSE
+);
+
+-- call replace('.', '') before search_normalize on author index
+INSERT INTO config.metabib_field_index_norm_map (field, norm, pos, params)
+VALUES (
+ (SELECT id FROM config.metabib_field WHERE name = 'author_strip_periods'),
+ 12, -- replace
+ 0,
+ $$[".",""]$$
+), (
+ (SELECT id FROM config.metabib_field WHERE name = 'author_strip_periods'),
+ 2, -- split_date_range
+ 1,
+ NULL
+), (
+ (SELECT id FROM config.metabib_field WHERE name = 'author_strip_periods'),
+ 19, -- search_normalize
+ 1,
+ NULL
+);
+
CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid BIGINT, default_joiner TEXT ) RETURNS SETOF metabib.field_entry_template AS $func$
DECLARE
DELETE FROM config.metabib_field WHERE name = 'keyword_strip_periods';
+DELETE FROM config.metabib_field_index_norm_map WHERE field =
+ (SELECT id FROM config.metabib_field WHERE name = 'title_strip_periods');
+
+DELETE FROM config.metabib_field WHERE name = 'title_strip_periods';
+
+DELETE FROM config.metabib_field_index_norm_map WHERE field =
+ (SELECT id FROM config.metabib_field WHERE name = 'author_strip_periods');
+
+DELETE FROM config.metabib_field WHERE name = 'author_strip_periods';
+
+
CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid BIGINT, default_joiner TEXT ) RETURNS SETOF metabib.field_entry_template AS $func$
DECLARE
bib biblio.record_entry%ROWTYPE;