Syntax error terminated the DB update and would have left
certain field without the new normalizer.
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
FROM config.metabib_field m,
config.index_normalizer i
WHERE i.func = 'metabib.trim_trailing_punctuation'
- m.field_class='title' AND (m.browse_field OR m.facet_field OR m.display_field)
+ AND m.field_class='title' AND (m.browse_field OR m.facet_field OR m.display_field)
AND NOT EXISTS (SELECT 1 FROM config.metabib_field_index_norm_map WHERE field = m.id AND norm = i.id);
INSERT INTO config.record_attr_index_norm_map (attr,norm,pos)
FROM config.metabib_field m,
config.index_normalizer i
WHERE i.func = 'metabib.trim_trailing_punctuation'
- m.field_class='title' AND (m.browse_field OR m.facet_field OR m.display_field)
+ AND m.field_class='title' AND (m.browse_field OR m.facet_field OR m.display_field)
AND NOT EXISTS (SELECT 1 FROM config.metabib_field_index_norm_map WHERE field = m.id AND norm = i.id);
COMMIT;