def add_publication(cursor, epub, epub_file, is_pre_publication=False):
publisher = epub[<NUM_LIT:0>].metadata['<STR_LIT>']<EOL>publish_message = epub[<NUM_LIT:0>].metadata['<STR_LIT>']<EOL>epub_binary = psycopg2.Binary(epub_file.read())<EOL>args = (publisher, publish_message, epub_binary, is_pre_publication,)<EOL>cursor.execute(
Adds a publication entry and makes each item
    a pending document.