$def with (change, page=None) $if page is None: Merged duplicate author records. $else: $ master = change.data.get("master") $ duplicates = change.data.get("duplicates", []) $if page.key == master: $# comment in the master record Merged $len(duplicates) duplicate author records into this master. See details. $elif page.key in duplicates: $# comment in the duplicate record Marked as duplicate. See details. $else: $# comment in the effected work records Merged duplicate author records. See details.