Add a count() around the metabib.remap_metarecord_for_bib call in the
final select statement. This allows the script to run without the
user having to scroll through rows of output.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
$F$ LANGUAGE PLPGSQL STABLE;
-- Forcibly remap deleted master records, retaining the linkage if so configured.
-SELECT metabib.remap_metarecord_for_bib( bre.id, bre.fingerprint, TRUE, COALESCE(flag.enabled,FALSE))
+SELECT count(metabib.remap_metarecord_for_bib( bre.id, bre.fingerprint, TRUE, COALESCE(flag.enabled,FALSE)))
FROM metabib.metarecord metar
JOIN biblio.record_entry bre ON bre.id = metar.master_record,
config.internal_flag flag