$def with (work=None, author=None, recaptcha=None) $var title: $_("Add a book")

$_("Add a book to Open Library")

$_("We require a minimum set of fields to create a new record. These are those fields.")

$if not ctx.user: $:render_template("lib/not_logged")
$ author = (work and work.authors and work.authors[0].author) or author
$if work: $else:
$_('Like, "Agatha Christie" or "Jean-Paul Sartre." We\'ll also do a live check to see if we already know the author.')
$:render_template("books/author-autocomplete", cond(author, [author], []), "author_names", "authors")
$_("The year it was published is plenty.")
 
$if recaptcha and not ctx.user:
$_("Since you are not logged in, please satisfy the reCAPTCHA below.")

  $_('Cancel')