IF editor_id IS NOT NULL THEN
--only update the edit date if we have a valid editor
- update_fields := ARRAY_APPEND(update_fields, 'editor = ' || editor_id || ', edit_date = NOW()');
+ -- KCLS always wants edit_date to be updated
+ -- update_fields := ARRAY_APPEND(update_fields, 'editor = ' || editor_id || ', edit_date = NOW()');
+ update_fields := ARRAY_APPEND(update_fields, 'editor = ' || editor_id);
+ -- /KCLS
END IF;
END IF;
+ -- KCLS always wants edit_date to be updated
+ update_fields := ARRAY_APPEND(update_fields, 'edit_date = NOW()');
+ -- /KCLS
+
IF v_bib_source IS NOT NULL THEN
update_fields := ARRAY_APPEND(update_fields, 'source = ' || v_bib_source);
END IF;