lib/common.php is required for generation of full document numbers